bug52237.phpt 287 B

1234567891011
  1. --TEST--
  2. Bug #52237 (Crash when passing the reference of the property of a non-object)
  3. --FILE--
  4. <?php
  5. $data = 'test';
  6. preg_match('//', '', $data->info);
  7. var_dump($data);
  8. ?>
  9. --EXPECTF--
  10. Warning: Attempt to modify property 'info' of non-object in %sbug52237.php on line 3
  11. string(4) "test"