On 14 August 2016 at 22:48, Stanislav Malyshev <smalys...@gmail.com> wrote:
>
> Could you please clarify what you mean by "disallow"?

It will be the standard behaviour for accepting params. The patch is just:

- if (zend_parse_parameters(ZEND_NUM_ARGS(), "|o!", &obj) == FAILURE) {
+ if (zend_parse_parameters(ZEND_NUM_ARGS(), "|o", &obj) == FAILURE) {


but I have added a clear description to the RFC:

> If get_class() is called with null as the parameter, a warning will be 
> emitted:
>
> Warning: get_class() expects parameter 1 to be object, null given in %s on 
> line %d

cheers
Dan

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to