mirror of
https://github.com/php/php-src.git
synced 2024-12-14 12:26:19 +08:00
18 lines
403 B
PHP
18 lines
403 B
PHP
--TEST--
|
|
Bug #54262 (Crash when assigning value to a dimension in a non-array)
|
|
--FILE--
|
|
<?php
|
|
$a = '0';
|
|
var_dump(isset($a['b']));
|
|
$simpleString = preg_match('//', '', $a->a);
|
|
$simpleString["wrong"] = "f";
|
|
echo "ok\n";
|
|
?>
|
|
--EXPECTF--
|
|
bool(false)
|
|
|
|
Warning: Attempt to modify property of non-object in %sbug54262.php on line 4
|
|
|
|
Warning: Cannot use a scalar value as an array in %sbug54262.php on line 5
|
|
ok
|