diff options
Diffstat (limited to 'ext/spl/tests/fixedarray_012.phpt')
| -rw-r--r-- | ext/spl/tests/fixedarray_012.phpt | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/ext/spl/tests/fixedarray_012.phpt b/ext/spl/tests/fixedarray_012.phpt new file mode 100644 index 0000000000..3461b3a9b5 --- /dev/null +++ b/ext/spl/tests/fixedarray_012.phpt @@ -0,0 +1,19 @@ +--TEST-- +SPL: FixedArray: Assigning the object to another variable using [] +--FILE-- +<?php + +$a = new SplFixedArray(100); + +try { + $b = &$a[]; +} catch (Exception $e) { + echo $e->getMessage(), "\n"; +} + +print "ok\n"; + +?> +--EXPECT-- +Index invalid or out of range +ok |
