Re: [PHP-DEV] Re: [RFC] get_class() disallow null parameter

2016-08-15 Thread Christoph M. Becker
On 15.08.2016 at 02:09, Stanislav Malyshev wrote: >> Prohibiting `get_class(NULL)` is certainly a good idea, but I have some >> concerns regarding BC. While `__CLASS__` has been introduced with PHP >> 4.3.0, it had the glitch to return the lower-cased class name before PHP >> 5.0.0. So there *mi

Re: [PHP-DEV] Re: [RFC] get_class() disallow null parameter

2016-08-14 Thread Stanislav Malyshev
Hi! > Prohibiting `get_class(NULL)` is certainly a good idea, but I have some > concerns regarding BC. While `__CLASS__` has been introduced with PHP > 4.3.0, it had the glitch to return the lower-cased class name before PHP > 5.0.0. So there *might* still be PHP 5 code around using `get_class(N

[PHP-DEV] Re: [RFC] get_class() disallow null parameter

2016-08-14 Thread Christoph M. Becker
On 14.08.2016 at 13:00, Dan Ackroyd wrote: > Following an earlier discussion in January, here is a small RFC to > change get_class() to disallow null being passed as parameter. > > https://wiki.php.net/rfc/get_class_disallow_null_parameter > > Allowing null to be passed to get_class() is a 'gotc