php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11249 Long here files fail silently
Submitted: 2001-06-01 22:35 UTC Modified: 2001-06-15 10:15 UTC
From: claw at kanga dot nu Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0.5 OS: Linux
Private report: No CVE-ID: None
 [2001-06-01 22:35 UTC] claw at kanga dot nu
Given a large <<< here file (say a few thousand lines) and PHP 4.0.5 or current CVS versions, and a memory_limit set too low (in my case under 32Meg), trying to load the page will fail silently.  The TCP connection will be dropped, no data will be returned and there will be no message filed in the system logs.  Bad.  There should at least be a log entry on such failure.

J C Lawrence

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-06-15 10:15 UTC] zeev@php.net
Where PHP reports its errors depends on the way you configure it.  By default, an out-of-memory error would be trapped and reported to the standard output (browser).
Depending on  your configuration of error_reporting, this level of errors (E_ERROR) may not be reported at all, and depending on other configuration directives (display_errors, log_errors, etc.) it may or may not be displayed or logged.

I made sure that this error is indeed properly reported with the default configuration, and as expected, it is.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 27 04:01:30 2024 UTC