get_class inconsistency

From: Date: Wed, 23 Feb 2011 18:14:45 +0000
Subject: get_class inconsistency
Groups: php.internals 
Request: Send a blank email to internals+get-51520@lists.php.net to get a copy of this message
Hi all, would it be safer that get_class return the fully qualified class name ? namespace A\B\C { class Test { } echo get_class( new Test ); // it prints A\B\C\Test }; It should print \A\B\C\Test, as explained http://php.net/manual/en/language.namespaces.rules.php Martin Scotta

« previous php.internals (#51520) next »