repo.or.cz
/
hiphop-php.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
import zend simplexml tests
[hiphop-php.git]
/
hphp
/
test
/
zend
/
good
/
ext-simplexml
/
bug46003.php
blob
4e668f795d9b4137114875a71f91515771d1f724
1
<
?php
2
$xml
=
<<<XML
3
<r>
4
<p>Test</p>
5
<o d='h'>
6
<xx rr='info' />
7
<yy rr='data' />
8
</o>
9
</r>
10
XML
;
11
12
$x
=
simplexml_load_string
(
$xml
);
13
14
var_dump
(
isset
(
$x
->
p
));
15
var_dump
(
isset
(
$x
->
p
->
o
));
16
var_dump
(
isset
(
$x
->
o
->
yy
));
17
var_dump
(
isset
(
$x
->
o
->
zz
));
18
var_dump
(
isset
(
$x
->
o
->
text
));
19
var_dump
(
isset
(
$x
->
o
->
xx
));
20
?
>
21
===
DONE
===