Re: [PHP-DEV] Feedback requested on using #defines to improve the performance of the TSRMG macro

2009-11-05 Thread Arvind Srinivasan
Does the GLOBALS_ID_BASE idea work?  In ts_allocate_reserved_id(GLOBALS_ID_BASE+1...) each extension would anyway need to reserve an increment to avoid clashes.  Also, why is I didn't really try using this. When I added it, I thought it might be useful for modules that live outside the PHP

Re: [PHP-DEV] Feedback requested on using #defines to improve the performance of the TSRMG macro

2009-11-05 Thread mm w
so should be a UUID rather than a user defined int you cannot avoid collision with your system, it's a dangerous way to go. Best, On Thu, Nov 5, 2009 at 11:20 AM, Arvind Srinivasan yoa...@gmail.com wrote: Does the GLOBALS_ID_BASE idea work?  In ts_allocate_reserved_id(GLOBALS_ID_BASE+1...)

Re: [PHP-DEV] Feedback requested on using #defines to improve the performance of the TSRMG macro

2009-11-05 Thread Christopher Jones
Hi Arvind, Does the GLOBALS_ID_BASE idea work? In ts_allocate_reserved_id(GLOBALS_ID_BASE+1...) each extension would anyway need to reserve an increment to avoid clashes. Also, why is GLOBALS_ID_BASE 30 when the largest reserved value is 18? Maybe I'm missing something. Would there be

[PHP-DEV] [patch] add COPY functions to pdo_pgsql

2009-11-05 Thread Tim Ringenbach
Here's a patch to add pgsqlGetCopyData, pgsqlPutCopyData, and pgsqlEndCopyData methods. I opened bug #50092 but I don't seem able to attach the patch, so I attached it here. --Tim Index: ext/pdo_pgsql/pgsql_driver.c === ---

Re: [PHP-DEV] Feedback requested on using #defines to improve the performance of the TSRMG macro

2009-11-05 Thread Christopher Jones
Arvind Srinivasan wrote: Does the GLOBALS_ID_BASE idea work? In ts_allocate_reserved_id(GLOBALS_ID_BASE+1...) each extension would anyway need to reserve an increment to avoid clashes. Also, why is I didn't really try using this. When I added it, I thought it might be useful for modules

Re: [PHP-DEV] [patch] add COPY functions to pdo_pgsql

2009-11-05 Thread Christopher Jones
Tim Ringenbach wrote: Here's a patch to add pgsqlGetCopyData, pgsqlPutCopyData, and pgsqlEndCopyData methods. I opened bug #50092 but I don't seem able to attach the patch, so I attached it here. --Tim What do these do? I.e. where's the documentation or RFC http://wiki.php.net/rfc ?

Re: [PHP-DEV] [patch] add COPY functions to pdo_pgsql

2009-11-05 Thread Tim Ringenbach
On 11/05/2009 02:15 PM, Christopher Jones wrote: What do these do? I.e. where's the documentation or RFC http://wiki.php.net/rfc ? :) So the patch can be found easily, can you update the bug with a link to it? I updated the bug with a link to the list archives. I'm not familiar with

Re: [PHP-DEV] [patch] add COPY functions to pdo_pgsql

2009-11-05 Thread Pierre Joye
hi, On Thu, Nov 5, 2009 at 7:37 PM, Tim Ringenbach t...@asteriasgi.com wrote: Here's a patch to add pgsqlGetCopyData, pgsqlPutCopyData, and pgsqlEndCopyData methods. I opened bug #50092 but I don't seem able to attach the patch, so I attached it here. Please see the current discussion on the

Re: [PHP-DEV] Feedback requested on using #defines to improve the performance of the TSRMG macro

2009-11-05 Thread Stanislav Malyshev
Hi! When compiled for multi-threaded (#ifdef ZTS ) operation, the various subsystems in PHP use dynamically allocated (ts_allocate_id) identifiers to index into the thread-local storage for each subsystem. These dynamically allocated ids are used by macros such as CG, EG, PG, AG. I think it

[PHP-DEV] RAR extension: streaming and unicode filenames support

2009-11-05 Thread spam
Hi I've added support for streaming RAR files and retrieving filenames in unicode/utf8. Please see http://pecl.php.net/bugs/bug.php?id=16921 -- Gustavo Lopes -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] RAR extension: streaming and unicode filenames support

2009-11-05 Thread Pierre Joye
hi, Please post PECL related patch, comments, etc. to the pecl-dev mailing list. And the maintainers will get a mail for your bug report, no worry :) Cheers, On Fri, Nov 6, 2009 at 12:53 AM, s...@geleia.net wrote: Hi I've added support for streaming RAR files and retrieving filenames in

[PHP-DEV] typo found in ext/standard/string.c, inside function nl2br, php 5.3.0 svn trunk

2009-11-05 Thread daqing
hi, all: I just found a typo today when I read the source code of function nl2br, here is what 'svn diff' produce against the php 5.3.0 svn trunk: Index: ext/standard/string.c === --- ext/standard/string.c (revision 290364)

Re: [PHP-DEV] Feedback requested on using #defines to improve the performance of the TSRMG macro

2009-11-05 Thread Basant Kukreja
+1 Regards, Basant. On Thu, Nov 05, 2009 at 05:22:34PM +0530, Arvind Srinivasan wrote: When compiled for multi-threaded (#ifdef ZTS ) operation, the various subsystems in PHP use dynamically allocated (ts_allocate_id) identifiers to index into the thread-local storage for each subsystem.