From:             
Operating system: Mac OS X 10.6
PHP version:      5.3.2
Package:          Scripting Engine problem
Bug Type:         Bug
Bug description:Case-insensitive include_once/require_once includes file more 
than once

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 bug report at http://bugs.php.net/bug.php?id=51312&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=51312&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=51312&r=trysnapshot53
Try a snapshot (PHP 6.0):            
http://bugs.php.net/fix.php?id=51312&r=trysnapshot60
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=51312&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=51312&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=51312&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=51312&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=51312&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=51312&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=51312&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=51312&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=51312&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=51312&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=51312&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=51312&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=51312&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=51312&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=51312&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=51312&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=51312&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=51312&r=mysqlcfg

Reply via email to