|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9476 can't use 'system', 'passthru',... from apache. works when direct php.exe
Submitted: 2001-02-27 06:25 UTC Modified: 2001-04-27 12:57 UTC
From: avihpit at yahoo dot com Assigned:
Status: Closed Package: Program Execution
PHP Version: 4.0.4pl1 OS: w2k
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.
Block user comment
Status: Assign to:
Bug Type:
From: avihpit at yahoo dot com
New email:
PHP Version: OS:


 [2001-02-27 06:25 UTC] avihpit at yahoo dot com
php 4.0.4 AND php 4.0.4pl1
apache 1.3.14
both as cgi and as apache module

program execution functions don't work. ("warning.. can't fork... ")

when using direct php.exe to run the file 
(i.e. \php\php dir.php) works fine
where dir.php contains:
<?php passthru("dir"); ?>


it would have been more appropriate to return "file not found" in php 404, and "access forbidden" in php 403 :)


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-04-27 12:57 UTC]
fixed in cvs, wait for 4.0.6
please note that dir isn't a real command try something like

passthru(getenv("COMSPEC") . " /c dir");
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Tue Mar 21 05:03:38 2023 UTC