com php-src: Update NEWs and add a test: NEWS ext/opcache/tests/issue0183.phpt
| From: | Xinchen Hui | Date: | Mon, 26 May 2014 07:40:26 +0000 |
| Subject: | com php-src: Update NEWs and add a test: NEWS ext/opcache/tests/issue0183.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-78540@lists.php.net to get a copy of this message | ||
Commit: 70699d7f68275b84d79f8b924b26c0a3f659a75b
Author: Xinchen Hui <laruence@php.net> Mon, 26 May 2014 15:40:26 +0800
Parents: 19be8b676cd8cc16af35dd47b8f74f750f40f694
Branches: PHP-5.5 PHP-5.6 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=70699d7f68275b84d79f8b924b26c0a3f659a75b
Log:
Update NEWs and add a test
Changed paths:
M NEWS
A ext/opcache/tests/issue0183.phpt
Diff:
diff --git a/NEWS b/NEWS
index df234c0..73be964 100644
--- a/NEWS
+++ b/NEWS
@@ -6,6 +6,9 @@ PHP NEWS
. Fixed bug #67308 (Serialize of DateTime truncates fractions of second).
(Adam)
+- OPCache:
+ . Fixed issue #183 (TMP_VAR is not only used once). (Dmitry, Laruence)
+
?? ??? 2014, PHP 5.5.13
- CLI server:
diff --git a/ext/opcache/tests/issue0183.phpt b/ext/opcache/tests/issue0183.phpt
new file mode 100644
index 0000000..9e18f6d
--- /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