Re: [PHP] Re: [PHP-DEV] How expensive are function_exists() calls?

2009-03-13 Thread mike
On Thu, Mar 12, 2009 at 10:35 PM, Robert Cummings rob...@interjinn.com wrote: The only thing that should defeat the usefulness of a bytecode cache is the use of eval since the cache has no reference point upon which to determine if the eval'd code has been previously compiled and has changed

[PHP] Re: [PHP-DEV] How expensive are function_exists() calls?

2009-03-12 Thread mike
For templating ideas ... Would bytecode caches (APC) be able to work properly with this: function print_something($args, $output = 'html') { switch($output) { 'iphone': print_something_iphone($args); break; default:

Re: [PHP] Re: [PHP-DEV] How expensive are function_exists() calls?

2009-03-12 Thread Robert Cummings
On Thu, 2009-03-12 at 21:55 -0700, mike wrote: For templating ideas ... Would bytecode caches (APC) be able to work properly with this: function print_something($args, $output = 'html') { switch($output) { 'iphone': print_something_iphone($args);

Re: [PHP] Re: [PHP-DEV] How expensive are function_exists() calls?

2009-03-12 Thread mike
On Thu, Mar 12, 2009 at 10:10 PM, Robert Cummings rob...@interjinn.com wrote: I thought we covered a question just like this a week ago... yes this will not pose a problem for a bytecode cache. Apologies. I saw an example of some OOP thing from internals before it moved to -general. So even

Re: [PHP] Re: [PHP-DEV] How expensive are function_exists() calls?

2009-03-12 Thread Robert Cummings
On Thu, 2009-03-12 at 22:27 -0700, mike wrote: On Thu, Mar 12, 2009 at 10:10 PM, Robert Cummings rob...@interjinn.com wrote: I thought we covered a question just like this a week ago... yes this will not pose a problem for a bytecode cache. Apologies. I saw an example of some OOP thing

[PHP] Re: [PHP-DEV] How expensive are function_exists() calls?

2009-03-04 Thread Jochem Maas
..not an internals question me thinks ... redirecting to generals mailing list mike schreef: I am trying to figure out a strategy for multiple output formats on a site, and it seems like I can have functions defined by default, but have them defined -after- I've included the targetted format

[PHP] Re: [PHP-DEV] How expensive are function_exists() calls?

2009-03-04 Thread mike
On Wed, Mar 4, 2009 at 4:01 AM, Jochem Maas joc...@iamjochem.com wrote: ..not an internals question me thinks ... redirecting to generals mailing list Actually, I do think it is somewhat internals related. I want to know from the internals/experts angle if this is a good function to be relying

Re: [PHP] Re: [PHP-DEV] How expensive are function_exists() calls?

2009-03-04 Thread Robert Cummings
On Wed, 2009-03-04 at 11:45 -0800, mike wrote: On Wed, Mar 4, 2009 at 4:01 AM, Jochem Maas joc...@iamjochem.com wrote: ..not an internals question me thinks ... redirecting to generals mailing list Actually, I do think it is somewhat internals related. I want to know from the

[PHP] Re: [PHP-DEV] How expensive are function_exists() calls?

2009-03-04 Thread Jochem Maas
mike schreef: On Wed, Mar 4, 2009 at 4:01 AM, Jochem Maas joc...@iamjochem.com wrote: ..not an internals question me thinks ... redirecting to generals mailing list Actually, I do think it is somewhat internals related. internals is about engine development. always ask on the generals list