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
/
bad
/
ext-simplexml
/
003.php
blob
89b155f3f0e7e23c4cdc19e8612b5bbd70b40b32
1
<
?php
2
3
$xml
=
<<<EOF
4
<?xml version='1.0'?>
5
<!DOCTYPE sxe SYSTEM "notfound.dtd" [
6
<!ENTITY included-entity "This is text included from an entity">
7
]>
8
<sxe id="elem1">
9
Plain text.
10
<elem1 attr1='first'>
11
<!-- comment -->
12
<elem2>
13
<elem3>
14
&included-entity;
15
<elem4>
16
<?test processing instruction ?>
17
</elem4>
18
</elem3>
19
</elem2>
20
</elem1>
21
</sxe>
22
EOF
;
23
24
var_dump
(
simplexml_load_string
(
$xml
));
25
26
?
>
27
===
DONE
===