php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26568 file_get_contents causes Apache crash
Submitted: 2003-12-09 16:46 UTC Modified: 2003-12-14 21:15 UTC
From: kyle at kylemaxwell dot com Assigned:
Status: No Feedback Package: Reproducible crash
PHP Version: 4.3.4 OS: WinXP Pro
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2003-12-09 16:46 UTC] 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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-12-09 18:25 UTC] sniper@php.net
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)

 [2003-12-14 21:15 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 16:01:31 2024 UTC