Skip to content

Commit 70699d7

Browse files
committed
Update NEWs and add a test
1 parent 19be8b6 commit 70699d7

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

NEWS

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ PHP NEWS
66
. Fixed bug #67308 (Serialize of DateTime truncates fractions of second).
77
(Adam)
88

9+
- OPCache:
10+
. Fixed issue #183 (TMP_VAR is not only used once). (Dmitry, Laruence)
11+
912
?? ??? 2014, PHP 5.5.13
1013

1114
- CLI server:

ext/opcache/tests/issue0183.phpt

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
--TEST--
2+
ISSUE #183 (TMP_VAR is not only used once)
3+
--INI--
4+
opcache.enable=1
5+
opcache.enable_cli=1
6+
opcache.optimization_level=-1
7+
--SKIPIF--
8+
<?php require_once('skipif.inc'); ?>
9+
<?php if (PHP_OS != "Linux") die("skip, only for linux"); ?>
10+
--FILE--
11+
<?php
12+
13+
switch (PHP_OS) {
14+
case "Windows":
15+
break;
16+
case "Darwin":
17+
break;
18+
case "Linux":
19+
echo "okey";
20+
break;
21+
default:
22+
break;
23+
}
24+
--EXPECT--
25+
okey

0 commit comments

Comments
 (0)