|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
  [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.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             | |||||||||||||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 05:00:02 2025 UTC | 
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"); ?>