joomla/joomla-platform-examples — Issue #12: Platform 11.4 syntax bug in loader.php
Author: railgt
Created: 2012-02-12 03:03:52+00:00
State: open

Could someone take a look at loader.php _autoload() definition. It seems there is a syntax bug in preg_split.
The actual line looks like that:
$parts = preg_split('/(?>=[a-z])(?=[A-Z])/x', substr($class, 1));
while it should be:
$parts = preg_split('/(?<=[a-z])(?=[A-Z])/x', substr($class, 1));

?<= shall be used for look-behind assertion. Otherwise, the class name split may not work here.