summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorMoriyoshi Koizumi <moriyoshi@php.net>2003-10-05 13:53:16 +0000
committerMoriyoshi Koizumi <moriyoshi@php.net>2003-10-05 13:53:16 +0000
commit30d64ecc3e8128ac3b6c6d5f4806acd7a6a517e3 (patch)
tree9955fffd7976e96b500675eaa9f7f7b113b405a2 /ext
parent8f489130bf0bf9491828fc25ff6dbaac3d151694 (diff)
downloadphp-git-30d64ecc3e8128ac3b6c6d5f4806acd7a6a517e3.tar.gz
Fix test to make sure it can find the external xml file relatively to
the script file.
Diffstat (limited to 'ext')
-rw-r--r--ext/simplexml/tests/bug24392.phpt6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/simplexml/tests/bug24392.phpt b/ext/simplexml/tests/bug24392.phpt
index 7ba12542ad..0d654196d4 100644
--- a/ext/simplexml/tests/bug24392.phpt
+++ b/ext/simplexml/tests/bug24392.phpt
@@ -1,13 +1,13 @@
--TEST--
-Bug #24392: empty namespaces causing confusion
+Bug #24392 (empty namespaces causing confusion)
--SKIPIF--
-<?php if (!extension_loaded("simplexml")) print "skip"; ?>
+<?php if (!extension_loaded("simplexml")) print "skip simplexml extension is not loaded"; ?>
--POST--
--GET--
--INI--
--FILE--
<?php
-$s = simplexml_load_file('ext/simplexml/tests/bug24392.xml');
+$s = simplexml_load_file(dirname(__FILE__).'/bug24392.xml');
foreach ($s->item as $item) {
echo $item->title . "\n";
}