|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2012-06-12 21:01 UTC] v at roxori dot com
Description: ------------ After upgrading PHP to 5.4.3 no longer return the name of the method. Correspondingly, the library stopped working, namely Zend. Now the issue Fatal error: Uncaught exception 'Zend_Amf_Server_Exception' with message 'Duplicate method registered: Having sorted out, I realized that the code does not return the name of the method. In PHP 5.3 all was ok. --- From manual page: http://www.php.net/reflectionclass.getname#refsect1- reflectionclass.getname-description --- Test script: --------------- class Foo { function first(){ } function second(){ } } $foo = new Foo(); $reflect = new ReflectionClass($foo); $props = $reflect->getMethods(); foreach ($props as $prop) { print $prop->getName() . "\n"; } Expected result: ---------------- first second Actual result: -------------- (empty) PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 23:00:01 2025 UTC |
Another found that the index broken array, so that probably does not display a value. PHP5.4.3 FreeBSD9 ReflectionMethod Object ( [nameiҐ] => first [class] => Foo ) ReflectionMethod Object ( [nameiҐ] => second [class] => Foo ) PHP5.4.3 Linux ReflectionMethod Object ( [name] => first [class] => Foo ) ReflectionMethod Object ( [name] => second [class] => Foo )