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