1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00
Files
archived-php-src/tests/lang/bug29893.phpt
2019-09-27 15:49:18 +02:00

14 lines
221 B
PHP

--TEST--
Bug #29893 (segfault when using array as index)
--FILE--
<?php
$base = 50;
try {
$base[$base] -= 0;
} catch (Error $e) {
echo $e->getMessage(), "\n";
}
?>
--EXPECT--
Cannot use a scalar value as an array