#49324 [Opn->Fbk]: passthru() crash

From: Date: Sat, 22 Aug 2009 17:31:48 +0000
Subject: #49324 [Opn->Fbk]: passthru() crash
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-141395@lists.php.net to get a copy of this message
 ID:               49324
 Updated by:       jani@php.net
 Reported By:      justin dot carlson at gmail dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         Reproducible crash
 Operating System: Windows XP
 PHP Version:      5.3.0
 New Comment:

Please try using this snapshot:

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

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




Previous Comments:
------------------------------------------------------------------------

[2009-08-21 19:47:51] 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");
?>

------------------------------------------------------------------------

[2009-08-21 19:43:44] 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.


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=49324&edit=1



Thread (6 messages)

« previous php.bugs (#141395) next »