summaryrefslogtreecommitdiff
path: root/Zend/tests/bug52237.phpt
blob: 0b54787aa9eb53ae5a6d6376d22f0257eb1c8404 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--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"