We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bbda0f6 commit 7a60948Copy full SHA for 7a60948
tests/004b.phpt
@@ -11,7 +11,13 @@ if (!extension_loaded('xml')) {
11
?>
12
--FILE--
13
<?php
14
-require_once 'XML/Parser.php';
+chdir (dirname(__FILE__));
15
+if (file_exists('../Parser.php')) {
16
+ require_once "../Parser.php";
17
+} else {
18
+ require_once "XML/Parser.php";
19
+}
20
+
21
print 'New XML_Parser: ';
22
var_dump(strtolower(get_class($p = new XML_Parser())));
23
$e = $p->parseString("<?xml version='1.0' ?>\n<foo></bar>", true);
0 commit comments