From: xand_smirnov at mail dot ru Operating system: RHEL 5 beta PHP version: 5.1.6 PHP Bug Type: Apache2 related Bug description: popen, proc_open, ... don't work under Apache
Description: ------------ When you try to use popen, proc_open, ... in your scripts they don't work under Apache. This problem related only to RHEL 5 beta with PHP 5.1.4 (meanwhile Fedora 5 working fine). I suppose the problem lies in Apache build or in it's new security rules. Reproduce code: --------------- <? $fp = popen("/bin/ls /var/www/html", "r"); fpassthru($fp); pclose($fp); ?> OR <? $fp = proc_open("/bin/ls /var/www/html",array(0=>array("pipe","r"),1=>array("pipe","w"),2=>array("pipe","w")),$pipes); fpassthru($pipes[1]); fclose($pipes[0]); fclose($pipes[1]); fclose($pipes[2]); proc_close($fp); ?> Expected result: ---------------- index.php -- Edit bug report at http://bugs.php.net/?id=39117&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=39117&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=39117&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=39117&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=39117&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=39117&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=39117&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=39117&r=needscript Try newer version: http://bugs.php.net/fix.php?id=39117&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=39117&r=support Expected behavior: http://bugs.php.net/fix.php?id=39117&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=39117&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=39117&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=39117&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=39117&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=39117&r=dst IIS Stability: http://bugs.php.net/fix.php?id=39117&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=39117&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=39117&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=39117&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=39117&r=mysqlcfg