[PHP-DEV] Bug #1289: system, exec, and passtru always returns -1 From: srparish <email protected>
Date: 04/05/99

From: srparish <email protected>
Operating system: linux--Redhat 5.2
PHP version: 3.0.7
PHP Bug Type: Misbehaving function
Bug description: system, exec, and passtru always returns -1

When ServerName in httpd.conf is set differently then the actual host's name, the return values of anything called with system, exec, and passthru (except for running the "/bin/date") is always -1. For instance, we have a machine named phony.wwc.edu, but in apache we set the ServerName to hotnest.wwc.edu. Suddenly doing something like system("echo blah",$errno); print $errno; prints -1 instead of 0. This is completely unrelated to safe mode, btw. (which was our first suspect)

--
PHP Development Mailing List   http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe <email protected>
For help: php-dev-help <email protected>