diff options
Diffstat (limited to 'Zend/tests/restrict_globals/invalid_assign_list_ref.phpt')
-rw-r--r-- | Zend/tests/restrict_globals/invalid_assign_list_ref.phpt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Zend/tests/restrict_globals/invalid_assign_list_ref.phpt b/Zend/tests/restrict_globals/invalid_assign_list_ref.phpt new file mode 100644 index 0000000000..594a308ea1 --- /dev/null +++ b/Zend/tests/restrict_globals/invalid_assign_list_ref.phpt @@ -0,0 +1,10 @@ +--TEST-- +Cannot list-assign to $GLOBALS (by-ref) +--FILE-- +<?php + +list(&$GLOBALS) = [1]; + +?> +--EXPECTF-- +Fatal error: Cannot assign reference to non referencable value in %s on line %d |