#47664 [Fbk->Asn]: get_class returns NULL instead of FALSE.
| From: | derick@php.net | Date: | Tue, 28 Jul 2009 13:14:53 +0000 |
| Subject: | #47664 [Fbk->Asn]: get_class returns NULL instead of FALSE. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-140365@lists.php.net to get a copy of this message | ||
ID: 47664
Updated by: derick@php.net
Reported By: wiebe at wiebelt dot nl
-Status: Feedback
+Status: Assigned
Bug Type: Class/Object related
Operating System: Ubuntu 8.10
PHP Version: 5.3.0beta1
Assigned To: dmitry
New Comment:
The documentation clearly states:
"Returns the name of the class of which object is an instance. Returns
FALSE if object is not an object."
It doesn't say "shows a warning when object is not an object", so this
should be fixed according to what PHP 5.2.x and the manual say.
Previous Comments:
------------------------------------------------------------------------
[2009-07-28 13:06:48] dmitry@php.net
I would prefer to stay the warning, as it indicates a problem in user
code that probably need to be fixed.
------------------------------------------------------------------------
[2009-06-30 12:33:05] derick@php.net
I've a patch at: http://php.pastebin.com/m20d61023
------------------------------------------------------------------------
[2009-06-23 11:19:37] derick@php.net
This isn't fixed, the warning is still there which is a part of the
problem here.
------------------------------------------------------------------------
[2009-03-16 09:53:50] dmitry@php.net
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
------------------------------------------------------------------------
[2009-03-15 18:10:28] pajoye@php.net
hm, you are right. It should remain the same especially as it is
documented. Dmitry?
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/47664
--
Edit this bug report at http://bugs.php.net/?id=47664&edit=1