Bug #69623 [Com]: BC: Namespaces now case-sensitive

From: Date: Fri, 22 May 2015 17:50:17 +0000
Subject: Bug #69623 [Com]: BC: Namespaces now case-sensitive
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-192829@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=69623&edit=1 ID: 69623 Comment by: anna at foolab dot ca Reported by: anna at foolab dot ca Summary: BC: Namespaces now case-sensitive Status: Feedback Type: Bug Package: Scripting Engine problem Operating System: OSX 10.10.2 PHP Version: master-Git-2015-05-11 (Git) Block user comment: N Private report: N New Comment: Thanks for the reply. I investigated further and it turns out that the issue resided in filepath case-sensitivity differences between Debian and OSX. Nothing to do with PHP7. You can close the report. Previous Comments: ------------------------------------------------------------------------ [2015-05-12 11:22:10] cmb@php.net The case-insensitivity of namespaces is supposed to be kept for PHP 7.0.0. I can't reproduce any change in this regard with latest master (06ef3aa6b0), see <http://3v4l.org/vPR24> for the code I used. With regard to autoloading, I can't detect a behavioral change, either. The namespace identifier is passed to the autoload function in the letter case its written in the source code (see <http://3v4l.org/Am1Fv>). Can you please post a test script that shows the behavior you're reporting. Please mention the commit you're testing with. ------------------------------------------------------------------------ [2015-05-11 19:38:14] anna at foolab dot ca Description: ------------ PHP 7.0.0-dev Namespaces used to be case insensitive in PHP 5.6, but they are case sensitive now. Not sure if the desired behavior, but will cause fatal errors if there is a case mismatch. Example: Acme\Sitebundle will not be found in the folder is named Acme/SiteBundle ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=69623&edit=1

« previous php.bugs (#192829) next »