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(true) 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