|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-09-10 16:30 UTC] rrichards@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 07:00:01 2025 UTC |
Description: ------------ isset on nonexisting nodes return unexpected results Reproduce code: --------------- $a = simplexml_load_string(" <r> <p>Test</p> <o d='h'> <xx rr='info' /> <yy rr='data' /> </o> </r> "); var_dump(isset($a->o->zz)); var_dump(isset($a->o->text)); Expected result: ---------------- bool(false) bool(false) Actual result: -------------- bool(false) bool(true)