Re: Constants and static methods for internal classes

From: Date: Tue, 30 Aug 2005 09:55:42 +0000
Subject: Re: Constants and static methods for internal classes
References: 1  Groups: php.internals php.internals 
Request: Send a blank email to internals+get-18555@lists.php.net to get a copy of this message
Hi Dmitry Stogov, you wrote: > The patch is maden for "easiest" usage and it doesn't support internal > array/constants properties (they weren't supported before). So why burden the weigh of allocation, initialization, destruction and freeing on the extension developer? This will force every extension writer to implement a kind of my dup_zval() function, wouldn't it? And as there's not much reference devs will spam the list on how to use static properties right. I think we could avoid this by stretching the minimalistic approach a bit and provide at least a zend_init_static_properties(). Thanks a lot, -- Michael - < mike(@)php.net >

« previous php.internals (#18555) next »