Bug #1289: system, exec, and passtru always returns -1

From: Date: Mon, 05 Apr 1999 05:35:09 +0000
Subject: Bug #1289: system, exec, and passtru always returns -1
Groups: php.dev 
Request: Send a blank email to php-dev+get-4922@lists.php.net to get a copy of this message
From: srparish@bigfoot.com 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@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#4922) next »