#36556 [Bgs]: include_once and set_include_path
| From: | reto at buxaprojects dot com | Date: | Tue, 28 Feb 2006 13:20:41 +0000 |
| Subject: | #36556 [Bgs]: include_once and set_include_path | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-93759@lists.php.net to get a copy of this message | ||
ID: 36556
User updated by: reto at buxaprojects dot com
Reported By: reto at buxaprojects dot com
Status: Bogus
Bug Type: Scripting Engine problem
Operating System: Windows XP
PHP Version: 5.1.2
New Comment:
But why does it include the second file, and not the first one?
Previous Comments:
------------------------------------------------------------------------
[2006-02-28 11:53:56] tony2001@php.net
"dir/file.php" is still the same file even if you add a directory to
include_path.
No bug here.
------------------------------------------------------------------------
[2006-02-28 11:38:00] reto at buxaprojects dot com
Description:
------------
include_once() and require_once doesn't work properly by using
set_include_path().
Reproduce code:
---------------
<?php
require_once("dir/file.php");
set_include_path("../another_dir/");
require_once("dir/file.php");
?>
Expected result:
----------------
include the files in 2 different directories.
Actual result:
--------------
includes only the second file and NOT both.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=36556&edit=1