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
Fix issue with calling a unique, non-persistent method
[hiphop-php.git]
/
hphp
/
test
/
slow
/
simple_xml
/
exclude_comments.php
blob
10e1a3d040919cc2db9a26eae2a7fc2631651733
1
<
?php
2
3
$element
=
simplexml_load_string
(
<<<EOF
4
<root>
5
<!-- I am a comment -->
6
<elem1>
7
<elem2 />
8
<!-- I am also a comment -->
9
</elem1>
10
</root>
11
EOF
12
);
13
var_dump
(
$element
->
count
());
14
var_dump
(
$element
->
elem1
->
count
());