php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5334 some inclustion problem
Submitted: 2000-07-03 00:33 UTC Modified: 2000-08-08 07:38 UTC
From: cd_record at mycar dot co dot il Assigned:
Status: Closed Package: Reproducible Crash
PHP Version: 4.0.1pl2 OS: win95
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: cd_record at mycar dot co dot il
New email:
PHP Version: OS:

 

 [2000-07-03 00:33 UTC] 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 ...

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-03 11:39 UTC] 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-08-08 07:38 UTC] stas@php.net
no feedback, closing
 [2003-05-22 07:48 UTC] 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.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 01:00:01 2026 UTC