ID:               36571
 User updated by:  cid73 at 163 dot com
 Reported By:      cid73 at 163 dot com
-Status:           Closed
+Status:           Open
 Bug Type:         Scripting Engine problem
 Operating System: *
 PHP Version:      5.1.3RC3
 Assigned To:      dmitry
 New Comment:

Excuse me, my purpose was obvioursly to create a setter class, and then
after I do:

------------
$o = new Setter($a);
$o->a[0] = 'A';
$o->a[]  = 'd';
$o->b{0} = 'h';
print_r($o); // note: it's $o, not $a
---------------

I think the result should now be:

Setter Object
(
    [attributes:private] => Array
        (
            [a] => Array
                (
                    [0] => A
                    [1] => b
                    [2] => c
                    [3] => d
                )

            [b] => hello
        )

)

The old problem was "$a was modified", this problem has been fixed; but
the problem now goes to $o: all the assignments don't work. Let's see
what I get:

Setter Object
(
    [attributes:private] => Array
        (
            [a] => Array
                (
                    [0] => a
                    [1] => b
                    [2] => c
                )

            [b] => Hello
        )

)

I tested it with 5.2-dev


Previous Comments:
------------------------------------------------------------------------

[2006-08-06 16:04:18] [EMAIL PROTECTED]

Yes, I did test it with 5.2-dev.

Array
(
    [a] => Array
        (
            [0] => a
            [1] => b
            [2] => c
        )

    [b] => Hello
)


------------------------------------------------------------------------

[2006-08-06 15:54:17] cid73 at 163 dot com

Are you sure it is fixed now? Did you test $o->a and $o->b, or 
print_r($o)? :-)

------------------------------------------------------------------------

[2006-08-01 22:49:53] [EMAIL PROTECTED]

Not reproducible with 5.2-CVS.

------------------------------------------------------------------------

[2006-04-12 09:59:05] [EMAIL PROTECTED]

One more overloading bug.
It is unfixable at this moment :(


------------------------------------------------------------------------

[2006-04-11 11:37:18] [EMAIL PROTECTED]

Dmitry, this does not look right to me.

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/36571

-- 
Edit this bug report at http://bugs.php.net/?id=36571&edit=1

Reply via email to