summaryrefslogtreecommitdiff
path: root/ext/opcache/tests/bug66440.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/opcache/tests/bug66440.phpt')
-rw-r--r--ext/opcache/tests/bug66440.phpt16
1 files changed, 16 insertions, 0 deletions
diff --git a/ext/opcache/tests/bug66440.phpt b/ext/opcache/tests/bug66440.phpt
new file mode 100644
index 0000000000..b546e32b3c
--- /dev/null
+++ b/ext/opcache/tests/bug66440.phpt
@@ -0,0 +1,16 @@
+--TEST--
+Bug #66440 (Optimisation of conditional JMPs based on pre-evaluate constant function calls)
+--INI--
+opcache.enable=1
+opcache.enable_cli=1
+opcache.optimization_level=-1
+opcache.file_update_protection=0
+--SKIPIF--
+<?php require_once('skipif.inc'); ?>
+--FILE--
+<?php
+if(constant('PHP_BINARY')) {
+ echo "OK\n";
+}
+--EXPECT--
+OK