Bug #69623 [NoF->Nab]: BC: Namespaces now case-sensitive

From: Date: Thu, 17 Aug 2017 16:56:07 +0000
Subject: Bug #69623 [NoF->Nab]: BC: Namespaces now case-sensitive
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-210715@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 Updated by: cmb@php.net Reported by: anna at foolab dot ca Summary: BC: Namespaces now case-sensitive -Status: No Feedback +Status: Not a bug Type: Bug Package: Scripting Engine problem Operating System: OSX 10.10.2 PHP Version: master-Git-2015-05-11 (Git) -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: > Nothing to do with PHP7. You can close the report. Fine. Previous Comments: ------------------------------------------------------------------------ [2015-05-24 04:22:18] php-bugs at lists dot php dot net No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Re-Opened". Thank you. ------------------------------------------------------------------------ [2015-05-22 17:50:15] anna at foolab dot ca 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. ------------------------------------------------------------------------ [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 (#210715) next »