PHP 4.0 Bug #4761: exec, system all give an error on a fork...

From: Date: Thu, 01 Jun 2000 16:33:47 +0000
Subject: PHP 4.0 Bug #4761: exec, system all give an error on a fork...
Groups: php.dev 
Request: Send a blank email to php-dev+get-19987@lists.php.net to get a copy of this message
From: jim@oublic.org Operating system: Windows2000 Server PHP version: 4.0.0 Release PHP Bug Type: Reproduceable crash Bug description: exec, system all give an error on a fork... <script language="php"> # for linux # $imageRoot = "/home/httpd/html/mrsid/mrsid_images/sample"; # $binRoot = "/home/httpd/html/mrsid/bin"; # exec("$binRoot/mrsid_retrieve -quiet -i $file -o d:/temp/out.jpg -icon"); # for windows $imageRoot = "d:/inetpub/wwwroot/sid/sample"; $binRoot = "d:/inetpub/wwwroot/sid/bin"; $file = "$imageRoot/aerial.sid"; # exec-ing any command fails with 'could not fork' backticks, and system do the same exec("$binRoot/mrsid_extract -i $file -o d:/temp/out.jpg -icon"); $fp = fopen("d:/temp/out.jpg", "rb"); Header ("Content-Type: image/jpeg"); fpassthru($fp); </script>

« previous php.dev (#19987) next »