mirror of
https://github.com/php/php-src.git
synced 2024-09-25 03:47:26 +00:00
13 lines
281 B
Plaintext
13 lines
281 B
Plaintext
|
--TEST--
|
||
|
Bug #52237 (Crash when passing the reference of the property of a non-object)
|
||
|
--FILE--
|
||
|
<?php
|
||
|
$data = 'test';
|
||
|
preg_match('//', '', $data->info);
|
||
|
var_dump($data);
|
||
|
?>
|
||
|
--EXPECTF--
|
||
|
|
||
|
Warning: Attempt to modify property of non-object in %sbug52237.php on line 3
|
||
|
string(4) "test"
|