summaryrefslogtreecommitdiff
path: root/Zend/tests/bug70912.phpt
diff options
context:
space:
mode:
authorXinchen Hui <laruence@gmail.com>2015-11-13 21:01:11 +0800
committerXinchen Hui <laruence@gmail.com>2015-11-13 21:24:42 +0800
commit25de928df77d9906c81becddca42143d19d6eedd (patch)
tree03316d42d1929154bbc7bec91ae777d471a01f49 /Zend/tests/bug70912.phpt
parenta03786f7730e99e86113b826087e2271a2b001fc (diff)
downloadphp-git-25de928df77d9906c81becddca42143d19d6eedd.tar.gz
Fixed bug #70912 (Null ptr dereference instantiating class with invalid array property)
Diffstat (limited to 'Zend/tests/bug70912.phpt')
-rw-r--r--Zend/tests/bug70912.phpt10
1 files changed, 10 insertions, 0 deletions
diff --git a/Zend/tests/bug70912.phpt b/Zend/tests/bug70912.phpt
new file mode 100644
index 0000000000..3d6d4303a6
--- /dev/null
+++ b/Zend/tests/bug70912.phpt
@@ -0,0 +1,10 @@
+--TEST--
+Bug #70912 (Null ptr dereference when class property is initialised to a dereferenced value)
+--FILE--
+<?php
+class A {
+ public $a=[][];
+}
+?>
+--EXPECTF--
+Fatal error: Cannot use [] for reading in %sbug70912.php on line %d