ID:               33512
 Updated by:       [EMAIL PROTECTED]
 Reported By:      muhamad_zakaria at yahoo dot com
 Status:           Closed
 Bug Type:         Scripting Engine problem
 Operating System: Windows XP Pro
 PHP Version:      5.1.0-dev
 New Comment:

Now __unset() and __isset() magic methods are implemented in HEAD.


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

[2005-07-04 10:59:20] muhamad_zakaria at yahoo dot com

Ok, thanks, now we understood.

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

[2005-07-04 10:57:00] [EMAIL PROTECTED]

.

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

[2005-07-04 10:51:52] [EMAIL PROTECTED]

PHP hasn't magic callback to unset overloaded properties.
This is the reason why unset($SomeObj->Virtual1) doesn't work.

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

[2005-07-04 10:38:12] muhamad_zakaria at yahoo dot com

We have tried from the feedback (tony2001), and the raised error is no
longer.

But we have another experiences while using 'unset' statement, such as
below:
        // we will try to unset these variables
        unset($SomeObj->RealVar1);
        unset($SomeObj->{'RealVar'.(3)});

        //the lines below will catch by '__get' magic method since these
variables are unavailable anymore
        print $SomeObj->RealVar1."\n";
        print $SomeObj->{'RealVar'.(3)}."\n";

        // now we will try to unset these variables
        unset($SomeObj->Virtual1);
        unset($SomeObj->{'Virtual'.(3)});

        //but, these variables are still available??? eventhough they're
"unset"-ed
        print $SomeObj->Virtual1."\n";
        print $SomeObj->{'Virtual'.(3)}."\n";

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

[2005-06-30 10:23:37] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php5-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5-win32-latest.zip



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

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/33512

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

Reply via email to