Re: cvs: php4 /ext/standard basic_functions.c incomplete_class.c php_incomplete_class.h var.c /ext/wddx wddx.c
From: Thies C. Arntzen Date: Mon, 06 Aug 2001 15:57:16 +0000 Subject: Re: cvs: php4 /ext/standard basic_functions.c incomplete_class.c php_incomplete_class.h var.c /ext/wddx wddx.c References: 1 2 3 4 5 6 7 8 9 10 Groups: php.dev Request: Send a blank email to php-dev+get-62287@lists.php.net to get a copy of this message
On Mon, Aug 06, 2001 at 10:34:34AM -0500, Andrei Zmievski wrote: > On Mon, 06 Aug 2001, Zeev Suraski wrote: > > Drawbacks: > > - It's slow. We encourage putting expensive operations into the > > module_init, using dl() means they end up being done multiple times. > > > > - Under Apache, it's even worse - since in addition to slowliness, it also > > ends up consuming significantly more memory, since any memory the extension > > allocates in module_init (e.g., the function entries it registers) cannot > > be shared between the processes. > > This doesn't apply under the standalone version, which is what I'm > mainly worried about. > > > - It prevents the engine from optimizing function calls at compile time, by > > looking at what kind of arguments these functions expect. This is left for > > run-time, which results in significantly slower run-time performance. > > Can you quantify "significantly"? > > > - Literally, none of the extensions properly cleans up after itself, > > leaving PHP in various degrees of instability. This rarely translates to > > crashes, because people don't usually have a script in which they dl() and > > then use a class, another script in which they use the class without > > dl()'ing first, and call the 2nd script right after calling the 1st > > one. Still, from a cleanliness perspective and in theory, it's bad. > > I see. I wasn't aware that the extension was supposed to clean up the > classes it registers. I will fix PHP-GTK behavior on this. don't think there's an API for that. we would have to add the MODULE_NUMBER to the class-entry and then (when unloading the module) also destroy the classes that that module defined. i think constants and functions already do this. tc
Thread (52 messages)
- Re: cvs: php4 /ext/standard basic_functions.cincomplete_class.c php_incomplete_class.h var.c /ext/wddx wddx.c
- Re: cvs: php4 /ext/standard basic_functions.c incomplete_class.c php_incomplete_class.h var.c /ext/wddx wddx.c
- Re: Re: cvs: php4 /ext/standard basic_functions.c incomplete_class.c php_incomplete_class.h var.c /ext/wddx wddx.c
- Re: cvs: php4 /ext/standard basic_functions.c incomplete_class.c php_incomplete_class.h var.c /ext/wddx wddx.c
- Re: Re: cvs: php4 /ext/standard basic_functions.cincomplete_class.c php_incomplete_class.h var.c /ext/wddx wddx.c
- Re: Re: cvs: php4 /ext/standardbasic_functions.c incomplete_class.c php_incomplete_class.h var.c /ext/wddx wddx.c
- Re: Re: cvs: php4 /ext/standard basic_functions.cincomplete_class.c php_incomplete_class.h var.c /ext/wddx wddx.c
- Re: Re: cvs: php4 /ext/standard basic_functions.c incomplete_class.c php_incomplete_class.h var.c /ext/wddx wddx.c
- Re: Re: cvs: php4 /ext/standard basic_functions.c incomplete_class.c php_incomplete_class.h var.c /ext/wddx wddx.c
- Re: Re: cvs: php4 /ext/standardbasic_functions.c incomplete_class.c php_incomplete_class.h var.c/ext/wddx wddx.c
- Re: Re: cvs: php4 /ext/standard basic_functions.c incomplete_class.c php_incomplete_class.h var.c /ext/wddx wddx.c
- Re: Re: cvs: php4 /ext/standard basic_functions.cincomplete_class.c php_incomplete_class.h var.c /ext/wddx wddx.c
- Re: Re: cvs: php4 /ext/standard basic_functions.c incomplete_class.c php_incomplete_class.h var.c /ext/wddx wddx.c
- Re: Re: cvs: php4 /ext/standard basic_functions.c incomplete_class.c php_incomplete_class.h var.c /ext/wddx wddx.c
- Re: Re: cvs: php4 /ext/standardbasic_functions.c incomplete_class.c php_incomplete_class.h var.c /ext/wddx wddx.c
- Re: Re: cvs: php4 /ext/standardbasic_functions.c incomplete_class.c php_incomplete_class.h var.c /ext/wddx wddx.c
- Unknown Message
- Re: cvs: php4 /ext/standard basic_functions.cincomplete_class.c php_incomplete_class.h var.c /ext/wddx wddx.c
- Re: cvs: php4 /ext/standard basic_functions.c incomplete_class.c php_incomplete_class.h var.c /ext/wddx wddx.c
- Re: Re: cvs: php4 /ext/standard basic_functions.c incomplete_class.c php_incomplete_class.h var.c /ext/wddx wddx.c
- Re: cvs: php4 /ext/standard basic_functions.c incomplete_class.c php_incomplete_class.h var.c /ext/wddx wddx.c
- Re: Re: cvs: php4 /ext/standard basic_functions.cincomplete_class.c php_incomplete_class.h var.c /ext/wddx wddx.c
- Re: Re: cvs: php4 /ext/standardbasic_functions.c incomplete_class.c php_incomplete_class.h var.c /ext/wddx wddx.c
- Re: Re: cvs: php4 /ext/standard basic_functions.cincomplete_class.c php_incomplete_class.h var.c /ext/wddx wddx.c
- Re: Re: cvs: php4 /ext/standard basic_functions.c incomplete_class.c php_incomplete_class.h var.c /ext/wddx wddx.c
- Re: Re: cvs: php4 /ext/standard basic_functions.c incomplete_class.c php_incomplete_class.h var.c /ext/wddx wddx.c
- Re: Re: cvs: php4 /ext/standardbasic_functions.c incomplete_class.c php_incomplete_class.h var.c/ext/wddx wddx.c
- Re: Re: cvs: php4 /ext/standard basic_functions.c incomplete_class.c php_incomplete_class.h var.c /ext/wddx wddx.c
- Re: Re: cvs: php4 /ext/standard basic_functions.cincomplete_class.c php_incomplete_class.h var.c /ext/wddx wddx.c
- Re: Re: cvs: php4 /ext/standard basic_functions.c incomplete_class.c php_incomplete_class.h var.c /ext/wddx wddx.c
- Re: Re: cvs: php4 /ext/standard basic_functions.c incomplete_class.c php_incomplete_class.h var.c /ext/wddx wddx.c
- Re: Re: cvs: php4 /ext/standardbasic_functions.c incomplete_class.c php_incomplete_class.h var.c /ext/wddx wddx.c
- Re: Re: cvs: php4 /ext/standardbasic_functions.c incomplete_class.c php_incomplete_class.h var.c /ext/wddx wddx.c
| « previous | php.dev (#62287) | next » |
|---|