|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-04-21 07:43 UTC] jani@php.net
[2009-04-21 13:21 UTC] php6developer at ya dot ru
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 02 00:00:01 2025 UTC |
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!