ID:               48033
 Updated by:       j...@php.net
 Reported By:      php6developer at ya dot ru
-Status:           Open
+Status:           Bogus
 Bug Type:         Class/Object related
 Operating System: Ubuntu 8.10 x64
 PHP Version:      5.2.9
 New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php




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

[2009-04-21 07:21:08] php6developer at ya dot ru

Description:
------------
Hi all!

Problem in undo magic methods.

Reproduce code:
---------------
---
>From manual page: language.oop5.magic
---
<?php
abstract class Probus_Core_Abstract
{
        protected function __get($sName) {
                echo 'Abstract->__get';
        }
}

// in current class I have unset magic method __get
class Probus_Core_View extends Probus_Core_Abstract
{
}

// create object
$oView = new Probus_Core_View();
// set public dinamical variable
$oView->testvar['num'] = 10;
// print object
var_dump($oView);
?>

Expected result:
----------------
Set variable and no call magic method.

Actual result:
--------------
Print  'Abstract->__get' string and no set variable!


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


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

Reply via email to