Re: [RFC] [Vote] var_info
| From: | Stanislav Malyshev | Date: | Mon, 11 Jul 2016 00:01:20 +0000 |
| Subject: | Re: [RFC] [Vote] var_info | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-94462@lists.php.net to get a copy of this message | ||
Hi!
>> * Make is_object() return true for IncompleteClass. This is just
>> ridiculous. I care zero about the theoretical BC impact.
>
> I have no idea why it doesn't do so. I'll try to dig up when it was made
> so and see if there's some explanation.
This is the change that caused it:
commit 7b3fb771e4b022a8bf74b1a881dbec67d3ad460b
Author: Yasuo Ohgaki <yohgaki@php.net>
Date: Wed Jul 24 09:55:11 2002 +0000
is_object() returns FALSE if object is a "incomplete object".
Raise E_NOTICE, instead of E_ERROR, for setting/getting properties
to/from a "incomplete object".
There's some discussion on this patch:
http://grokbase.com/t/php/php-dev/027rwwmc8k/php-cvs-cvs-php4-ext-standard-incomplete-class-c-php-incomplete-class-h-type-c
There are references to previous discussions but I couldn't find it.
Yasuo, I realize it was a long time ago, but maybe you remember why it
was done and can weight in on this?
--
Stas Malyshev
smalyshev@gmail.com