Changes – php5

Speaking of changes, i’ve been noticing a lot of them creeping up in php5, i’m going to try to start blogging some of the biggest backwards compatiblity breaks.

Todays is the get_class() method now returns class names with matching case.

This breaks its standard use

if (get_class($object) == "phpdocumentor"))
echo "were good";

Thanks goto Greg Beaver for bringing this to my and PEARs attention

Posted in PHP