]> granicus.if.org Git - php/commitdiff
Update NEWs and add a test
authorXinchen Hui <laruence@php.net>
Mon, 26 May 2014 07:40:26 +0000 (15:40 +0800)
committerXinchen Hui <laruence@php.net>
Mon, 26 May 2014 07:40:26 +0000 (15:40 +0800)
NEWS
ext/opcache/tests/issue0183.phpt [new file with mode: 0644]

diff --git a/NEWS b/NEWS
index df234c0fede890e6b9459a34b682fe1d9a5863e2..73be964cce57be989fb3199348e5c898fc741134 100644 (file)
--- 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 (file)
index 0000000..9e18f6d
--- /dev/null
@@ -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