[PHP-DEV] PHP6 - x64 SegFault

2007-01-25 Thread Chris Malton
Hi, I'm new to the newsgroup and I'm trying to debug PHP 6 on a test server (x64 architecture). However, for some unknown reason, it segfaults if I try to run it with any files that work in PHP 5.2.0. The segfault is at the end of most scripts, at the beginning of others. The backtrace l

[PHP-DEV] PHP 5.2.1RC4 Released

2007-01-25 Thread Ilia Alshanetsky
The final release candidate for PHP 5.2.1, RC4 is now available for download. Pending any problems this will be released as 5.2.1 next week, so this is the last chance to identify any critical issues before it is too late. If you have not tried any previous RCs, please do so now. The tar ba

Re: [PHP-DEV] Re: PHP 5.2.1RC3 Released

2007-01-25 Thread Nuno Lopes
I've been thinking about how to not force UTF-8 in PCRE for PHP 6, and it's not that simple. This is mainly due to preg_replace(), because it allows array() parameters that can contain mixed IS_UNICODE and IS_STRING values. I hope you realize though, that in UTF-8 mode PCRE does not care about

Re: [PHP-DEV] Re: PHP 5.2.1RC3 Released

2007-01-25 Thread Andrei Zmievski
Please do not confuse an encoding (UTF-8) with full locale information (which is what CLDR provides). -Andrei On Jan 25, 2007, at 10:20 AM, Pierre wrote: On 1/25/07, Andrei Zmievski <[EMAIL PROTECTED]> wrote: Because with UTF-8, PCRE already knows the uppercase and lowercase equivalents, wit

Re: [PHP-DEV] Re: PHP 5.2.1RC3 Released

2007-01-25 Thread Pierre
On 1/25/07, Andrei Zmievski <[EMAIL PROTECTED]> wrote: Because with UTF-8, PCRE already knows the uppercase and lowercase equivalents, without having to rely on the POSIX locales. Yes, UTF-8 covers many aspects but does it know about words, white spaces (not sure if ws are always the same) and

Re: [PHP-DEV] Re: PHP 5.2.1RC3 Released

2007-01-25 Thread Andrei Zmievski
I've been thinking about how to not force UTF-8 in PCRE for PHP 6, and it's not that simple. This is mainly due to preg_replace(), because it allows array() parameters that can contain mixed IS_UNICODE and IS_STRING values. I hope you realize though, that in UTF-8 mode PCRE does not care about

Re: [PHP-DEV] COM extension defects: Possible patch for defect 35464

2007-01-25 Thread Frank M. Kromann
Hi Andy, I think this code and your explanations look good. I'll give the patch a run tonight when I get home but I do not see any problems with it. - Frank > Hi Internals > Attached is a suggested patch for COM defect 35464 > (http://bugs.php.net/bug.php?id=34564) Any comments; good or

Re: [PHP-DEV] Re: PHP 5.2.1RC3 Released

2007-01-25 Thread Nuno Lopes
But how do I match only portuguese letters? you'll (always) need posix locales.. I don't think forcing preg_* function to utf-8 is a good idea, but anyway I haven't looked enough to PHP 6 (yet) to produce a strong opinion. Nuno Because with UTF-8, PCRE already knows the uppercase and lowercase

Re: [PHP-DEV] Re: PHP 5.2.1RC3 Released

2007-01-25 Thread Andrei Zmievski
Because with UTF-8, PCRE already knows the uppercase and lowercase equivalents, without having to rely on the POSIX locales. -Andrei On Jan 25, 2007, at 7:24 AM, Pierre wrote: On 1/25/07, Ilia Alshanetsky <[EMAIL PROTECTED]> wrote: PCRE should operate in UTF-8 mode. How does UTF-8 help to

[PHP-DEV] COM extension defects: Possible patch for defect 35464

2007-01-25 Thread Andy Wharmby
Hi Internals Attached is a suggested patch for COM defect 35464 (http://bugs.php.net/bug.php?id=34564) Any comments; good or bad welcome. Regards Andy Andy Wharmby IBM United Kingdom Limited Winchester, England SO21 2JN E-mail: [EMAIL PROTECTED] COM defect 35464 The

Re: [PHP-DEV] Re: PHP 5.2.1RC3 Released

2007-01-25 Thread Pierre
On 1/25/07, Ilia Alshanetsky <[EMAIL PROTECTED]> wrote: PCRE should operate in UTF-8 mode. How does UTF-8 help to make it locale compliant? --Pierre -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Re: PHP 5.2.1RC3 Released

2007-01-25 Thread Ilia Alshanetsky
PCRE should operate in UTF-8 mode. On 25-Jan-07, at 10:15 AM, Nuno Lopes wrote: So are you saying that php will automatically issue setlocale() calls? e.g.: i18n_loc_set_default('pt_PT'); // or whatever that is called these days //now it magically calls setlocale('pt_PT', 'pt_PT.iso8859-1',

Re: [PHP-DEV] Re: PHP 5.2.1RC3 Released

2007-01-25 Thread Nuno Lopes
So are you saying that php will automatically issue setlocale() calls? e.g.: //now it magically calls setlocale('pt_PT', 'pt_PT.iso8859-1', 'portuguese'); -- linux/bsd/windows echo preg_match('/^\w+$/', "àáãçêõ"); //prints 1? ?> Nuno, The idea is that while internal libs will use it, PHP wi

Re: [PHP-DEV] Re: PHP 5.2.1RC3 Released

2007-01-25 Thread Ilia Alshanetsky
Nuno, The idea is that while internal libs will use it, PHP will do all the user-locale handling internally. On 25-Jan-07, at 9:52 AM, Nuno Lopes wrote: PHP needs locale insensitive strcasecmp() or your developers will continue hitting string comparison issues in Turkish and Azerbaijani.

Re: [PHP-DEV] Re: PHP 5.2.1RC3 Released

2007-01-25 Thread Nuno Lopes
PHP needs locale insensitive strcasecmp() or your developers will continue hitting string comparison issues in Turkish and Azerbaijani. Ilia patched it in timezone parsing code. Some day other strcasecmp will pop in other place. Switching locale everytime you want to compare strings is a hack

Re: [PHP-DEV] Re: PHP 5.2.1RC3 Released

2007-01-25 Thread Ilia Alshanetsky
On 25-Jan-07, at 9:04 AM, Tomas Kuliavas wrote: PHP needs locale insensitive strcasecmp() or your developers will continue hitting string comparison issues in Turkish and Azerbaijani. Ilia patched it in timezone parsing code. Some day other strcasecmp will pop in other place. Switching l

Re: [PHP-DEV] Re: PHP 5.2.1RC3 Released

2007-01-25 Thread Derick Rethans
On Thu, 25 Jan 2007, Tomas Kuliavas wrote: > Is it that difficult to replace strcasecmp with locale > independent case insensitive comparison function? > >>> > >>> We're open for patches. Feel free to send one. > >> > >> I am PHP developer and don't code in C. In PHP script locale > >>

Re: [PHP-DEV] Re: PHP 5.2.1RC3 Released

2007-01-25 Thread Antony Dovgal
On 01/25/2007 05:04 PM, Tomas Kuliavas wrote: Is it that difficult to replace strcasecmp with locale independent case insensitive comparison function? We're open for patches. Feel free to send one. I am PHP developer and don't code in C. In PHP script locale insensitive strtolower/strtoupper

Re: [PHP-DEV] Re: PHP 5.2.1RC3 Released

2007-01-25 Thread Tomas Kuliavas
Is it that difficult to replace strcasecmp with locale independent case insensitive comparison function? >>> >>> We're open for patches. Feel free to send one. >> >> I am PHP developer and don't code in C. In PHP script locale insensitive >> strtolower/strtoupper can be done with one preg

Re: [PHP-DEV] Re: PHP 5.2.1RC3 Released

2007-01-25 Thread Antony Dovgal
On 01/25/2007 04:02 PM, Tomas Kuliavas wrote: Test script: --- Ok, this is now fixed. Is it that difficult to replace strcasecmp with locale independent case insensitive comparison function? We're open for patches. Feel free to send one. I am PHP developer and don't code in C. In PHP scri

Re: [PHP-DEV] Re: PHP 5.2.1RC3 Released

2007-01-25 Thread Tomas Kuliavas
>>> The 2nd release candidate for PHP 5.2.1 is now available for download. >>> The tarballs can be found here: >>> >>> http://downloads.php.net/ilia/php-5.2.1RC3.tar.bz2 >>> (d3889eda8c3471ce7cf2adb35a4de736) >>> http://downloads.php.net/ilia/php-5.2.1RC3.tar.gz >>> (c5b3e5540d1951d4c4b976b8a39c09a

Re: [PHP-DEV] Re: PHP 5.2.1RC3 Released

2007-01-25 Thread Antony Dovgal
On 01/25/2007 02:36 PM, Tomas Kuliavas wrote: The 2nd release candidate for PHP 5.2.1 is now available for download. The tarballs can be found here: http://downloads.php.net/ilia/php-5.2.1RC3.tar.bz2 (d3889eda8c3471ce7cf2adb35a4de736) http://downloads.php.net/ilia/php-5.2.1RC3.tar.gz (c5b3e5540d

[PHP-DEV] Re: PHP 5.2.1RC3 Released

2007-01-25 Thread Tomas Kuliavas
> The 2nd release candidate for PHP 5.2.1 is now available for download. > The tarballs can be found here: > > http://downloads.php.net/ilia/php-5.2.1RC3.tar.bz2 > (d3889eda8c3471ce7cf2adb35a4de736) > http://downloads.php.net/ilia/php-5.2.1RC3.tar.gz > (c5b3e5540d1951d4c4b976b8a39c09ab) > > and t