|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-04-05 06:30 UTC] mike@php.net
[2006-04-05 14:07 UTC] thomas dot ene at gmail dot com
[2006-04-05 14:15 UTC] mike@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 07 19:00:02 2025 UTC |
Description: ------------ The code below produces: Fatal error: Couldn't execute method demo::__set in Unknown on line 0 and also a windows message box. Reproduce code: --------------- <?php class base { function __get($key) { throw new Exception(); } function __set($key, $val) { } } class demo extends base { function demo() { } function play() { $this->a++; } } $obj = new demo(); $obj->play(); ?> Expected result: ---------------- It should set the property a to 1 in the demo class Actual result: -------------- The code below produces: Fatal error: Couldn't execute method demo::__set in Unknown on line 0 and also a windows message box.