|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-11-09 20:50 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 10:00:02 2025 UTC |
Description: ------------ When calling isset()/empty() on an object which uses overloading (__set()/__get()) the property state is not returned correctly. It just checks for real properties, but not overloaded once. Reproduce code: --------------- class foo { function __get ( $key, $val ) { /* code */ } } $bar = new foo(); $bar->bak = 'bla'; var_dump(isset($bar->bak)); Expected result: ---------------- true Actual result: -------------- false