summaryrefslogtreecommitdiff
path: root/Zend/tests/bug70430.phpt
diff options
context:
space:
mode:
authorNikita Popov <nikic@php.net>2015-10-12 22:05:19 +0200
committerNikita Popov <nikic@php.net>2015-10-15 22:14:23 +0200
commite3e92e96c158c4fc294ead36f9d73941bdbf679e (patch)
tree948a1cb322ae5f48cae3da4a66c84917e9a0a88b /Zend/tests/bug70430.phpt
parent06f38d36a8df884775fc674d09f30cc7949c987d (diff)
downloadphp-git-e3e92e96c158c4fc294ead36f9d73941bdbf679e.tar.gz
Fixed bug #70430
Diffstat (limited to 'Zend/tests/bug70430.phpt')
-rw-r--r--Zend/tests/bug70430.phpt10
1 files changed, 10 insertions, 0 deletions
diff --git a/Zend/tests/bug70430.phpt b/Zend/tests/bug70430.phpt
new file mode 100644
index 0000000000..59983653e9
--- /dev/null
+++ b/Zend/tests/bug70430.phpt
@@ -0,0 +1,10 @@
+--TEST--
+Bug #70430: Stack buffer overflow in zend_language_parser()
+--FILE--
+<?php
+
+$"*** Testing function() : ***\n";
+
+?>
+--EXPECTF--
+Parse error: syntax error, unexpected '"*** Testing function() : ***' (T_CONSTANT_ENCAPSED_STRING), expecting variable (T_VARIABLE) or '{' or '$' in %s on line %d