Re: [PHP-DEV] Return value of convert_to_*()

2007-01-03 Thread Andrei Zmievski
On Jan 3, 2007, at 12:00 PM, Marcus Boerger wrote: Hello Andrei, we had a long decision about this issue already and decided that the only reason for "Object..." in 5.0 and 5.1 was the lack of ability to fix __toString() prior to 5.2. The current 5.2/6.0 behavior is what we wanted in the fir

Re: [PHP-DEV] Return value of convert_to_*()

2007-01-03 Thread Antony Dovgal
On 01/03/2007 10:17 PM, Andrei Zmievski wrote: So you're okay with substr($obj, 0, 3) giving you "Obj" ?? To me, that seems broken, regardless of whether we had it "working" in the past. I can name you quite a number of things which seem broken to me (or aesthetically wrong), but I don't thi

Re: [PHP-DEV] Re: cvs: php-src /sapi/apache2filter php_functions.c /sapi/apache2handler php_functions.c

2007-01-03 Thread Antony Dovgal
On 01/03/2007 10:23 PM, Sebastian Bergmann wrote: Antony Dovgal wrote: tony2001Wed Jan 3 18:52:23 2007 UTC Modified files: /php-src/sapi/apache2filter php_functions.c /php-src/sapi/apache2handler php_functions.c Log: fix magic numbers Sorry! :-

Re: [PHP-DEV] Return value of convert_to_*()

2007-01-03 Thread Marcus Boerger
Hello Andrei, we had a long decision about this issue already and decided that the only reason for "Object..." in 5.0 and 5.1 was the lack of ability to fix __toString() prior to 5.2. The current 5.2/6.0 behavior is what we wanted in the first place and hence correct, or do we need to restart th

[PHP-DEV] Re: cvs: php-src /sapi/apache2filter php_functions.c /sapi/apache2handler php_functions.c

2007-01-03 Thread Sebastian Bergmann
Antony Dovgal wrote: > tony2001 Wed Jan 3 18:52:23 2007 UTC > > Modified files: > /php-src/sapi/apache2filter php_functions.c > /php-src/sapi/apache2handler php_functions.c > Log: > fix magic numbers Sorry! :-( -- Sebastian Bergmann

Re: [PHP-DEV] Return value of convert_to_*()

2007-01-03 Thread Andrei Zmievski
So you're okay with substr($obj, 0, 3) giving you "Obj" ?? To me, that seems broken, regardless of whether we had it "working" in the past. -Andrei On Jan 3, 2007, at 10:58 AM, Antony Dovgal wrote: On 01/03/2007 09:51 PM, Andrei Zmievski wrote: Only in cases where people blindly pass object

Re: [PHP-DEV] Return value of convert_to_*()

2007-01-03 Thread Antony Dovgal
On 01/03/2007 09:51 PM, Andrei Zmievski wrote: Only in cases where people blindly pass objects where strings are expected. It won't break anything for those objects that know how to convert themselves. It still see no reasons for this particular change in behavior. It was allowed in the past a

Re: [PHP-DEV] The new printf implementation

2007-01-03 Thread Andrei Zmievski
Matt, any replies to this? -A On Dec 22, 2006, at 9:53 AM, Andrei Zmievski wrote: Especially since POSIX locales are deprecated in Unicode mode. I really don't think printf() should use locale-aware formatting by default. -Andrei On Dec 22, 2006, at 5:42 AM, Matt Wilmas wrote: Hi all, A

Re: [PHP-DEV] Return value of convert_to_*()

2007-01-03 Thread Andrei Zmievski
Only in cases where people blindly pass objects where strings are expected. It won't break anything for those objects that know how to convert themselves. -Andrei On Dec 27, 2006, at 1:23 PM, Antony Dovgal wrote: On 12/28/2006 12:12 AM, Andrei Zmievski wrote: It's perfectly legal to do it in

Re: [PHP-DEV] Semaphores - feature request

2007-01-03 Thread Wojciech Malota
> You must use some additional application specific logic to trigger > semaphore removal. For example you could have a "boss" process that > collects the exit status of each "worker". When the boss process has an > exit status for all workers the semaphore can be removed. > > Am I getting closer or