#26568 [Opn->Fbk]: file_get_contents causes Apache crash
| From: | sniper@php.net | Date: | Tue, 09 Dec 2003 23:25:41 +0000 |
| Subject: | #26568 [Opn->Fbk]: file_get_contents causes Apache crash | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-51871@lists.php.net to get a copy of this message | ||
ID: 26568
Updated by: sniper@php.net
Reported By: kyle at kylemaxwell dot com
-Status: Open
+Status: Feedback
Bug Type: Reproducible crash
Operating System: WinXP Pro
PHP Version: 4.3.4
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
I can not reproduce this with the latest CVS snapshot.
(make sure you replace php4ts.dll with the one from the snapshot
package)
Previous Comments:
------------------------------------------------------------------------
[2003-12-09 16:46:57] kyle at kylemaxwell dot com
Description:
------------
I have Apache 1.3 and PHP 4.3 set up on a WinXP Pro laptop for testing.
Asking for the file_get_contents($file) when $file points to an empty
text file causes Apache to crash.
Reproduce code:
---------------
<?
$string = file_get_contents("path/to/empty_text_file.txt");
?>
Expected result:
----------------
$string == ""
Actual result:
--------------
One of those MS dialog boxes telling me Apache has experienced an
error, and to report it to MS. Also, a 404 in the page called.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=26568&edit=1