Edit report at http://bugs.php.net/bug.php?id=51312&edit=1

 ID:               51312
 User updated by:  whatthejeff at gmail dot com
 Reported by:      whatthejeff at gmail dot com
-Summary:          Case-insensitive include_once/require_once includes
                   file more than once
+Summary:          include_once/require_once are case sensitive on OS X
 Status:           Open
 Type:             Bug
 Package:          Scripting Engine problem
 Operating System: Mac OS X 10.6
 PHP Version:      5.3.2

 New Comment:

Further testing indicates that this bug does not exist for all case
sensitive file systems.  I could not reproduce this error using Windows.


Previous Comments:
------------------------------------------------------------------------
[2010-03-17 05:36:02] whatthejeff at gmail dot com

Description:
------------
With PHP 5.3.2 on OS X 10.6 I am able to include the same file multiple
times using include_once() and require_once()



Configurations:

--

$ /usr/local/php-test/bin/php -v

PHP 5.3.2 (cli) (built: Mar 16 2010 21:48:40) 



$ /usr/local/php-test/bin/php -i | grep config

Configure Command =>  './configure'  '--prefix=/usr/local/php-test'





Test script:
---------------
$ echo '<?php echo "included\n"; ?>' > test.php

$ php -r 'require_once("test.php"); require_once("Test.php");'



or



$ php -r 'include_once("test.php"); include_once("Test.php");'

Expected result:
----------------
included

Actual result:
--------------
included

included


------------------------------------------------------------------------



-- 
Edit this bug report at http://bugs.php.net/bug.php?id=51312&edit=1

Reply via email to