#5334 [Com]: some inclustion problem
| From: | martzell+php at fastmail dot fm | Date: | Thu, 22 May 2003 12:48:53 +0000 |
| Subject: | #5334 [Com]: some inclustion problem | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-40188@lists.php.net to get a copy of this message | ||
ID: 5334
Comment by: martzell+php at fastmail dot fm
Reported By: cd_record at mycar dot co dot il
Status: Closed
Bug Type: Reproducible Crash
Operating System: win95
PHP Version: 4.0.1pl2
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2000-08-08 07:38:42] stas@php.net
no feedback, closing
------------------------------------------------------------------------
[2000-07-03 11:39:27] stas at cvs dot php dot net
What was your include_path? You probably got PHP caught in include
loop. Do you really need so much local.inc's?
------------------------------------------------------------------------
[2000-07-03 00:33:57] cd_record at mycar dot co dot il
I have PHPLIB instaled, I have defined into the prepend file a line to
AUTOMATICLY
include the file "local.inc" if it exists in the current directrory
I have the following directory
c:\document\dir\local.inc - my local.inc
c:\document\dir\subdir\local.inc - in this one, I have : <? include
"..\local.inc"; ?>
c:\document\dir\subdir\sub-subdir\local.inc - this one also have <?
include "..\include.inc"; ?>
this causes php to include the \subdir\sub-subdir\local.inc, which
include \subdir\local.inc which includes \local.inc
when I runned it under 4.0.1pl, It errored me about yy_create_buffer()
I changed into and old 4.0 beta version I had, it Crushed,
turned back into 4.0.1pl, also crushes ...
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=5334&edit=1