summaryrefslogtreecommitdiff
path: root/Zend/tests/bug52237.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/bug52237.phpt')
-rw-r--r--Zend/tests/bug52237.phpt11
1 files changed, 11 insertions, 0 deletions
diff --git a/Zend/tests/bug52237.phpt b/Zend/tests/bug52237.phpt
new file mode 100644
index 000000000..a466a8ce0
--- /dev/null
+++ b/Zend/tests/bug52237.phpt
@@ -0,0 +1,11 @@
+--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"