Restored PHP4 constructors with deprecation notice