[PHP-DEV] Converting {add,strip}cslashes to Unicode

2005-10-25 Thread Rolland Santimano
Resending, any update on the foll ? TIA, Rolland > Date: Sat, 1 Oct 2005 05:00:28 -0700 (PDT) > From: Rolland Santimano <[EMAIL PROTECTED]> > > > [3] string addcslashes(string text, string charlist) > > [4] string stripcslashes(string text) > > Escape chars < 32 or > 126 with octal sequences, an

Re: [PHP-DEV] foreach with null

2005-10-25 Thread Marcus Boerger
Hello Christian, Tuesday, October 25, 2005, 7:28:09 PM, you wrote: > Ants Aasma wrote: >> +-0 on the foreach issue, but with the SPL Iterators I can see where >> Marcus is coming from. > Ok, I can see the reason behind it now as casting to array is not an > option for objects with SPL Iterator

Re: [PHP-DEV] foreach with null

2005-10-25 Thread Christian Schneider
Ants Aasma wrote: +-0 on the foreach issue, but with the SPL Iterators I can see where Marcus is coming from. Ok, I can see the reason behind it now as casting to array is not an option for objects with SPL Iterators. One little side-note: Programmers will still have to do an if($obj) check i

Re: [PHP-DEV] foreach with null

2005-10-25 Thread Ants Aasma
Antony Dovgal wrote: On 25.10.2005 19:39, Ants Aasma wrote: It currently is equal: $ php -r 'var_dump(null == array()); var_dump((array) null);' bool(true) array(0) { } No, there aren't equal. Use === and you'll see the difference. At least the manual says that the == operator is named equa

Re: [PHP-DEV] foreach with null

2005-10-25 Thread John Coggeshall
; > > Warning: Invalid argument supplied for foreach() in Command line code on > > line 1 > > > > The way we use NULL in PHP should result in no warning here. The patch for > > this can be found here: > > http://php.net/~helly/php/ext/ze2/ze2-foreach-null-2

Re: [PHP-DEV] foreach with null

2005-10-25 Thread Antony Dovgal
On 25.10.2005 19:39, Ants Aasma wrote: It currently is equal: $ php -r 'var_dump(null == array()); var_dump((array) null);' bool(true) array(0) { } No, there aren't equal. Use === and you'll see the difference. -- Wbr, Antony Dovgal -- PHP Internals - PHP Runtime Development Mailing List To

Re: [PHP-DEV] foreach with null

2005-10-25 Thread Ants Aasma
1 The way we use NULL in PHP should result in no warning here. The patch for this can be found here: http://php.net/~helly/php/ext/ze2/ze2-foreach-null-20051025.diff.txt It was made with head but applies to 5.1 as well. Any opinions? Best regards, Marcus -- PHP Internals - PHP Runtime De

[PHP-DEV] CVS Account Request: abod

2005-10-25 Thread abod a
use PECL -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] PortaWiki - exchanging knowledge on portability issues

2005-10-25 Thread Arjen Lentz
Hi all, Derick suggested I post a note here... PortaWiki (http://www.flamingspork.com/portawiki/) is for collecting, sharing and collaboration on portability issues that arise during software development and porting. There are entry points per topic and per platform. The idea for this came up at