summaryrefslogtreecommitdiff
path: root/ext/opcache/tests/bug695449.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/opcache/tests/bug695449.phpt')
-rw-r--r--ext/opcache/tests/bug695449.phpt18
1 files changed, 18 insertions, 0 deletions
diff --git a/ext/opcache/tests/bug695449.phpt b/ext/opcache/tests/bug695449.phpt
new file mode 100644
index 0000000000..53a143a229
--- /dev/null
+++ b/ext/opcache/tests/bug695449.phpt
@@ -0,0 +1,18 @@
+--TEST--
+Bug #69549 (Memory leak with opcache.optimization_level=0xFFFFFFFF)
+--INI--
+opcache.enable=1
+opcache.enable_cli=1
+opcache.optimization_level=-1
+--SKIPIF--
+<?php require_once('skipif.inc'); ?>
+--FILE--
+<?php
+$a = array(true);
+if($a[0] && false) {
+ echo 'test';
+}
+echo "ok\n";
+?>
+--EXPECT--
+ok