php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #39117 popen, proc_open, ... don't work under Apache
Submitted: 2006-10-10 15:18 UTC Modified: 2006-10-18 01:00 UTC
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:1 (50.0%)
From: xand_smirnov at mail dot ru Assigned:
Status: No Feedback Package: Apache2 related
PHP Version: 5.1.4 OS: RHEL 5 beta
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: xand_smirnov at mail dot ru
New email:
PHP Version: OS:

 

 [2006-10-10 15:18 UTC] 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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-10-10 15:23 UTC] tony2001@php.net
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:59 UTC] 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 16:07 UTC] tony2001@php.net
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 16:38 UTC] 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:45 UTC] tony2001@php.net
Please read what I said in the previous message.
 [2006-10-18 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 29 08:01:32 2024 UTC