Re: [PHP-CVS] cvs: php-src /ext/standard string.c

2008-11-24 Thread Arnaud Le Blanc
On Monday 24 November 2008 20:31:02 Arnaud Le Blanc wrote: > lbarnaud Mon Nov 24 19:31:02 2008 UTC > > Modified files: > /php-src/ext/standard string.c > Log: Log message should have been: Fix invalid read in strtr(). > > > http://cvs.php.net/viewvc.

Re: [PHP-CVS] cvs: php-src /ext/standard string.c /ext/standard/tests/strings bug46578.phpt

2008-11-21 Thread Felipe Pena
Em Sáb, 2008-11-22 às 00:29 +0200, Jani Taskinen escreveu: > You should always mention when closing bug reports that the bug is fixed in > only > some branch, especially this close to a release from branch that the fix was > NOT > included in. (I added the note for you, this is just a reminder

Re: [PHP-CVS] cvs: php-src /ext/standard string.c /ext/standard/tests/strings bug46578.phpt

2008-11-21 Thread Jani Taskinen
You should always mention when closing bug reports that the bug is fixed in only some branch, especially this close to a release from branch that the fix was NOT included in. (I added the note for you, this is just a reminder :) --Jani Felipe Pena kirjoitti: felipe Fri Nov 21 19:14:

Re: [PHP-CVS] cvs: php-src /ext/standard string.c

2006-12-13 Thread Derick Rethans
On Thu, 30 Nov 2006, Andrei Zmievski wrote: > andreiThu Nov 30 21:20:56 2006 UTC > > Modified files: > /php-src/ext/standard string.c > Log: > Mark strtr() as Unicode-safe. > > # Right, Derick? Yes, affirmative. Derick -- PHP CVS Mailing List

Re: [PHP-CVS] cvs: php-src /ext/standard string.c

2006-08-31 Thread Andrei Zmievski
No, check out unicode-progress.txt. -Andrei On Aug 31, 2006, at 8:56 AM, Andrei Zmievski wrote: It's cool that you fixed it, but all that is going to change when the functions are upgraded.. -Andrei On Aug 31, 2006, at 7:19 AM, Antony Dovgal wrote: tony2001Thu Aug 31 14:19

Re: [PHP-CVS] cvs: php-src /ext/standard string.c

2006-08-31 Thread Antony Dovgal
On 31.08.2006 19:56, Andrei Zmievski wrote: It's cool that you fixed it, but all that is going to change when the functions are upgraded.. I thought they are already Unicode aware, aren't they? -- Wbr, Antony Dovgal -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http:/

Re: [PHP-CVS] cvs: php-src /ext/standard string.c

2006-08-31 Thread Andrei Zmievski
It's cool that you fixed it, but all that is going to change when the functions are upgraded.. -Andrei On Aug 31, 2006, at 7:19 AM, Antony Dovgal wrote: tony2001Thu Aug 31 14:19:33 2006 UTC Modified files: /php-src/ext/standard string.c Log: more z/Z fixes --

Re: [PHP-CVS] cvs: php-src /ext/standard string.c

2005-10-22 Thread Derick Rethans
On Sat, 22 Oct 2005, Rolland Santimano wrote: > @@ -1917,7 +1917,7 @@ > > /* {{{ php_u_stristr > Unicode version of case insensitve strstr */ > -PHPAPI UChar *php_u_stristr(UChar *s, UChar *t, int32_t s_len, int32_t t_len) > +\PHPAPI UChar *php_u_stristr(UChar *s, UChar *t, int32_t s_len, i

Re: [PHP-CVS] cvs: php-src /ext/standard string.c

2005-10-22 Thread Jani Taskinen
On Sat, 22 Oct 2005, Rolland Santimano wrote: --- Jani Taskinen <[EMAIL PROTECTED]> wrote: What's a "codept" ?? --Jani Ah, that would be "codepoint" It would be nice if you didn't shorten these things. (read: FIX IT! :) --Jani -- PHP CVS Mailing List (http://www.p

Re: [PHP-CVS] cvs: php-src /ext/standard string.c

2005-10-22 Thread Rolland Santimano
--- Jani Taskinen <[EMAIL PROTECTED]> wrote: > > What's a "codept" ?? > > --Jani Ah, that would be "codepoint" > On Sat, 22 Oct 2005, Rolland Santimano wrote: > > > > > rolland Sat Oct 22 01:52:55 2005 EDT > > > > Modified files: > >/php-src/ext/standardstring.c

Re: [PHP-CVS] cvs: php-src /ext/standard string.c

2005-10-22 Thread Jani Taskinen
What's a "codept" ?? --Jani On Sat, 22 Oct 2005, Rolland Santimano wrote: rolland Sat Oct 22 01:52:55 2005 EDT Modified files: /php-src/ext/standardstring.c Log: - php_u_stristr: Code comments http://cvs.php.net/diff.php/php-src/ext/standard/string.c?r1=1.499

RE: [PHP-CVS] cvs: php-src /ext/standard string.c

2005-10-04 Thread Dmitry Stogov
Seems it is broken. Dmitry. > -Original Message- > From: Rolland Santimano [mailto:[EMAIL PROTECTED] > Sent: Monday, October 03, 2005 9:00 PM > To: php-cvs@lists.php.net > Subject: [PHP-CVS] cvs: php-src /ext/standard string.c > > > rolland Mon Oct 3 13:00:05 2005 EDT >

Re: [PHP-CVS] cvs: php-src /ext/standard string.c

2005-10-03 Thread Andrei Zmievski
This one needs to be tested really thoroughly.. -Andrei On Oct 3, 2005, at 10:00 AM, Rolland Santimano wrote: rolland Mon Oct 3 13:00:05 2005 EDT Modified files: /php-src/ext/standard string.c Log: - Unicode impl of strip_tags() -- PHP CVS Mailing List (http://www.ph

Re: [PHP-CVS] cvs: php-src /ext/standard string.c

2005-09-09 Thread Andrei Zmievski
Rolland, +PHPAPI void php_unify_string_types(zval **p, zval **q TSRMLS_DC) +{ +if (p == NULL || q == NULL) { +return; +} + +if (Z_TYPE_PP(p) == IS_UNICODE) { +if (Z_TYPE_PP(q) == IS_BINARY) { +convert_to_binary_ex(p); +} else { +convert

Re: [PHP-CVS] cvs: php-src /ext/standard string.c

2005-09-09 Thread Andrei Zmievski
On Sep 5, 2005, at 3:55 AM, Rolland Santimano wrote: +while (i < input_len) { +U16_FWD_1((UChar *)input, i, input_len); +input_codepts++; There's u_countChar32() function that counts the number of codepoints. +if (input_type == IS_UNICODE) { +resu

Re: [PHP-CVS] cvs: php-src /ext/standard string.c

2005-09-09 Thread Derick Rethans
On Thu, 8 Sep 2005, Rolland Santimano wrote: > rolland Thu Sep 8 01:05:38 2005 EDT > > Modified files: > /php-src/ext/standard string.c > Log: > - Unicode impl of substr_replace() Can you please update the "unicode-process.txt" file in the root of CVS

RE: [PHP-CVS] cvs: php-src /ext/standard string.c

2005-09-08 Thread Dmitry Stogov
Hi Roland, This patch introduced crashes in substr_replace(). Probably I fixed all of them. Please check your patches before commit. Do "make test" and "make utest" before and after patch to see that you broke nothing. Dmitry. > -Original Message- > From: Rolland Santimano [mailto:[EMAI

Re: [PHP-CVS] cvs: php-src /ext/standard string.c

2005-08-19 Thread Andrei Zmievski
Rolland, The implementation of this is problematic for two reasons: 1) You are assuming well-formed UTF-16 here. It would be better to use U16_PREV() macro to obtain a codepoint and then put it in proper place with zend_codepoint_to_uchar(). 2) Combining sequences are not respected. We can

RE: [PHP-CVS] cvs: php-src /ext/standard string.c

2005-08-18 Thread Rolland Santimano
--- Dmitry Stogov <[EMAIL PROTECTED]> wrote: > Hi Roland, > > Please be more carefull with your patches. > Compile PHP with --enable-debug and run "make test" and "make utest" > before and after patch to see that you don't break something. > > Now I fixed all (I hope) implode() bugs that you int

Re: [PHP-CVS] cvs: php-src /ext/standard string.c

2005-08-17 Thread Jani Taskinen
On Wed, 17 Aug 2005, Rolland Santimano wrote: +/* {{{ proto php_u_ucwords() + Uppercase the first character of every word in an Unicode string */ +static void php_u_ucwords(zval *ustr, zval *retval) Don't make protos for internal functions. (just remove the word 'proto' from these)

Re: [PHP-CVS] cvs: php-src /ext/standard string.c /ext/standard/tests/strings bug22224.phpt

2005-08-17 Thread Andrei Zmievski
On Aug 17, 2005, at 10:27 AM, Dmitry Stogov wrote: Zend/zend_API.c: zend_error(error_type, "Method %s%s%s() cannot be a NULL function", scope ? scope->name : EMPTY_STR, scope ? "::" : "", ptr->fname); This place doesn't need EMPTY_STR. ("" is enough) If EMPTY_STR is supposed to be used on

RE: [PHP-CVS] cvs: php-src /ext/standard string.c /ext/standard/tests/strings bug22224.phpt

2005-08-17 Thread Dmitry Stogov
Hi, > Dmitriy, > > Where did EMPTY_STR come from? It was defined by me. > It seems to be used in non-Unicode > context also: > > Zend/zend_API.c: >zend_error(error_type, "Method %s%s%s() cannot be a NULL > function", > scope ? scope->name : EMPTY_STR, scope ? "::" : "", ptr->fname); Th

Re: [PHP-CVS] cvs: php-src /ext/standard string.c /ext/standard/tests/strings bug22224.phpt

2005-08-17 Thread Andrei Zmievski
Dmitriy, Where did EMPTY_STR come from? It seems to be used in non-Unicode context also: Zend/zend_API.c: zend_error(error_type, "Method %s%s%s() cannot be a NULL function", scope ? scope->name : EMPTY_STR, scope ? "::" : "", ptr->fname); Besides, it generates a compile warning. Should we

Re: [PHP-CVS] cvs: php-src /ext/standard string.c

2005-08-17 Thread Jani Taskinen
Why not pass it as parameter to the function instead? The parameters were changed already anyway.. --Jani On Tue, 16 Aug 2005, Marcus Boerger wrote: helly Tue Aug 16 16:22:38 2005 EDT Modified files: /php-src/ext/standardstring.c Log: - TSRM Fix http://c

RE: [PHP-CVS] cvs: php-src /ext/standard string.c

2005-08-17 Thread Dmitry Stogov
Hi Roland, Please be more carefull with your patches. Compile PHP with --enable-debug and run "make test" and "make utest" before and after patch to see that you don't break something. Now I fixed all (I hope) implode() bugs that you introduced. Dmitry. > -Original Message- > From: Roll

Re: [PHP-CVS] cvs: php-src /ext/standard string.c

2005-08-16 Thread Andrei Zmievski
On Aug 16, 2005, at 5:04 AM, Rolland Santimano wrote: + if (Z_TYPE_P(delim) != IS_UNICODE && Z_TYPE_P(delim) != IS_BINARY) { + convert_to_string_ex(&delim); + } + Z_TYPE_P(retval) = return_type = Z_TYPE_P(delim); /* ... to start off */ This is not correct. If the de

Re: [PHP-CVS] cvs: php-src /ext/standard string.c

2005-03-11 Thread Marcus Boerger
Hello Andrei, for the return_value this *might* result in the same behavior. The REPLACE_ZVAL_VALUE() macro checks refount and is_ref first which is what i wanted to avoid. The changes i did ensure the both are neither read nor changed. regards marcus Friday, March 11, 2005, 9:40:16 PM, you wr

Re: [PHP-CVS] cvs: php-src /ext/standard string.c

2005-03-11 Thread Andrei Zmievski
Why not use REPLACE_ZVAL_VALUE() macro? On Thu, 10 Mar 2005, Marcus Boerger wrote: > helly Thu Mar 10 18:42:16 2005 EDT > > Modified files: > /php-src/ext/standard string.c > Log: > - Do not touch return_valu's refcount or is_ref > > http://cvs.php.net/diff

Re: [PHP-CVS] cvs: php-src /ext/standard string.c

2004-03-18 Thread Derick Rethans
On Thu, 18 Mar 2004, Dmitry Stogov wrote: > dmitryThu Mar 18 04:48:46 2004 EDT > > Modified files: > /php-src/ext/standard string.c > Log: > BUG #27457 was fixed (using temporary hash table with string keys only) Please update the bugreport and add a news entry and t

Re: [PHP-CVS] cvs: php-src /ext/standard string.c

2003-09-27 Thread Jani Taskinen
Please add a regression test for this bug. --Jani On Fri, 26 Sep 2003, Sara Golemon wrote: >pollitaFri Sep 26 13:57:13 2003 EDT > > Modified files: >/php-src/ext/standard string.c > Log: > Bug Fix#25671 Corruption in subarrays in subject w

Re: [PHP-CVS] cvs: php-src /ext/standard string.c

2003-09-26 Thread Moriyoshi Koizumi
"Sara Golemon" <[EMAIL PROTECTED]> wrote: > - result = *subject_entry; > + MAKE_STD_ZVAL(result); > + SEPARATE_ZVAL(subject_entry); > + *result = **subject_entry; > +