Old style constructors in PHP-8

From: Date: Wed, 30 Jan 2019 11:11:16 +0000
Subject: Old style constructors in PHP-8
Groups: php.internals 
Request: Send a blank email to internals+get-103888@lists.php.net to get a copy of this message
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.

« previous php.internals (#103888) next »