ID: 39117 Updated by: [EMAIL PROTECTED] Reported By: xand_smirnov at mail dot ru -Status: Open +Status: Feedback Bug Type: Apache2 related Operating System: RHEL 5 beta PHP Version: 5.1.4 New Comment:
Please read what I said in the previous message. Previous Comments: ------------------------------------------------------------------------ [2006-10-10 16:38:45] xand_smirnov at mail dot ru As I said I suppose that isn't pure PHP problem but maybe something changed in Apache2 and someone has solution for it. The question is to rebuild (sometimes it's not so easy) PHP or Apache. Moreover definitely the guys from RedHat have their own thougths on building production releases we are paying for. ------------------------------------------------------------------------ [2006-10-10 16:07:10] [EMAIL PROTECTED] We cannot go back to the past and fix something we're unable to reproduce. Please test the snapshot and check if you're still able to reproduce it. And if you are, please provide a short but complete reproduce code with actual and expected results. ------------------------------------------------------------------------ [2006-10-10 15:59:01] xand_smirnov at mail dot ru Sorry for wrong PHP version reported in bug header but I need solution for specific distro RHEL AS 5 Beta1. Thanks. ------------------------------------------------------------------------ [2006-10-10 15:23:34] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows: http://snaps.php.net/win32/php5.2-win32-latest.zip ------------------------------------------------------------------------ [2006-10-10 15:18:04] xand_smirnov at mail dot ru 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 this bug report at http://bugs.php.net/?id=39117&edit=1