Re: Re: static members of internal classes

From: Date: Fri, 22 Jul 2005 12:49:45 +0000
Subject: Re: Re: static members of internal classes
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-17381@lists.php.net to get a copy of this message
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 >

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