summaryrefslogtreecommitdiff
path: root/tests/lang/bug29893.phpt
blob: d9af914191437cda6576659c828ce2f8f395157a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--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