[CLEANUP] Remove legacy code for PHP4 constructors

The removed code was used to compare the class name with the method name to skip PHP4 constructors.