From 2dc3862c7f60101efabe112cce347ae40fe15897 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Sun, 30 Oct 2005 18:07:47 +0000 Subject: [PATCH] Improve iconv skip conditions --- ext/iconv/tests/skipif.inc | 4 ++-- ext/xml/tests/bug32001.phpt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ext/iconv/tests/skipif.inc b/ext/iconv/tests/skipif.inc index 6f7bbf2b86..631e6f8bf3 100644 --- a/ext/iconv/tests/skipif.inc +++ b/ext/iconv/tests/skipif.inc @@ -6,7 +6,7 @@ // $dlext = (substr(PHP_OS, 0, 3) == "WIN") ? ".dll" : ".so"; // @dl("iconv$dlext"); //} -if (!extension_loaded("iconv")) { - die("skip iconv extension not available\n"); +if (!function_exists("iconv")) { + die("skip iconv function not available\n"); } ?> \ No newline at end of file diff --git a/ext/xml/tests/bug32001.phpt b/ext/xml/tests/bug32001.phpt index 6b7320d06b..8427f4c4d1 100644 --- a/ext/xml/tests/bug32001.phpt +++ b/ext/xml/tests/bug32001.phpt @@ -2,7 +2,7 @@ Bug #32001 (xml_parse*() goes into infinite loop when autodetection in effect) --SKIPIF-- --FILE--