php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3468 Inlucde and directorys
Submitted: 2000-02-12 15:26 UTC Modified: 2000-07-25 22:02 UTC
From: wico at cnh dot nl Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0 Beta 3 OS: linux
Private report: No CVE-ID: None
 [2000-02-12 15:26 UTC] wico at cnh dot nl
Hiya

Not really an bug but verry anoying

I have this in my php.ini 
include path = ".:/include"

say /webroot is my webroot
/include/database exsits and get's parset
and i have a dir in my webroot : /webroot/database

contens of /webroot/index.htm:

<?
   include "database";
   echo "plop";
?>

this file will terminat without any output or errors (not even in logs)

so i guess php will try to inlcude the dir...
i think it should test if a include file is a dir or not and else go looking in include path

i hope you understand what i mean... english and beer is a bad combination :)

Greetz,

Wico

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-25 22:02 UTC] brad@php.net
It's more of a naming convention problem. 
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Tue Oct 13 10:00:02 2026 UTC