Bug #51312 [Opn]: include_once/require_once are case sensitive on OS X

From: Date: Fri, 19 Mar 2010 05:09:01 +0000
Subject: Bug #51312 [Opn]: include_once/require_once are case sensitive on OS X
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-148757@lists.php.net to get a copy of this message
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


Thread (6 messages)

« previous php.bugs (#148757) next »