|
Posted by Flibble on 10/29/91 11:25
"Janwillem Borleffs" <jw@jwscripts.com> wrote in news:4307b00b$0$6827
$dbd4d001@news.euronet.nl:
> Flibble wrote:
>> If you look at the property $updatedFields it should end up populated
>> with two elements, "Name" & "Age". However they are populated with
>> zero values.
>> The curious thing is that inside the __set function the property has
>> the correct values in it, as soon as it moves outside the method they
>> are zero.....Can't see why it is doing this (might be code blind by
>> now though :( )
>>
>
> On my machine, a print_r on $updateFields produces:
>
> Array
> (
> [0] => Name
> [1] => Age
> )
>
> and a print_r on $itemArray produces:
>
> Array
> (
> [Name] => Me
> [Age] => 30
> )
>
> So your class appears to work as it should.
>
>
> JW
>
>
>
>
Also found this, sounds like it could possibly be related...alas its a
closed bug :(
http://bugs.php.net/bug.php?id=22237
Navigation:
[Reply to this message]
|