helly Wed May 10 22:38:35 2006 UTC Added files: (Branch: PHP_5_2) /php-src/tests/lang type_hints_002.phpt type_hints_003.phpt
Modified files: /php-src/tests/lang bug24658.phpt type_hints_001.phpt Log: - Update tests after MFH http://cvs.php.net/viewcvs.cgi/php-src/tests/lang/bug24658.phpt?r1=1.3.4.1&r2=1.3.4.1.2.1&diff_format=u Index: php-src/tests/lang/bug24658.phpt diff -u php-src/tests/lang/bug24658.phpt:1.3.4.1 php-src/tests/lang/bug24658.phpt:1.3.4.1.2.1 --- php-src/tests/lang/bug24658.phpt:1.3.4.1 Thu Sep 15 19:49:58 2005 +++ php-src/tests/lang/bug24658.phpt Wed May 10 22:38:35 2006 @@ -53,4 +53,4 @@ object(foo)#%d (0) { } -Fatal error: Argument 1 passed to typehint() must be an object of class foo in %s on line %d +Catchable fatal error: Argument 1 passed to typehint() must be an object of class foo in %s on line %d http://cvs.php.net/viewcvs.cgi/php-src/tests/lang/type_hints_001.phpt?r1=1.3.2.1&r2=1.3.2.1.2.1&diff_format=u Index: php-src/tests/lang/type_hints_001.phpt diff -u php-src/tests/lang/type_hints_001.phpt:1.3.2.1 php-src/tests/lang/type_hints_001.phpt:1.3.2.1.2.1 --- php-src/tests/lang/type_hints_001.phpt:1.3.2.1 Thu Sep 15 19:49:58 2005 +++ php-src/tests/lang/type_hints_001.phpt Wed May 10 22:38:35 2006 @@ -23,4 +23,4 @@ ?> --EXPECTF-- -Fatal error: Argument 1 passed to type_hint_foo() must be an instance of Foo, called in %s on line 16 and defined in %s on line 9 +Catchable fatal error: Argument 1 passed to type_hint_foo() must be an instance of Foo, called in %s on line 16 and defined in %s on line 9 http://cvs.php.net/viewcvs.cgi/php-src/tests/lang/type_hints_002.phpt?view=markup&rev=1.1 Index: php-src/tests/lang/type_hints_002.phpt +++ php-src/tests/lang/type_hints_002.phpt --TEST-- ZE2 type hinting --SKIPIF-- <?php if (version_compare(zend_version(), '2.0.0-dev', '<')) die('skip ZendEngine 2 needed'); ?> --FILE-- <?php class P { } class T { function f(P $p = NULL) { var_dump($p); echo "-\n"; } } $o=new T(); $o->f(new P); $o->f(); $o->f(NULL); ?> --EXPECT-- object(P)#2 (0) { } - NULL - NULL - http://cvs.php.net/viewcvs.cgi/php-src/tests/lang/type_hints_003.phpt?view=markup&rev=1.1 Index: php-src/tests/lang/type_hints_003.phpt +++ php-src/tests/lang/type_hints_003.phpt --TEST-- ZE2 type hinting --SKIPIF-- <?php if (version_compare(zend_version(), '2.0.0-dev', '<')) die('skip ZendEngine 2 needed'); ?> --FILE-- <?php class T { function f(P $p = 42) { } } ?> --EXPECTF-- Fatal error: Default value for parameters with a class type hint can only be NULL in %stest.php on line 3 -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php