php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #49324 passthru() crash
Submitted: 2009-08-21 19:43 UTC Modified: 2010-11-30 09:03 UTC
Votes:2
Avg. Score:1.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: justin dot carlson at gmail dot com Assigned:
Status: No Feedback Package: Reproducible crash
PHP Version: 5.3.0 OS: Windows XP
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: justin dot carlson at gmail dot com
New email:
PHP Version: OS:

 

 [2009-08-21 19:43 UTC] justin dot carlson at gmail dot com
Description:
------------
Accidentally called passthru() on a non-executable file, and it crashed apache.

Reproduce code:
---------------
<?php
    // foo.txt exists, and contains the text "test"
    $result = passthru("foo.txt");
?>

<?php
    // foo does not exist
    $result = passthru("foo");
?>



Expected result:
----------------
A warning or fatal stating the file was not an executable.

Actual result:
--------------
Long pause, apache crash.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-08-21 19:47 UTC] justin dot carlson at gmail dot com
Just wanted to make sure this is clear...


This crashes apache:

<?php
    // foo.txt exists, and contains the text "test"
    $result = passthru("foo.txt");
?>

This does not:

<?php
    // foo does not exist
    $result = passthru("foo");
?>
 [2010-06-22 02:30 UTC] felipe@php.net
-Status: No Feedback +Status: Feedback
 [2010-06-22 02:30 UTC] felipe@php.net
Please try using this snapshot:

  http://snaps.php.net/php5.3-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/


 [2010-11-30 09:03 UTC] jani@php.net
-Status: Feedback +Status: No Feedback
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jan 05 00:01:29 2025 UTC