Andi, any interest in this?
Aidan Lister [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi Andi,
Okay, it's not as simple as I thought it was - and you're correct, the
behaviour has not changed for php4/5.
Objects in both PHP4 and PHP5 will throw an error if you use the method
I'm going to go ahead and post this as a bug, unless there is a reason noone
replied...
Aidan Lister [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hello devs,
I'd like to discuss the use of objects as array keys.
?php
class idobject {
private $_id;
function __construct
This code doesn't seem to have changed. Can you send me a 3-4 liner which
errors out in PHP 4 and not in PHP 4?
Thanks,
Andi
At 11:03 PM 5/25/2004 +1000, Aidan Lister wrote:
I'm going to go ahead and post this as a bug, unless there is a reason noone
replied...
Aidan Lister [EMAIL PROTECTED]
Hi Andi,
Okay, it's not as simple as I thought it was - and you're correct, the
behaviour has not changed for php4/5.
Objects in both PHP4 and PHP5 will throw an error if you use the method
$blah[$someobject] = 'val'; (first method)
Warning: Illegal offset type
However, both do not throw an