#38116 [Bgs]: include_once bug
| From: | tony2001@php.net | Date: | Mon, 17 Jul 2006 07:05:00 +0000 |
| Subject: | #38116 [Bgs]: include_once bug | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-99495@lists.php.net to get a copy of this message | ||
ID: 38116
Updated by: tony2001@php.net
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:
Two files with different names are actually the same file - this is
clearly a misfeature of Windows.
Please complain to its developers.
Previous Comments:
------------------------------------------------------------------------
[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