#38116 [Bgs]: include_once bug
ID: 38116
User updated by: nimce4u at gmail dot com
Reported By: nimce4u at gmail dot com
Status: Bogus
Bug Type: Scripting Engine problem
Operating System: Windows XP Pro
PHP Version: 5.1.4
New Comment:
But In the manual you wrote in PHP 5 you have fixed that bug..
http://il2.php.net/manual/en/function.include-once.php
Previous Comments:
------------------------------------------------------------------------
[2006-07-17 07:05:00] tony2001@php.net
Two files with different names are actually the same file - this is
clearly a misfeature of Windows.
Please complain to its developers.
------------------------------------------------------------------------
[2006-07-17 06:45:04] nimce4u at gmail dot com
I know it's the same file but still...
Why PHP includes it again???
------------------------------------------------------------------------
[2006-07-17 06:34:21] tony2001@php.net
Because it's the same file on Windows.
No bug here.
------------------------------------------------------------------------
[2006-07-16 20:24:16] nimce4u at gmail dot com
Description:
------------
When I use include_once
With:
include_once("inc.php");
and
include_once("INC.php");
The file are included two times!!
Reproduce code:
---------------
org.php:
<?php
include_once("inc.php");
include_once("INC.php");
?>
Expected result:
----------------
inc.php is included ONE TIME ONLY
Actual result:
--------------
inc.php is included TWO TIMES!
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=38116&edit=1
Thread (6 messages)