tony2001 Thu Jan 19 20:52:45 2006 UTC Modified files: /php-src/ext/mbstring/tests common.inc mb_strlen.phpt Log: fix tests http://cvs.php.net/viewcvs.cgi/php-src/ext/mbstring/tests/common.inc?r1=1.2&r2=1.3&diff_format=u Index: php-src/ext/mbstring/tests/common.inc diff -u php-src/ext/mbstring/tests/common.inc:1.2 php-src/ext/mbstring/tests/common.inc:1.3 --- php-src/ext/mbstring/tests/common.inc:1.2 Sun Nov 30 13:20:26 2003 +++ php-src/ext/mbstring/tests/common.inc Thu Jan 19 20:52:45 2006 @@ -18,7 +18,8 @@ 128 => "Compile Warning", // E_COMPILE_WARNING 256 => "User Error", // E_USER_ERROR 512 => "User Warning", // E_USER_WARMING - 1024=> "User Notice" // E_USER_NOTICE + 1024=> "User Notice", // E_USER_NOTICE + 4096=> "Catchable fatal error" // E_RECOVERABLE_ERROR ); if (!empty($debug)) { @@ -50,4 +51,4 @@ $t_obj = new tc; -?> \ No newline at end of file +?> http://cvs.php.net/viewcvs.cgi/php-src/ext/mbstring/tests/mb_strlen.phpt?r1=1.3&r2=1.4&diff_format=u Index: php-src/ext/mbstring/tests/mb_strlen.phpt diff -u php-src/ext/mbstring/tests/mb_strlen.phpt:1.3 php-src/ext/mbstring/tests/mb_strlen.phpt:1.4 --- php-src/ext/mbstring/tests/mb_strlen.phpt:1.3 Mon Jan 19 16:53:34 2004 +++ php-src/ext/mbstring/tests/mb_strlen.phpt Thu Jan 19 20:52:45 2006 @@ -60,18 +60,17 @@ // Note: PHP Notice, but returns some value $r = strlen($t_ary); echo $r."\n"; + // Object -// Note: PHP Notice, but returns some value +// Note: PHP Catchable error $r = strlen($t_obj); echo $r."\n"; + // Wrong encoding mb_internal_encoding('EUC-JP'); $r = strlen($euc_jp, 'BAD_NAME'); echo $r."\n"; - - - ?> --EXPECT-- @@ -98,9 +97,7 @@ == WRONG PARAMETERS == ERR: Notice 5 +ERR: Catchable fatal error ERR: Notice 6 ERR: Warning - - -
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php