Re: [PHP-DEV] destruction of cross-referenced objects

2006-12-06 Thread Richard Quadling
In user land, I have an abstract_object like this (http://rquadling.php1h.com/abstract_object.html). I've come from a Delphi environment so some of the code you see is based upon some of the ideas I see in the TObject class. There are some comments, but the basic idea is there. On 05/12/06,

Re: [PHP-DEV] zend_u_strtod() 400% speed up

2006-12-06 Thread Antony Dovgal
On 11/25/2006 02:05 PM, Matt Wilmas wrote: Hi Antony, Just to let you know, I made a couple minor layout changes to the code, and also switched to the *_alloca() functions if memory needs allocating, which I understand should be faster on systems that support it. (Patch file (v2) is updated of

RE: [PHP-DEV] Function call speedup (CV applied to functions)

2006-12-06 Thread Dmitry Stogov
Hi Sara, Interesting patch. We had very similar idea in the past. BTW it is possible to optimize function calls mach more. Not only ZEND_DO_FCALL but also ZEND_INIT_FCALL_BY_NAME can be optimized, and we can reuse the same cache entries for all op_arrays from the same PHP file. I'll make a

Re: [PHP-DEV] destruction of cross-referenced objects

2006-12-06 Thread Arnold Daniels
Hi, I think having to extend a base class is not a good idea. First of all you deprive yourself of extending a class of a library you haven't written (like something from Zend Framework or PEAR). Second it puts a huge constraint on the code of the users of your library, because any class

[PHP-DEV] Re: [PHP-CVS] cvs: php-src /ext/standard formatted_print.c /ext/standard/tests/serialize 003.phpt /ext/standard/tests/strings sprintf_f.phpt /main snprintf.c snprintf.h spprintf.c ZendEn

2006-12-06 Thread Matt Wilmas
Hi Antony, The changes to formatted_print.c caught my eye because I was going to inquire about/resubmit a patch from August to add new features the the *printf() functions... :-) I see you've added g/G (and E). In appenddouble, however, I noticed that the F specifier is missing. Nothing to me

Re: [PHP-DEV] zend_u_strtod() 400% speed up

2006-12-06 Thread Matt Wilmas
Hi Antony, - Original Message - From: Antony Dovgal Sent: Wednesday, December 06, 2006 On 11/25/2006 02:05 PM, Matt Wilmas wrote: Hi Antony, Just to let you know, I made a couple minor layout changes to the code, and also switched to the *_alloca() functions if memory needs

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php-src /ext/standard formatted_print.c /ext/standard/tests/serialize 003.phpt /ext/standard/tests/strings sprintf_f.phpt /main snprintf.c snprintf.h spprintf.c Ze

2006-12-06 Thread Antony Dovgal
On 12/06/2006 05:18 PM, Matt Wilmas wrote: Hi Antony, The changes to formatted_print.c caught my eye because I was going to inquire about/resubmit a patch from August to add new features the the *printf() functions... :-) I see you've added g/G (and E). In appenddouble, however, I noticed

[PHP-DEV] Interesting dependecies

2006-12-06 Thread Andrey Hristov
Hi, for the sake of saving time during development, especially in the linking phase I decided to disable few extensions. In HEAD --disable-all is kind of borked, PHP won't compile afterwards, missing ICU enabled probably. Complains about unicode stuff. So, no more --disable-all. Let's remove

Re: [PHP-DEV] Interesting dependecies

2006-12-06 Thread Ilia Alshanetsky
There really should be no reason for count() to require SPL, it should definitely be possible to compile php with --disable-all and no other flags, with perhaps an exception for ICU for obvious reasons. On 6-Dec-06, at 11:00 AM, Andrey Hristov wrote: Hi, for the sake of saving time

Re: [PHP-DEV] Interesting dependecies

2006-12-06 Thread Andrey Hristov
Hi Ilia, Ilia Alshanetsky wrote: There really should be no reason for count() to require SPL, it should definitely be possible to compile php with --disable-all and no other flags, with perhaps an exception for ICU for obvious reasons. ext/standard/array.o(.text+0x6c2): In function

Re: [PHP-DEV] Interesting dependecies

2006-12-06 Thread Hannes Magnusson
On 12/6/06, Andrey Hristov [EMAIL PROTECTED] wrote: Hi Ilia, Ilia Alshanetsky wrote: There really should be no reason for count() to require SPL, it should definitely be possible to compile php with --disable-all and no other flags, with perhaps an exception for ICU for obvious reasons.

Re: [PHP-DEV] Interesting dependecies

2006-12-06 Thread Antony Dovgal
On 12/06/2006 07:15 PM, Andrey Hristov wrote: Hi Ilia, Ilia Alshanetsky wrote: There really should be no reason for count() to require SPL, it should definitely be possible to compile php with --disable-all and no other flags, with perhaps an exception for ICU for obvious reasons.

Re: [PHP-DEV] Function call speedup (CV applied to functions)

2006-12-06 Thread Sara Golemon
We had very similar idea in the past. BTW it is possible to optimize function calls mach more. Not only ZEND_DO_FCALL but also ZEND_INIT_FCALL_BY_NAME can be optimized, and we can reuse the same cache entries for all op_arrays from the same PHP file. Sure, I went shallow with this first version

Re: [PHP-DEV] PHP 5.2: Serialization patch

2006-12-06 Thread Andrei Zmievski
I don't see a way we can make it work for all the cases. I guess we'll have to leave this task to PHP_Compat. -Andrei On Dec 1, 2006, at 3:03 PM, Ilia Alshanetsky wrote: As it stands the current code breaks BC on decoding when the serialized string contains \ characters. For example:

[PHP-DEV] INI Includes

2006-12-06 Thread Brian Shire
I just read the thread regarding support for INI Includes at: http:// marc2.theaimsgroup.com/?t=10329000458r=1w=2 I had made another patch for this before I saw the post (A little bit of a different method though, via the php callback). Having this support helps us simplify larger