Re: [PHP-DEV] Multibyte and declate (PHP5.4)

2011-08-11 Thread Sebastian Krebs
Hi, 2011/8/11 Kalle Sommer Nielsen > Hi Sebastian > > 2011/8/11 Sebastian Krebs : > > Hi, > > > > With PHP5.4 I get this warning > > > > | Warning: declare(encoding=...) ignored because Zend multibyte feature > > | is turned off by settings in [..] > > > > because of > > > > | declare(encoding =

Re: [PHP-DEV] Multibyte and declate (PHP5.4)

2011-08-11 Thread Kalle Sommer Nielsen
Hi Sebastian 2011/8/11 Sebastian Krebs : > Hi, > > With PHP5.4 I get this warning > > | Warning: declare(encoding=...) ignored because Zend multibyte feature > | is turned off by settings in [..] > > because of > > | declare(encoding = 'UTF-8'); > > An except from the manual [1] > In PHP 5.4, the

Re: [PHP-DEV] The behavior of get_object_vars and array casting when extending ArrayObject

2011-08-11 Thread Chris Stockton
Hello, On Thu, Aug 11, 2011 at 11:58 AM, Etienne Kneuss wrote: > Hello, > > > ArrayObject extends the handler responsible for giving you such > information. So it might very well be a bug. > > You should report it! > > Best, Thanks Etienne, I went ahead and made a bug report and patch here: http

[PHP-DEV] Multibyte and declate (PHP5.4)

2011-08-11 Thread Sebastian Krebs
Hi, With PHP5.4 I get this warning | Warning: declare(encoding=...) ignored because Zend multibyte feature | is turned off by settings in [..] because of | declare(encoding = 'UTF-8'); An except from the manual [1] The encoding declare value is ignored in PHP 5.3 unless php is compiled with

Re: [PHP-DEV] The behavior of get_object_vars and array casting when extending ArrayObject

2011-08-11 Thread Etienne Kneuss
Hello, On Thu, Aug 11, 2011 at 20:54, Chris Stockton wrote: > I was curious if this behavior was expected, it caught me by surprise. > A base object I use extends ArrayObject, that class is extended > heavily throughout my code and I recently wanted to use > get_object_vars, but noticed it return

[PHP-DEV] The behavior of get_object_vars and array casting when extending ArrayObject

2011-08-11 Thread Chris Stockton
I was curious if this behavior was expected, it caught me by surprise. A base object I use extends ArrayObject, that class is extended heavily throughout my code and I recently wanted to use get_object_vars, but noticed it returning an empty array. I do not expect get_object_vars to return the prop

[PHP-DEV] PHP 5.3.7RC5 Released for Testing

2011-08-11 Thread Ilia Alshanetsky
The fifth and final release candidate of 5.3.7 was just released for testing and can be downloaded here: https://downloads.php.net/ilia/php-5.3.7RC5.tar.bz2 (md5sum: 2604b92812e213287fa0fbc5d61223db) https://downloads.php.net/ilia/php-5.3.7RC5.tar.gz (md5sum: 2d3315be5ef7ab90ca359978f36c2001) The

[PHP-DEV] What happened to error details in stat

2011-08-11 Thread Jan Dolecek
I remember that if error happened in stat- related functions, error message contained also system errno and message, like in following line: Warning: fileatime(): Stat failed for /tmp\lost+found (errno=2 - No such file or directory) in /home/rfresh/public_html/whosonline_form.php on line 93 But no

Re: [PHP-DEV] [RFC] Line markers in PHP

2011-08-11 Thread Stas Malyshev
Hi! On 8/10/11 9:29 PM, Gwynne Raskind wrote: I've just created a new RFC, https://wiki.php.net/rfc/linecontrol , regarding adding cpp(1)'s linemarkers to PHP. Discussion is invited. -- Gwynne Frankly, this seems to be pretty narrow use case for language syntax change. Though you could in t

[PHP-DEV] Proposition of a network function to sort DNS SRV records

2011-08-11 Thread Jehan Pagès
Hello, currently the built-in dns_get_record function has support for type SRV, which is very nice. Yet this supports only part of the DNS SRV RFC (RFC-2782). In particular, it will return records but won't sort them using the weight/priority algorithm. I won't detail the algorithm, but basically