un-de-re-deprecation

From: Date: Mon, 06 Jul 2009 17:29:19 +0000
Subject: un-de-re-deprecation
Groups: php.general 
Request: Send a blank email to php-general+get-294966@lists.php.net to get a copy of this message
http://us.php.net/manual/en/language.operators.type.php The instanceof operator was introduced in PHP 5. Before this time is_a() was used but is_a() has since been deprecated in favor of instanceof. Note that as of PHP 5.3.0, is_a() is no longer deprecated. http://us.php.net/manual/en/function.is-a.php Changelog Version Description 5.3.0 This function is no longer deprecated, and will therefore no longer throw E_STRICT warnings. 5.0.0 This function became deprecated in favour of the instanceof operator. Calling this function will result in an E_STRICT warning. "Oh, never mind. All that refactoring you did to take in to account the deprecation of is_a(), well, sorry 'bout that. We were a little not right in the head when we originally made that decision. You can go ahead and change all that code back now if you like..." Ok, so I'm curious, why was is_a() added back in when it was tossed out on it's head in 5.0? thnx, Christoph

« previous php.general (#294966) next »