#49324 [NoF->Fbk]: passthru() crash
ID: 49324
Updated by: pajoye@php.net
Reported By: justin dot carlson at gmail dot com
-Status: No Feedback
+Status: Feedback
Bug Type: Reproducible crash
Operating System: Windows XP
PHP Version: 5.3.0
New Comment:
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php
for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php
for Win32
Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2009-08-30 01:00:01] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
------------------------------------------------------------------------
[2009-08-22 17:31:48] jani@php.net
Please try using this snapshot:
http://snaps.php.net/php5.3-latest.tar.gz
For Windows:
http://windows.php.net/snapshots/
------------------------------------------------------------------------
[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)