From: Hannes Magnusson Date: Fri, 3 Jun 2011 17:12:59 +0000 (+0000) Subject: Add tests for broken function arguments X-Git-Tag: php-5.3.7RC1~50 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a62829c09ea3f1defdf5e3e7c8793c1b7ee6cecc;p=php Add tests for broken function arguments --- diff --git a/Zend/tests/function_arguments_001.phpt b/Zend/tests/function_arguments_001.phpt new file mode 100644 index 0000000000..e506350269 --- /dev/null +++ b/Zend/tests/function_arguments_001.phpt @@ -0,0 +1,9 @@ +--TEST-- +Argument parsing error #001 +--FILE-- + +--EXPECTF-- +Parse error: syntax error, unexpected T_STRING, expecting ')' in %sfunction_arguments.php on line %d + diff --git a/Zend/tests/function_arguments_002.phpt b/Zend/tests/function_arguments_002.phpt new file mode 100644 index 0000000000..79dd31f337 --- /dev/null +++ b/Zend/tests/function_arguments_002.phpt @@ -0,0 +1,9 @@ +--TEST-- +Argument parsing error #002 +--FILE-- + +--EXPECTF-- +Parse error: syntax error, unexpected '/', expecting ')' in %sfunction_arguments_002.php on line %d +