[PHP-DEV] Locale

2003-09-03 Thread Wojtek Meler
I wonder if it is "by design" that PHP don't read all LC_* settings from environment. In main/main.c we read LC_CTYPE only. I think at least LC_COLLATE also should be read. strcoll() behavior relay on this - strings are not properly compared. Maybe we can read all bu LC_NUMERIC settings from envi

Re: [PHP-DEV] Proposed Function: urlencode_array

2003-09-03 Thread Wez Furlong
http_build_query() sounds about right to me. --Wez. "Sara Golemon" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Since Wez has been talking about an http_request() function (which inspired > the underlying php_url_encode_hash() function), using a name like > http_query_string() (o

[PHP-DEV] Incorrect locale support for decimal_point

2003-09-03 Thread David Guerrero
Hi! I opened Bug #25246 some days ago. The bug was closed as "bogus" by Sniper. I think that this issue (locale numeric settings) is not correctly addressed in the php core. And i would like to open a discussion about it, because i think is a very important one. As stated in the bug report, th

Re: [PHP-DEV] Incorrect locale support for decimal_point

2003-09-03 Thread Jan Schneider
Zitat von David Guerrero <[EMAIL PROTECTED]>: > Hi! > > I opened Bug #25246 some days ago. The bug was closed as "bogus" by > Sniper. > > I think that this issue (locale numeric settings) is not correctly > addressed in the php core. And i would like to open a discussion about > it, because i thin

[PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] [patch] __string() method

2003-09-03 Thread Moriyoshi Koizumi
Hi, > > First why not name it toString() since for now we have consensus on sudlyCaps. > > But i didn't bother with names yet when i made this patch: > > http://marcus-boerger.de/php/ext/ze2/ze2-iterators-20030902.diff.txt > > I chose '__string' to follow the existing convention for "special" > m

[PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] [patch] __string() method

2003-09-03 Thread Marcus Börger
Hello Moriyoshi, Wednesday, September 3, 2003, 7:05:26 PM, you wrote: > Hi, >> > First why not name it toString() since for now we have consensus on sudlyCaps. >> > But i didn't bother with names yet when i made this patch: >> > http://marcus-boerger.de/php/ext/ze2/ze2-iterators-20030902.diff.tx

[PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] [patch] __string() method

2003-09-03 Thread Moriyoshi Koizumi
[EMAIL PROTECTED] (Marcus Börger) wrote: > > BTW, how about allowing zend_object_cast() to return a boolean value and > > decide whether to use the default casting behaviour or the modified > > one, Marcus? This seems to reduce such redundant effort. > > I did that in my patch so you can decide w

[PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] [patch] __string() method

2003-09-03 Thread Marcus Börger
Hello Moriyoshi, Wednesday, September 3, 2003, 8:51:45 PM, you wrote: > [EMAIL PROTECTED] (Marcus Börger) wrote: >> > BTW, how about allowing zend_object_cast() to return a boolean value and >> > decide whether to use the default casting behaviour or the modified >> > one, Marcus? This seems to

[PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] [patch] __string() method

2003-09-03 Thread Moriyoshi Koizumi
[EMAIL PROTECTED] (Marcus Börger) wrote: > Here's a strip down version which uses the function name "toString". > http://marcus-boerger.de/php/ext/ze2/ze2-tostring-20030902.diff.txt > > As you can see it would now require every object implementing that function. > However the idea behind is that