]> granicus.if.org Git - php/commitdiff
only run this test if SimpleXML is loaded
authorkrakjoe <joe.watkins@live.co.uk>
Thu, 21 Aug 2014 08:08:28 +0000 (09:08 +0100)
committerkrakjoe <joe.watkins@live.co.uk>
Thu, 21 Aug 2014 08:08:28 +0000 (09:08 +0100)
ext/xml/tests/bug62328.phpt

index e4c3c59d37e48b9660dba8d1600975a5fd6d2952..c59a4aac0cbac92599d26f6e7a2bc902e9b401f5 100644 (file)
@@ -3,6 +3,8 @@ Bug #62328 (implementing __toString and a cast to string fails)
 --SKIPIF--
 <?php
 require_once("skipif.inc");
+if (!extension_loaded("SimpleXML"))
+    die("skip: SimpleXML extension not available");
 ?>
 --FILE--
 <?php