#23752 [Opn->Bgs]: Three level include crashes PHP
ID: 23752
Updated by: sniper@php.net
Reported By: martzell+php at fastmail dot fm
-Status: Open
+Status: Bogus
Bug Type: Reproducible crash
Operating System: Windows 2000
PHP Version: 4.3.1
New Comment:
Even without seeing any example code I know this is not bug
in PHP, you just end up in an endless loop by including same
file from another file which includes the first file..
Ask support questions on how to use PHP elsewhere.
Also, include_once() is your friend..
Previous Comments:
------------------------------------------------------------------------
[2003-05-23 03:08:40] martzell+php at fastmail dot fm
There is no installer. The install.txt doesn't describe how to update.
There is an entry "PHP 4.3.1" found in Control Panel > Add / Remove
Programs.
Now I have to possibilities:
1) Replacing the files under C:\PHP, with the newer ones from the
.zip-File. But there are many more files in the archive than in C:\PHP.
The entry in the Add / Remove Programs Dialog wouldn't be correct
anymore. Does this work (especially with the IIS-Configuration)?
2) Uninstall PHP 4.3.1 from Add / Remove Programs. Unpack the archive
to C:\PHP\. Configure the IIS.
What should I do?
------------------------------------------------------------------------
[2003-05-22 08:00:33] wez@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
------------------------------------------------------------------------
[2003-05-22 07:57:24] martzell+php at fastmail dot fm
The php.exe crashes when I try to include a file which includes a file
one level higher, which also includes a file one level higher. Can't
PHP include files three times?
My website navigation based on includes. The ./navigation.inc.php
includes ../navigation.inc.php and contains links. So I have a simple
two level navigation based on includes. This works.
But now I needed a third level of navigation. So a third
navigation.inc.php includes the file, which contains the second level
navigation and the include to the first level navigation.
I think the good stable SSI (Server Side Includes) isn't interpreted in
.php-files by default, before the PHP is interpreted or interpreted at
all. So SSI is no solution like in ASP which has no own include
directive.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=23752&edit=1
Thread (6 messages)