Strange array key names

From: Date: Mon, 01 May 2006 06:23:41 +0000
Subject: Strange array key names
Groups: php.gtk.dev 
Request: Send a blank email to php-gtk-dev+get-2796@lists.php.net to get a copy of this message
Hello all, When reflecting the interfaces of a class, I get strange key names for the classes: 8<------------------ array(5) { ["GtkTreeMode"]=> &object(ReflectionClass)#33 (1) { ["name"]=> string(12) "GtkTreeModel" } ["GtkTreeDragSourc"]=> &object(ReflectionClass)#34 (1) { ["name"]=> string(17) "GtkTreeDragSource" } ["GtkTreeDragDes"]=> &object(ReflectionClass)#35 (1) { ["name"]=> string(15) "GtkTreeDragDest" } ["GtkTreeSortabl"]=> &object(ReflectionClass)#36 (1) { ["name"]=> string(15) "GtkTreeSortable" } ["Traversabl"]=> &object(ReflectionClass)#37 (1) { ["name"]=> string(11) "Traversable" } } 8<------------------ You see that the key is always the name of the class without the last letter. Is that intention, or maybe the sign of a bug somewhere deep in php or php-gtk? Code to reproduce: > $rClass = new ReflectionClass('GtkListStore'); > var_dump($rClass->getInterfaces()); -- Regards/MfG, Christian Weiske

Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
« previous php.gtk.dev (#2796) next »