mirror of
https://github.com/php/php-src.git
synced 2026-03-26 17:22:15 +01:00
MFB test
This commit is contained in:
11
Zend/tests/offset_assign.phpt
Normal file
11
Zend/tests/offset_assign.phpt
Normal file
@@ -0,0 +1,11 @@
|
||||
--TEST--
|
||||
Crash on $x['x']['y'] += 1 when $x is string
|
||||
--FILE--
|
||||
<?php
|
||||
$x = "a";
|
||||
$x['x']['y'] += 1;
|
||||
|
||||
echo "Done\n";
|
||||
?>
|
||||
--EXPECTF--
|
||||
Fatal error: Cannot use string offset as an array in %s on line %d
|
||||
Reference in New Issue
Block a user