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
use PECL
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
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
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
;
> > 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
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
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
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
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