[PHP-DEV] How to detect GD in source code.

2005-01-27 Thread D . Walsh
I've been writing a module, it is dependent on some GD functions, how can I detect that GD has been installed PHP native? I'm not talking about php code to see if the functions are available. Is there a macro or something that will detect if GD is installed native? If not,do you have code that

Re: [PHP-DEV] get_property_ptr_ptr handler

2005-01-27 Thread Andrei Zmievski
On Thu, 27 Jan 2005, Andi Gutmans wrote: > I'm not sure what you mean by passing by reference. If you want to do real > by reference work then you have to use object proxies and ->set() ->get() > callbacks. In general, the semantics of by reference is mainly designed for > regular PHP objects an

Re: [PHP-DEV] get_property_ptr_ptr handler

2005-01-27 Thread Andi Gutmans
At 03:53 PM 1/27/2005 -0800, Andrei Zmievski wrote: On Thu, 27 Jan 2005, Andi Gutmans wrote: > In general it's not useful. It exists so that regular PHP objects can be > optimized to use zval ** and not read/write property callbacks. This is > faster for example if you're doing increment. However,

Re: [PHP-DEV] get_property_ptr_ptr handler

2005-01-27 Thread Andrei Zmievski
On Thu, 27 Jan 2005, Andi Gutmans wrote: > In general it's not useful. It exists so that regular PHP objects can be > optimized to use zval ** and not read/write property callbacks. This is > faster for example if you're doing increment. However, in most cases of > writing extensions I suggest r

Re: [PHP-DEV] get_property_ptr_ptr handler

2005-01-27 Thread Andi Gutmans
In general it's not useful. It exists so that regular PHP objects can be optimized to use zval ** and not read/write property callbacks. This is faster for example if you're doing increment. However, in most cases of writing extensions I suggest read/write property unless you are just wrapping

[PHP-DEV] get_property_ptr_ptr handler

2005-01-27 Thread Andrei Zmievski
Could someone knowledgeable please remind me again: in what exact circumstances is overriding get_property_ptr_ptr useful vs. leaving it NULL? - Andrei -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] new sapi module for inclusion

2005-01-27 Thread Dan Cahill
Hi. I recently wrote this SAPI module to add PHP support to NullLogic Groupware, and I'm hoping to get it added to the main PHP code tree. The attached patch works with 4.3.10 and 5.0.3. Cheers, Dan Cahill -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://w