xref: /PHP-7.4/Zend/tests/bug52237.phpt (revision d679f022)
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--
10Warning: Attempt to modify property 'info' of non-object in %sbug52237.php on line 3
11string(4) "test"
12