diff options
author | Bob Weinand <bobwei9@hotmail.com> | 2016-04-05 00:34:42 +0200 |
---|---|---|
committer | Bob Weinand <bobwei9@hotmail.com> | 2016-05-20 01:51:05 +0200 |
commit | 4f077aee836ad7d8335cf62629a8364bdf939db9 (patch) | |
tree | f9853b092345e1847f43e1e9cbb846bebe0cc3c3 /Zend/tests/list_011.phpt | |
parent | 14a71cf545bf652202a3f056daefd654ad311eb5 (diff) | |
download | php-git-4f077aee836ad7d8335cf62629a8364bdf939db9.tar.gz |
Allow for [] = $array; (alias for list())
Diffstat (limited to 'Zend/tests/list_011.phpt')
-rw-r--r-- | Zend/tests/list_011.phpt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Zend/tests/list_011.phpt b/Zend/tests/list_011.phpt new file mode 100644 index 0000000000..316498c411 --- /dev/null +++ b/Zend/tests/list_011.phpt @@ -0,0 +1,10 @@ +--TEST-- +Disallow list() usage as if it were an array +--FILE-- +<?php + +var_dump(list(1, 2, 3)); + +?> +--EXPECTF-- +Parse error: syntax error, unexpected ')', expecting '=' in %s on line %d |