Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:17381 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 75297 invoked by uid 1010); 22 Jul 2005 12:51:42 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 75282 invoked from network); 22 Jul 2005 12:51:42 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Jul 2005 12:51:42 -0000 X-Host-Fingerprint: 212.183.32.20 M2401P020.adsl.highway.telekom.at Received: from ([212.183.32.20:9275] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.0 beta r(6227M)) with SMTP id 5C/D4-33635-EDBE0E24 for ; Fri, 22 Jul 2005 08:51:42 -0400 Message-ID: <5C.D4.33635.EDBE0E24@pb1.pair.com> To: internals@lists.php.net Date: Fri, 22 Jul 2005 14:49:45 +0200 Organization: IWORKS User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.2) Gecko/20040803 [ http://iworks.at ] X-Accept-Language: de-AT, de-DE, de, en, en-GB, en-US MIME-Version: 1.0 References: <1052764153.20050722141444@marcus-boerger.de> In-Reply-To: <1052764153.20050722141444@marcus-boerger.de> X-Enigmail-Version: 0.90.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig7F59FCAC4046E044F10B4B11" X-Posted-By: 212.183.32.20 Subject: Re: [PHP-DEV] Re: static members of internal classes From: mike@php.net (Michael Wallner) --------------enig7F59FCAC4046E044F10B4B11 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi Marcus Boerger, you wrote: > Hello Michael, > > sure but there's a difference Reflection whatever is only run during > request time, what you want is running outside and require malloc rather > than emalloc. Thanks, I already adjusted my code according to that. But guess, I've still not solved all my problems :( D:\Daten\Source\php-src>Debug_TS\php.exe -r "ReflectionClass::export(HttpResponse);" | grep dummy Property [ public static $dummy ] D:\Daten\Source\php-src>Debug_TS\php.exe -r "$c = new ReflectionClass(HttpResponse); $c->setStaticPropertyValue('dummy', 'foobar');" Fatal error: Uncaught exception 'ReflectionException' with message 'Class HttpResponse does not have a property named dummy' in Command line code:1 D:\Daten\Source\php-src>Debug_TS\php.exe -r "echo HttpResponse::$dummy;" Fatal error: Access to undeclared static property: HttpResponse::$dummy in Command line code on line 1 The static property "dummy" is declared as follows: zend_declare_property_string(http_response_object_ce, "dummy", sizeof("dummy"), "EMPTY", ZEND_ACC_PUBLIC|ZEND_ACC_STATIC TSRMLS_CC); Thanks, -- Michael - < mike(@)php.net > --------------enig7F59FCAC4046E044F10B4B11 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (Cygwin) iD8DBQFC4Ots2pTtEijQyW0RAlkcAJ40eBqJz0tj/bYM5gPuQsJHOY2jNwCePa0w GbCuO6/aJXdBVFYstr9PkuY= =oDvr -----END PGP SIGNATURE----- --------------enig7F59FCAC4046E044F10B4B11--