Browse Source

Fix tests

migration/RELEASE_1_0_0
Hannes Magnusson 19 years ago
parent
commit
2d0d09830c
  1. 2
      ext/ftp/tests/005.phpt
  2. 4
      ext/standard/tests/array/locale_sort.phpt
  3. 4
      ext/standard/tests/strings/substr_compare.phpt

2
ext/ftp/tests/005.phpt

@ -66,7 +66,7 @@ int(-1)
Warning: ftp_mkdir(): Command not implemented (7). in %s005.php on line 20
bool(false)
Warning: ftp_nb_continue(): no nbronous transfer to continue. in %s005.php on line 21
Warning: ftp_nb_continue(): no nbronous transfer to continue in %s005.php on line 21
int(0)
Warning: ftp_nb_fget(): Mode must be FTP_ASCII or FTP_BINARY in %s005.php on line 22

4
ext/standard/tests/array/locale_sort.phpt

@ -2,7 +2,7 @@
Sort with SORT_LOCALE_STRING
--SKIPIF--
<?php
if ("fr_FR" != setlocale(LC_CTYPE, "fr_FR")) {
if (false == @setlocale(LC_CTYPE, "fr_FR", "fr_FR.UTF-8")) {
die("skip setlocale() failed\n");
}
if (!function_exists("locale_set_default")) {
@ -14,7 +14,7 @@ unicode.script_encoding=UTF-8
unicode.output_encoding=UTF-8
--FILE--
<?php
setlocale(LC_ALL, 'fr_FR');
@setlocale(LC_ALL, 'fr_FR', 'fr_FR.UTF-8');
locale_set_default('fr_FR');
$table = array("AB" => "Alberta",
"BC" => "Colombie-Britannique",

4
ext/standard/tests/strings/substr_compare.phpt

@ -24,7 +24,7 @@ int(0)
int(1)
int(-1)
Warning: substr_compare(): The start position cannot exceed initial string length in %s on line %d
Warning: substr_compare(): The specified segment exceeds string length in %s on line %d
bool(false)
Warning: substr_compare() expects parameter 5 to be boolean, object given in %s on line %d
@ -44,7 +44,7 @@ int(0)
int(1)
int(-1)
Warning: substr_compare(): The start position cannot exceed initial string length in %s on line %d
Warning: substr_compare(): The specified segment exceeds string length in %s on line %d
bool(false)
Warning: substr_compare() expects parameter 5 to be boolean, object given in %s on line %d

Loading…
Cancel
Save