]> granicus.if.org Git - php/commitdiff
Fixed test
authorDmitry Stogov <dmitry@php.net>
Tue, 24 Jun 2008 07:06:08 +0000 (07:06 +0000)
committerDmitry Stogov <dmitry@php.net>
Tue, 24 Jun 2008 07:06:08 +0000 (07:06 +0000)
ext/mbstring/tests/mb_strlen.phpt

index 5fc19f45461720407f745294e518886ab4f7e54b..f93c070134dca91d12da9bd891552c2fd5f3e92b 100644 (file)
@@ -57,11 +57,11 @@ print  strlen($utf8) . "\n";
 // Wrong Parameters
 echo "== WRONG PARAMETERS ==\n";
 // Array
-// Note: PHP Notice, but returns some value
+// Note: PHP Warning, strlen() expects parameter 1 to be string, array given
 $r = strlen($t_ary);
 echo $r."\n";
 // Object
-// Note: PHP Notice, but returns some value
+// Note: PHP Warning, strlen() expects parameter 1 to be string, object given
 $r = strlen($t_obj);
 echo $r."\n";
 // Wrong encoding
@@ -91,11 +91,10 @@ echo $r."\n";
 43
 101
 == WRONG PARAMETERS ==
-ERR: Notice
-5
-ERR: Catchable fatal error
-ERR: Notice
-6
+ERR: Warning
+
+ERR: Warning
+
 ERR: Warning