#36556 [Opn->Bgs]: include_once and set_include_path
| From: | tony2001@php.net | Date: | Tue, 28 Feb 2006 10:53:58 +0000 |
| Subject: | #36556 [Opn->Bgs]: include_once and set_include_path | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-93755@lists.php.net to get a copy of this message | ||
ID: 36556
Updated by: tony2001@php.net
Reported By: reto at buxaprojects dot com
-Status: Open
+Status: Bogus
Bug Type: Scripting Engine problem
Operating System: Windows XP
PHP Version: 5.1.2
New Comment:
"dir/file.php" is still the same file even if you add a directory to
include_path.
No bug here.
Previous Comments:
------------------------------------------------------------------------
[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