]> granicus.if.org Git - php/commitdiff
Fix test to make sure it can find the external xml file relatively to
authorMoriyoshi Koizumi <moriyoshi@php.net>
Sun, 5 Oct 2003 13:53:16 +0000 (13:53 +0000)
committerMoriyoshi Koizumi <moriyoshi@php.net>
Sun, 5 Oct 2003 13:53:16 +0000 (13:53 +0000)
the script file.

ext/simplexml/tests/bug24392.phpt

index 7ba12542ad03a83f01747bfd95ce330b446224cf..0d654196d4046bba6ccc3d910414e0af4b85d73d 100644 (file)
@@ -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";
 }