From: Felipe Pena Date: Tue, 30 Jun 2009 11:37:42 +0000 (+0000) Subject: - New test X-Git-Tag: php-5.3.1RC1~495 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=aafaa9c01958f26a0b5289f9aa52c1c3d9489f26;p=php - New test --- diff --git a/Zend/tests/bug48693.phpt b/Zend/tests/bug48693.phpt new file mode 100644 index 0000000000..e574346029 --- /dev/null +++ b/Zend/tests/bug48693.phpt @@ -0,0 +1,28 @@ +--TEST-- +Bug #48693 (Double declaration of __lambda_func when lambda wrongly formatted) +--FILE-- + +--EXPECTF-- +Parse error: syntax error, unexpected '}' in %s(%d) : runtime-created function on line 1 + +Parse error: syntax error, unexpected $end in %s(%d) : runtime-created function on line 1 +bool(false) +int(2) +bool(false) +int(3) +bool(true)