[php-src] PR #22272: Use canonical spelling and preserve user-given case in error messages

From: Date: Wed, 10 Jun 2026 17:57:06 +0000
Subject: [php-src] PR #22272: Use canonical spelling and preserve user-given case in error messages
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-36363@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/22272 Author: jorgsowa Extracted from https://github.com/php/php-src/pull/22260 The __debugInfo() fatal error printed the lowercased method name (__debuginfo()), and ReflectionClass::getProperty() lowercased the class part of a "Class::property" argument before printing it in the "Class ... does not exist" exception. Print the canonical __debugInfo() spelling and pass the class name to zend_lookup_class() as given, which also forwards the original case to autoloaders, matching ReflectionMethod and ReflectionProperty. Fixes https://github.com/php/php-src/issues/22271

« previous php.git-pulls (#36363) next »