summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorXinchen Hui <laruence@php.net>2014-05-26 15:40:26 +0800
committerXinchen Hui <laruence@php.net>2014-05-26 15:40:26 +0800
commit70699d7f68275b84d79f8b924b26c0a3f659a75b (patch)
tree3d69d9ded7ac56bb1b296dcb454432710625672d /ext
parent19be8b676cd8cc16af35dd47b8f74f750f40f694 (diff)
downloadphp-git-70699d7f68275b84d79f8b924b26c0a3f659a75b.tar.gz
Update NEWs and add a test
Diffstat (limited to 'ext')
-rw-r--r--ext/opcache/tests/issue0183.phpt25
1 files changed, 25 insertions, 0 deletions
diff --git a/ext/opcache/tests/issue0183.phpt b/ext/opcache/tests/issue0183.phpt
new file mode 100644
index 0000000000..9e18f6d2e8
--- /dev/null
+++ b/ext/opcache/tests/issue0183.phpt
@@ -0,0 +1,25 @@
+--TEST--
+ISSUE #183 (TMP_VAR is not only used once)
+--INI--
+opcache.enable=1
+opcache.enable_cli=1
+opcache.optimization_level=-1
+--SKIPIF--
+<?php require_once('skipif.inc'); ?>
+<?php if (PHP_OS != "Linux") die("skip, only for linux"); ?>
+--FILE--
+<?php
+
+switch (PHP_OS) {
+ case "Windows":
+ break;
+ case "Darwin":
+ break;
+ case "Linux":
+ echo "okey";
+ break;
+ default:
+ break;
+}
+--EXPECT--
+okey