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] [EMAIL PROTECTED]

"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

Reply via email to