[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

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

[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

[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)

[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

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 chrisstockto...@gmail.com 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,

[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

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 col...@php.net 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

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

2011-08-11 Thread Kalle Sommer Nielsen
Hi Sebastian 2011/8/11 Sebastian Krebs sebastian.krebs.ber...@googlemail.com: 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

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

2011-08-11 Thread Sebastian Krebs
Hi, 2011/8/11 Kalle Sommer Nielsen ka...@php.net Hi Sebastian 2011/8/11 Sebastian Krebs sebastian.krebs.ber...@googlemail.com: Hi, With PHP5.4 I get this warning | Warning: declare(encoding=...) ignored because Zend multibyte feature | is turned off by settings in [..] because