PHP 4.0 Bug #5643 Updated: Including of the same file

From: Date: Tue, 21 Nov 2000 09:29:23 +0000
Subject: PHP 4.0 Bug #5643 Updated: Including of the same file
Groups: php.dev 
Request: Send a blank email to php-dev+get-38779@lists.php.net to get a copy of this message
ID: 5643 Updated by: hholzgra Reported By: mop@globalpark.de Status: Closed Bug Type: Reproduceable crash Assigned To: Comments: current versions (tested 4.0.1pl1) fail with a "Fatal: emallo(): unable to allocate ... bytes" when no more memory is left or with 'cannot redeclare function' if a function definition is in place ahead of the circular include Previous Comments: --------------------------------------------------------------------------- [2000-11-21 04:07:11] sniper@php.net There is include_once() which should be used instead. --Jani --------------------------------------------------------------------------- [2000-07-17 22:57:55] joey@cvs.php.net If you upgrade to php4.0.1pl2 or better, you will get a segmentation fault instead of hanging. Still not ideal, but better until it's fixed. --------------------------------------------------------------------------- [2000-07-17 13:47:07] mop@globalpark.de Ok...first of all it's a stupid bug:) I made a include file "func.inc.php" and wanted to include config.inc.php. But instead of including config.inc.php i included func.inc.php:) The result was that my "server" started reading and was hang completely because he always tried to include "func.inc.php" when he started with "func.inc.php" :) PHP3 says that i can't redeclare my functions and i hope that PHP4 will do this as well in the future. --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=5643

« previous php.dev (#38779) next »