Edit report at http://bugs.php.net/bug.php?id=51312&edit=1
ID: 51312 Updated by: tony2...@php.net Reported by: whatthejeff at gmail dot com Summary: include_once/require_once are case sensitive on OS X -Status: Open +Status: Bogus Type: Bug Package: Scripting Engine problem Operating System: Mac OS X 10.6 PHP Version: 5.3.2 New Comment: It's not reproducible on windows because filesystems there are ALWAYS case insensitive. But since on Mac it's possible to choose between case sensitive and case insensitive FS, you have to control this yourself - there is no way for PHP to 'detect' how exactly the filename should be used (and even if there is, it would mean a nice performance impact). In short - this is not PHP problem. Previous Comments: ------------------------------------------------------------------------ [2010-03-19 06:09:01] whatthejeff at gmail dot com Further testing indicates that this bug does not exist for all case sensitive file systems. I could not reproduce this error using Windows. ------------------------------------------------------------------------ [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