summaryrefslogtreecommitdiff
path: root/Zend/tests/bug41813.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/bug41813.phpt')
-rw-r--r--Zend/tests/bug41813.phpt12
1 files changed, 12 insertions, 0 deletions
diff --git a/Zend/tests/bug41813.phpt b/Zend/tests/bug41813.phpt
new file mode 100644
index 0000000000..c330b14fe8
--- /dev/null
+++ b/Zend/tests/bug41813.phpt
@@ -0,0 +1,12 @@
+--TEST--
+Bug #41813 (segmentation fault when using string offset as an object)
+--FILE--
+<?php
+
+$foo = "50";
+$foo[0]->bar = "xyz";
+
+echo "Done\n";
+?>
+--EXPECTF--
+Fatal error: Cannot use string offset as an array in %s on line %d