Re: Re: __autocreate() function for non-existing variables

php.internals

Vesselin Atanasov

23 years ago
Hello. Sorry for double posting but I forgot to CC it to the mailing list. Basically I need some special names to be available automatically without the need to create them via new() Some of them just like the database object will be singletons, but some need a different copy in every symbol table in which they are used. Basically a singleton + automatic visibility is an autoglobal variable, but a non-singleton + automatic visibility cannot be implemented without adding some functionality to the Zend engine. vesselin

Zeev Suraski

23 years ago
Try to use the language features that exist to implement your functionality. If you find that you cannot do it, chances are that you're trying to do something wrong, and not that the language is missing some core feature. Zeev At 12:00 20/08/2003, Vesselin Atanasov wrote: