note 89420 deleted from language.oop.serialization by danbrown

From: Date: Sat, 07 Nov 2009 19:12:41 +0000
Subject: note 89420 deleted from language.oop.serialization by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-162593@lists.php.net to get a copy of this message
Note Submitter: andrew dot minerd at sellingsource dot com ---- Interestingly, is_object returns FALSE on, uh, objects of type __PHP_Incomplete_Class (as detailed in this bug report from >2002< http://bugs.php.net/bug.php?id=19842). get_class, on the other hand, works fine, so you can replace: if (is_object($value)) { ... } With: if (get_class($value) !== FALSE) { ... }

« previous php.notes (#162593) next »