Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:15283 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 54798 invoked by uid 1010); 6 Mar 2005 12:17:50 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 54783 invoked from network); 6 Mar 2005 12:17:50 -0000 Received: from unknown (HELO pb1.pair.com) (127.0.0.1) by localhost with SMTP; 6 Mar 2005 12:17:50 -0000 X-Host-Fingerprint: 212.227.126.189 moutng.kundenserver.de Received: from ([212.227.126.189:55809] helo=moutng.kundenserver.de) by pb1.pair.com (ecelerity HEAD r(5124)) with SMTP id C7/94-29225-DE4FA224 for ; Sun, 06 Mar 2005 07:17:50 -0500 Received: from [212.227.126.155] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1D7uhf-0000KD-00 for internals@lists.php.net; Sun, 06 Mar 2005 13:17:47 +0100 Received: from [62.224.31.199] (helo=p3EE01FC7.dip0.t-ipconnect.de) by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1) id 1D7uhf-0003U5-00 for internals@lists.php.net; Sun, 06 Mar 2005 13:17:47 +0100 To: internals Content-Type: multipart/mixed; boundary="=-cDEt5NSZctp9916nA9Q6" Date: Sun, 06 Mar 2005 13:17:34 +0100 Message-ID: <1110111454.335.21.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.0.2 FreeBSD GNOME Team Port X-Provags-ID: kundenserver.de abuse@kundenserver.de auth:bf648c7cefcb4f7c0e2e63c674feb220 Subject: ReflectionProperty::getValue() -> UNKNOWN:0 From: thekid@thekid.de (Timm Friebe) --=-cDEt5NSZctp9916nA9Q6 Content-Type: text/plain Content-Transfer-Encoding: 7bit Hi, the following script: getProperty('instance')->getValue()); ?> prints "UNKNOWN:0" - expected behaviour would be to print "NULL". Attached is a diff against zend_reflection_api.c which fixes this. -- Timm If it ain't broken, it doesn't have enough features yet --=-cDEt5NSZctp9916nA9Q6 Content-Disposition: attachment; filename=reflection.diff Content-Type: text/x-patch; name=reflection.diff; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Index: Zend/zend_reflection_api.c =================================================================== RCS file: /repository/ZendEngine2/zend_reflection_api.c,v retrieving revision 1.149 diff -u -r1.149 zend_reflection_api.c --- Zend/zend_reflection_api.c 27 Feb 2005 22:21:17 -0000 1.149 +++ Zend/zend_reflection_api.c 6 Mar 2005 12:15:51 -0000 @@ -3358,6 +3358,7 @@ } if ((ref->prop->flags & ZEND_ACC_STATIC)) { + zend_update_class_constants(intern->ce TSRMLS_CC); if (zend_hash_quick_find(intern->ce->static_members, ref->prop->name, ref->prop->name_length + 1, ref->prop->h, (void **) &member) == FAILURE) { zend_error(E_ERROR, "Internal error: Could not find the property %s", ref->prop->name); /* Bails out */ --=-cDEt5NSZctp9916nA9Q6--