summaryrefslogtreecommitdiff
path: root/Zend/tests/bug41919.phpt
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2007-07-09 08:56:29 +0000
committerDmitry Stogov <dmitry@php.net>2007-07-09 08:56:29 +0000
commit2d393762198fabd572488ab2242cbead604fb1b0 (patch)
tree53e8287563bcb51285cc62ff3a190f432548dd70 /Zend/tests/bug41919.phpt
parent03b000dc3962c8f4183c79708ec57fe1fc181942 (diff)
downloadphp-git-2d393762198fabd572488ab2242cbead604fb1b0.tar.gz
Fixed bug #41919
Diffstat (limited to 'Zend/tests/bug41919.phpt')
-rw-r--r--Zend/tests/bug41919.phpt11
1 files changed, 11 insertions, 0 deletions
diff --git a/Zend/tests/bug41919.phpt b/Zend/tests/bug41919.phpt
new file mode 100644
index 0000000000..3ba9ae0ec4
--- /dev/null
+++ b/Zend/tests/bug41919.phpt
@@ -0,0 +1,11 @@
+--TEST--
+Bug #41919 (crash in string to array conversion)
+--FILE--
+<?php
+$foo="50";
+$foo[3]->bar[1] = "bang";
+
+echo "ok\n";
+?>
+--EXPECTF--
+Fatal error: Cannot use string offset as an object in %s/bug41919.php on line %d