php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26305 Segmentation Fault when endlessly including the same file
Submitted: 2003-11-18 13:41 UTC Modified: 2003-11-18 15:05 UTC
From: vesely at tana dot it Assigned:
Status: Not a bug Package: Reproducible crash
PHP Version: 4.3.4 OS: Solaris
Private report: No CVE-ID: None
 [2003-11-18 13:41 UTC] vesely at tana dot it
Description:
------------
Yes, I've been so stupid to do that.
(I thought ../ could be relative to the file
being included rather than the file being executed.)

However, triggering a segmentation fault isn't the
nicest way out of that. How does php deal with VERY
big sources?

Reproduce code:
---------------
somedir/subdir/example.php:

   require("../common.inc");

somedir/common.inc:

   require("../common.inc");


Expected result:
----------------
Fatal: out of memory

Actual result:
--------------
Segmentation Fault (core dumped)

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-11-18 15:05 UTC] sniper@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 17 14:04:04 2025 UTC