Mantis - Quercus
Viewing Issue Advanced Details
5992 major always 04-06-16 02:14 05-04-16 05:32
ebo  
nam  
normal  
closed  
fixed  
none    
none  
0005992: isset() on SimpleXML object not working
When using isset() to check if a variable exists in a SimpleXML object, the function always returns false, even if the variable exists.

Example:

$xml='<?xml version="1.0" encoding="utf-8"?>
<config type="system" version="1.5.0" hide="forms">
    <name>Module</name>
    <field1>
        <type>project</type>
    </field1>
</config>';
$xmlf=simplexml_load_string($xml);
var_dump($xmlf->name);
echo '
';
var_dump(isset($xmlf->name));
echo '
';

Notes
(0006691)
nam   
05-04-16 05:32   
php/1x3[b-g]