Hi,

I've just noticed that Wordpress-4.1 on PHP master started silently produce 
different output.

The problem that PHP master started to ignore old-style constructors.

They were deprecated in PHP-7 and PHP produced the following warning


Deprecated: Methods with the same name as their class will not be constructors 
in a future version of PHP; ... has a deprecated constructor


PHP master doesn't produce any warnings and just constructs a class without 
constructor.

This silent behavior change may become a problem for porting legacy code to 
PHP-8,

May be, it makes sense to emit fatal error in case of old-style constructor.


Thanks. Dmitry.

Reply via email to