|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-10-10 15:23 UTC] tony2001@php.net
[2006-10-10 15:59 UTC] xand_smirnov at mail dot ru
[2006-10-10 16:07 UTC] tony2001@php.net
[2006-10-10 16:38 UTC] xand_smirnov at mail dot ru
[2006-10-10 16:45 UTC] tony2001@php.net
[2006-10-18 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 13:00:02 2025 UTC |
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