mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
First pass at moving `Zend/tests/bug*` tests to existing sub directories Work towards GH-15631
13 lines
281 B
PHP
13 lines
281 B
PHP
--TEST--
|
|
Bug #24773 (unset() of integers treated as arrays causes a crash)
|
|
--FILE--
|
|
<?php
|
|
$array = 'test';
|
|
unset($array["lvl1"]["lvl2"]["b"]);
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Uncaught Error: Cannot unset string offsets in %s:%d
|
|
Stack trace:
|
|
#0 {main}
|
|
thrown in %s on line %d
|