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
Have you experienced this issue?
Rate the importance of this bug to you:

 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 08:01:27 2024 UTC