]> granicus.if.org Git - php/commitdiff
Fix tests
authorHannes Magnusson <bjori@php.net>
Tue, 19 Dec 2006 10:03:24 +0000 (10:03 +0000)
committerHannes Magnusson <bjori@php.net>
Tue, 19 Dec 2006 10:03:24 +0000 (10:03 +0000)
Zend/tests/bug34617.phpt
ext/ftp/tests/004.phpt
ext/standard/tests/array/locale_sort.phpt
tests/lang/bug30638.phpt

index 23c43c4f9f8b1956c6e423b45f337ef9f6db8713..25f785f909509ebbee7c06dce60eb28579d99fba 100755 (executable)
@@ -1,7 +1,7 @@
 --TEST--
 Bug #34617 (zend_deactivate: objects_store used after zend_objects_store_destroy is called) 
 --SKIPIF--
-<?php if (!extension_loaded("xml")) print "skip"; ?>
+<?php if (!extension_loaded("xml")) print "skip the xml extension not available"; ?>
 --FILE--
 <?php
 class Thing {}
@@ -15,4 +15,4 @@ function boom()
 boom();
 ?>
 --EXPECT--
-ok
\ No newline at end of file
+ok
index 163d0b57527be5dd7442cb967bb44ac142b1673c..df6951b0913779c05428e8d7043e49c59d688124 100644 (file)
@@ -56,7 +56,7 @@ NULL
 Warning: ftp_close() expects exactly 1 parameter, 0 given in %s004.php on line 17
 NULL
 
-Warning: ftp_connect(): php_network_getaddresses: getaddrinfo failed: %s not known in %s004.php on line 18
+Warning: ftp_connect(): php_network_getaddresses: getaddrinfo failed: %s in %s004.php on line 18
 bool(false)
 
 Warning: ftp_delete() expects parameter 2 to be string, array given in %s004.php on line 19
index b4e15fa524ed92d18ff91e54e233560206ac9567..4b7068fa853e972ce3bb27968a79b20d2fb994d8 100644 (file)
@@ -2,13 +2,13 @@
 Sort with SORT_LOCALE_STRING
 --SKIPIF--
 <?php
-if ("fr_FR" != setlocale(LC_CTYPE, "fr_FR")) {
+if (false == setlocale(LC_CTYPE, "fr_FR", "fr_FR.ISO8859-1")) {
   die("skip setlocale() failed\n");
 }
 ?>
 --FILE--
 <?php
-setlocale(LC_ALL, 'fr_FR');
+setlocale(LC_ALL, 'fr_FR', 'fr_FR.ISO8859-1');
 $table = array("AB" => "Alberta",
 "BC" => "Colombie-Britannique",
 "MB" => "Manitoba",
index 2574d132d3d112d2d049e5c18be641524f469c3f..9edc1773204862b8dc4c1681c0a0aa3365dcc9be 100644 (file)
@@ -3,7 +3,7 @@ Bug #30638 (localeconv returns wrong LC_NUMERIC settings)
 --SKIPIF--
 <?php  # try to activate a german locale
 if (setlocale(LC_NUMERIC, "de_DE", "de", "german", "ge") === FALSE) {
-       print "skip";
+       print "skip setlocale() failed";
 }
 ?>
 --FILE--