bug54262.phpt 407 B

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