php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #38116 include_once bug
Submitted: 2006-07-16 20:24 UTC Modified: 2006-07-18 05:40 UTC
From: nimce4u at gmail dot com Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 5.1.4 OS: Windows XP Pro
Private report: No CVE-ID: None
 [2006-07-16 20:24 UTC] 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!

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-07-17 06:34 UTC] tony2001@php.net
Because it's the same file on Windows.
No bug here.
 [2006-07-17 06:45 UTC] nimce4u at gmail dot com
I know it's the same file but still...
Why PHP includes it again???
 [2006-07-17 07:05 UTC] 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 09:00 UTC] nimce4u at gmail dot com
But In the manual you wrote in PHP 5 you have fixed that bug..
http://il2.php.net/manual/en/function.include-once.php
 [2006-07-18 05:40 UTC] nimce4u at gmail dot com
But In the manual you wrote that in PHP 5 you have fixed that bug..
http://il2.php.net/manual/en/function.include-once.php
PLEASE HELP ME!!!!!
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Jul 19 23:00:03 2025 UTC