php.net |  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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
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
w2k
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"); ?>

regards
avi

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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-04-27 12:57 UTC] dbeu@php.net
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-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 16:01:27 2024 UTC