xref: /PHP-5.4/Zend/tests/bug54262.phpt (revision 622412d8)
1--TEST--
2Bug #54262 (Crash when assigning value to a dimension in a non-array)
3--FILE--
4<?php
5$a = '0';
6var_dump(isset($a['b']));
7$simpleString = preg_match('//', '', $a->a);
8$simpleString["wrong"] = "f";
9echo "ok\n";
10?>
11--EXPECTF--
12bool(false)
13
14Warning: Attempt to modify property of non-object in %sbug54262.php on line 4
15
16Warning: Cannot use a scalar value as an array in %sbug54262.php on line 5
17ok
18