Description
The following code:
<?php
class C {
public $p;
}
spl_autoload_register(function ($name) {
echo "Autoloading $name\n";
});
$rc = new ReflectionClass('C');
try {
$rc->getProperty("Some\\MixedCase::p");
} catch (ReflectionException $e) {
echo $e->getMessage(), "\n";
}
Resulted in this output:
Autoloading some\mixedcase
Class "some\mixedcase" does not exist
But I expected this output instead:
Autoloading Some\MixedCase
Class "Some\MixedCase" does not exist
PHP Version
Operating System
No response
Description
The following code:
Resulted in this output:
But I expected this output instead:
PHP Version
Operating System
No response