]> granicus.if.org Git - php/commitdiff
fix tests
authorAntony Dovgal <tony2001@php.net>
Wed, 6 Dec 2006 13:11:02 +0000 (13:11 +0000)
committerAntony Dovgal <tony2001@php.net>
Wed, 6 Dec 2006 13:11:02 +0000 (13:11 +0000)
Zend/tests/unset_cv05.phpt
ext/standard/tests/array/array_fill.phpt
ext/standard/tests/array/bug14580.phpt
tests/classes/bug26737.phpt
tests/lang/034.phpt
tests/lang/bug24783.phpt
tests/lang/bug30638.phpt
tests/lang/each_binary_safety.phpt

index 407e73d3124290df0e801d73d00c43d24336c4b4..b2b74c3fb9a4391a005d9791efa2f73b068f0d5c 100644 (file)
@@ -4,7 +4,7 @@ unset() CV 5 (indirect unset() of global variable in session_start())
 session.auto_start=0
 session.save_handler=files
 --SKIPIF--
-<?php include(dirname(__FILE__).'/../../ext/session/tests/skipif.inc'); ?>
+<?php if (!extension_loaded("session")) die("skip"); ?>
 --FILE--
 <?php
 $_SESSION = "ok\n";
index f714d33c28fdf967f6a7d0279a2ea5bff0ca9052..790fd6d120d98b5a1d17abdc9d330ebda3f962e8 100644 (file)
@@ -366,73 +366,73 @@ array(2) {
 == Done =================Done====================
 --UEXPECTF--
 ===========================
-start: 0.00000000000000E+000 num: 0.00000000000000E+000 value: 1
+start: 0 num: 0 value: 1
 
 Warning: array_fill(): Number of elements must be positive in %s on line %d
 bool(false)
 ===========================
-start: 0.00000000000000E+000 num: 0.00000000000000E+000 value: 
+start: 0 num: 0 value: 
 
 Warning: array_fill(): Number of elements must be positive in %s on line %d
 bool(false)
 ===========================
-start: 0.00000000000000E+000 num: 0.00000000000000E+000 value: 
+start: 0 num: 0 value: 
 
 Warning: array_fill(): Number of elements must be positive in %s on line %d
 bool(false)
 ===========================
-start: 0.00000000000000E+000 num: 0.00000000000000E+000 value: d
+start: 0 num: 0 value: d
 
 Warning: array_fill(): Number of elements must be positive in %s on line %d
 bool(false)
 ===========================
-start: 0.00000000000000E+000 num: 0.00000000000000E+000 value: e
+start: 0 num: 0 value: e
 
 Warning: array_fill(): Number of elements must be positive in %s on line %d
 bool(false)
 ===========================
-start: 0.00000000000000E+000 num: 0.00000000000000E+000 value: f
+start: 0 num: 0 value: f
 
 Warning: array_fill(): Number of elements must be positive in %s on line %d
 bool(false)
 ===========================
-start: 0.00000000000000E+000 num: 1 value: 1
+start: 0 num: 1 value: 1
 array(1) {
   [0]=>
   bool(true)
 }
 ===========================
-start: 0.00000000000000E+000 num: 1 value: 
+start: 0 num: 1 value: 
 array(1) {
   [0]=>
   bool(false)
 }
 ===========================
-start: 0.00000000000000E+000 num: 1 value: 
+start: 0 num: 1 value: 
 array(1) {
   [0]=>
   NULL
 }
 ===========================
-start: 0.00000000000000E+000 num: 1 value: d
+start: 0 num: 1 value: d
 array(1) {
   [0]=>
   unicode(1) "d"
 }
 ===========================
-start: 0.00000000000000E+000 num: 1 value: e
+start: 0 num: 1 value: e
 array(1) {
   [0]=>
   unicode(1) "e"
 }
 ===========================
-start: 0.00000000000000E+000 num: 1 value: f
+start: 0 num: 1 value: f
 array(1) {
   [0]=>
   unicode(1) "f"
 }
 ===========================
-start: 0.00000000000000E+000 num: 2.5 value: 1
+start: 0 num: 2.5 value: 1
 array(2) {
   [0]=>
   bool(true)
@@ -440,7 +440,7 @@ array(2) {
   bool(true)
 }
 ===========================
-start: 0.00000000000000E+000 num: 2.5 value: 
+start: 0 num: 2.5 value: 
 array(2) {
   [0]=>
   bool(false)
@@ -448,7 +448,7 @@ array(2) {
   bool(false)
 }
 ===========================
-start: 0.00000000000000E+000 num: 2.5 value: 
+start: 0 num: 2.5 value: 
 array(2) {
   [0]=>
   NULL
@@ -456,7 +456,7 @@ array(2) {
   NULL
 }
 ===========================
-start: 0.00000000000000E+000 num: 2.5 value: d
+start: 0 num: 2.5 value: d
 array(2) {
   [0]=>
   unicode(1) "d"
@@ -464,7 +464,7 @@ array(2) {
   unicode(1) "d"
 }
 ===========================
-start: 0.00000000000000E+000 num: 2.5 value: e
+start: 0 num: 2.5 value: e
 array(2) {
   [0]=>
   unicode(1) "e"
@@ -472,7 +472,7 @@ array(2) {
   unicode(1) "e"
 }
 ===========================
-start: 0.00000000000000E+000 num: 2.5 value: f
+start: 0 num: 2.5 value: f
 array(2) {
   [0]=>
   unicode(1) "f"
@@ -480,32 +480,32 @@ array(2) {
   unicode(1) "f"
 }
 ===========================
-start: 1 num: 0.00000000000000E+000 value: 1
+start: 1 num: 0 value: 1
 
 Warning: array_fill(): Number of elements must be positive in %s on line %d
 bool(false)
 ===========================
-start: 1 num: 0.00000000000000E+000 value: 
+start: 1 num: 0 value: 
 
 Warning: array_fill(): Number of elements must be positive in %s on line %d
 bool(false)
 ===========================
-start: 1 num: 0.00000000000000E+000 value: 
+start: 1 num: 0 value: 
 
 Warning: array_fill(): Number of elements must be positive in %s on line %d
 bool(false)
 ===========================
-start: 1 num: 0.00000000000000E+000 value: d
+start: 1 num: 0 value: d
 
 Warning: array_fill(): Number of elements must be positive in %s on line %d
 bool(false)
 ===========================
-start: 1 num: 0.00000000000000E+000 value: e
+start: 1 num: 0 value: e
 
 Warning: array_fill(): Number of elements must be positive in %s on line %d
 bool(false)
 ===========================
-start: 1 num: 0.00000000000000E+000 value: f
+start: 1 num: 0 value: f
 
 Warning: array_fill(): Number of elements must be positive in %s on line %d
 bool(false)
@@ -594,32 +594,32 @@ array(2) {
   unicode(1) "f"
 }
 ===========================
-start: 2.5 num: 0.00000000000000E+000 value: 1
+start: 2.5 num: 0 value: 1
 
 Warning: array_fill(): Number of elements must be positive in %s on line %d
 bool(false)
 ===========================
-start: 2.5 num: 0.00000000000000E+000 value: 
+start: 2.5 num: 0 value: 
 
 Warning: array_fill(): Number of elements must be positive in %s on line %d
 bool(false)
 ===========================
-start: 2.5 num: 0.00000000000000E+000 value: 
+start: 2.5 num: 0 value: 
 
 Warning: array_fill(): Number of elements must be positive in %s on line %d
 bool(false)
 ===========================
-start: 2.5 num: 0.00000000000000E+000 value: d
+start: 2.5 num: 0 value: d
 
 Warning: array_fill(): Number of elements must be positive in %s on line %d
 bool(false)
 ===========================
-start: 2.5 num: 0.00000000000000E+000 value: e
+start: 2.5 num: 0 value: e
 
 Warning: array_fill(): Number of elements must be positive in %s on line %d
 bool(false)
 ===========================
-start: 2.5 num: 0.00000000000000E+000 value: f
+start: 2.5 num: 0 value: f
 
 Warning: array_fill(): Number of elements must be positive in %s on line %d
 bool(false)
index 8a80bddcb40ce98621652e0d7e6d6336e5eed465..bf0121ad69c2dd673498fbb03d6c3f58971de7ad 100644 (file)
@@ -2,7 +2,7 @@
 Bug #14580 (key() not binary safe)
 --FILE--
 <?php
-       $arr = array ("foo\0bar" => "foo\0bar");
+       $arr = array (b"foo\0bar" => b"foo\0bar");
        $key = key($arr);
        echo strlen($key), ': ';
        echo urlencode($key), "\n";
index ffe70e07f241ce93158ea0e0846de321367c5985..02cb2df42aab7d9df2449889eb4a11f573ebca88 100644 (file)
@@ -22,4 +22,4 @@ Notice: serialize(): "no_such" returned as member variable from __sleep() but do
 string(130) "O:3:"foo":4:{s:12:"\0foo\0private";s:7:"private";s:12:"\0*\0protected";s:9:"protected";s:6:"public";s:6:"public";s:7:"no_such";N;}"
 --UEXPECTF--
 Notice: serialize(): "no_such" returned as member variable from __sleep() but does not exist in %s on line %d
-string(130) "O:3:"foo":4:{U:12:"\0foo\0private";U:7:"private";U:12:"\0*\0protected";U:9:"protected";U:6:"public";U:6:"public";U:7:"no_such";N;}"
\ No newline at end of file
+unicode(130) "O:3:"foo":4:{U:12:"\0foo\0private";U:7:"private";U:12:"\0*\0protected";U:9:"protected";U:6:"public";U:6:"public";U:7:"no_such";N;}"
index 211544a6690b725c7d475d2f41e3c2423249311c..a533a343d1377e6f208d129a61b424dc781faacd 100644 (file)
@@ -15,3 +15,6 @@ echo (float)"3.14", "\n";
 ?>
 --EXPECT--
 3,14
+--UEXPECT--
+Strict Standards: setlocale(): deprecated in Unicode mode, please use ICU locale functions in %s on line %d
+3,14
index 8c8cd6ee0107720181e5c6d15c7b8f5e4fa84f24..4f6a5b5f4e7f362bb11e41e5794c3385a4946082 100644 (file)
@@ -3,7 +3,7 @@ Bug #24783 ($key not binary safe in "foreach($arr as $key => $val)")
 --FILE--
 <?php
 error_reporting(E_ALL);
-       $arr = array ("foo\0bar" => "foo\0bar");
+       $arr = array (b"foo\0bar" => b"foo\0bar");
        foreach ($arr as $key => $val) {
                echo strlen($key), ': ';
                echo urlencode($key), ' => ', urlencode($val), "\n";
index 2574d132d3d112d2d049e5c18be641524f469c3f..8475a8176e776371831ad50369c067d36de2477f 100644 (file)
@@ -18,3 +18,9 @@ printf("thousands_sep: %s\n", $lc['thousands_sep']);
 --EXPECT--
 decimal_point: ,
 thousands_sep: .
+--UEXPECTF--
+Strict Standards: setlocale(): deprecated in Unicode mode, please use ICU locale functions in %s on line %d
+
+Strict Standards: localeconv(): deprecated in Unicode mode, please use ICU locale functions in %s on line %d
+decimal_point: ,
+thousands_sep: .
index bb135345464ca5d7ea6d97d00a69035a4a022cee..7f8bfa1b62e636d7a3f9196a28c1a95ff5efe6e0 100644 (file)
@@ -3,7 +3,7 @@ Binary safety of each() for both keys and values
 --FILE--
 <?php
 error_reporting(E_ALL);
-$arr = array ("foo\0bar" => "foo\0bar");
+$arr = array (b"foo\0bar" => b"foo\0bar");
 while (list($key, $val) = each($arr)) {
        echo strlen($key), ': ';
        echo urlencode($key), ' => ', urlencode($val), "\n";