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.6
 New Comment:

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.


Previous Comments:
------------------------------------------------------------------------

[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

Reply via email to