Skip to content

Commit 75bc344

Browse files
committed
Add missing SKIPIFs
All these tests are meant to run with OPcache available, and some will even fail inevitably without it, so we add OPcache as SKIPIF requirement.
1 parent be559e6 commit 75bc344

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+98
-0
lines changed

ext/opcache/tests/block_pass_001.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
--TEST--
22
Block pass: Bugs in BOOL/QM_ASSIGN elision
3+
--SKIPIF--
4+
<?php require_once('skipif.inc'); ?>
35
--FILE--
46
<?php
57
(bool) (true ? $x : $y);

ext/opcache/tests/block_removal_with_duplicate_successors.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
--TEST--
22
Removing a block that has duplicate successors
3+
--SKIPIF--
4+
<?php require_once('skipif.inc'); ?>
35
--FILE--
46
<?php
57
function test($foo) {

ext/opcache/tests/bool_cp_in_pass1.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
--TEST--
22
Incorrect constant propagation on BOOL in pass 1
3+
--SKIPIF--
4+
<?php require_once('skipif.inc'); ?>
35
--FILE--
46
<?php
57
function test($foo) {

ext/opcache/tests/bug70423.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ open_basedir=.
55
opcache.enabled=1
66
opcache.enable_cli=1
77
opcache.log_verbosity_level=2
8+
--SKIPIF--
9+
<?php require_once('skipif.inc'); ?>
810
--FILE--
911
<?php
1012

ext/opcache/tests/bug72762.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
--TEST--
22
Bug #72762: Infinite loop while parsing a file with opcache enabled
3+
--SKIPIF--
4+
<?php require_once('skipif.inc'); ?>
35
--FILE--
46
<?php
57

ext/opcache/tests/bug73654.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
--TEST--
22
Bug #73654: Segmentation fault in zend_call_function
3+
--SKIPIF--
4+
<?php require_once('skipif.inc'); ?>
35
--FILE--
46
<?php
57
echo xyz();

ext/opcache/tests/bug73668.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
--TEST--
22
Bug #73668: "SIGFPE Arithmetic exception" in opcache when divide by minus 1
3+
--SKIPIF--
4+
<?php require_once('skipif.inc'); ?>
35
--FILE--
46
<?php
57
$a/-1;

ext/opcache/tests/bug73746.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
--TEST--
22
Bug #73746 (Method that returns string returns UNKNOWN:0 instead)
3+
--SKIPIF--
4+
<?php require_once('skipif.inc'); ?>
35
--FILE--
46
<?php
57
namespace Core\Bundle\Service\Property\Room\Rooms;

ext/opcache/tests/bug73789.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
--TEST--
22
Bug #73789 (Strange behavior of class constants in switch/case block)
3+
--SKIPIF--
4+
<?php require_once('skipif.inc'); ?>
35
--FILE--
46
<?php
57
class Lexer

ext/opcache/tests/bug73847.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
--TEST--
22
Bug #73847: Recursion when a variable is redefined as array
3+
--SKIPIF--
4+
<?php require_once('skipif.inc'); ?>
35
--FILE--
46
<?php
57
function test() {

ext/opcache/tests/bug74431.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ Bug #74431 - foreach infinite loop
44
opcache.enable=1
55
opcache.enable_cli=1
66
opcache.optimization_level=0xffffffff
7+
--SKIPIF--
8+
<?php require_once('skipif.inc'); ?>
79
--FILE--
810
<?php
911
function test(){

ext/opcache/tests/bug74442.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
Bug #74442: Opcached version produces a nested array
33
--CREDITS--
44
Eric Norris <[email protected]>
5+
--SKIPIF--
6+
<?php require_once('skipif.inc'); ?>
57
--FILE--
68
<?php
79
class Schema_Base {

ext/opcache/tests/bug74623.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
--TEST--
22
Bug #74623: Infinite loop in type inference when using HTMLPurifier
3+
--SKIPIF--
4+
<?php require_once('skipif.inc'); ?>
35
--FILE--
46
<?php
57

ext/opcache/tests/bug75255.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
--TEST--
22
Bug #75255 (Request hangs and not finish)
3+
--SKIPIF--
4+
<?php require_once('skipif.inc'); ?>
35
--FILE--
46
<?php
57
function generatePlanImage() {

ext/opcache/tests/bug75570.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
--TEST--
22
Bug #75570 ("Narrowing occurred during type inference" error)
3+
--SKIPIF--
4+
<?php require_once('skipif.inc'); ?>
35
--FILE--
46
<?php
57
function renderRawGraph(array $parents) {

ext/opcache/tests/bug75608.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
--TEST--
22
Bug #75608 ("Narrowing occurred during type inference" error)
3+
--SKIPIF--
4+
<?php require_once('skipif.inc'); ?>
35
--FILE--
46
<?php
57
class ReactionRatingService

ext/opcache/tests/bug75893.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ Bug #75893: file_get_contents $http_response_header variable bugged with opcache
33
--INI--
44
opcache.enable_cli=1
55
track_errors=1
6+
--SKIPIF--
7+
<?php require_once('skipif.inc'); ?>
68
--FILE--
79
<?php
810

ext/opcache/tests/bug75938.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
--TEST--
22
Bug #75938: Modulus value not stored in variable
3+
--SKIPIF--
4+
<?php require_once('skipif.inc'); ?>
35
--FILE--
46
<?php
57
function borken($columns) {

ext/opcache/tests/bug75969.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ Bug #75969: Assertion failure in live range DCE due to block pass misoptimizatio
33
--INI--
44
opcache.enable_cli=1
55
opcache.optimization_level=-1
6+
--SKIPIF--
7+
<?php require_once('skipif.inc'); ?>
68
--FILE--
79
<?php
810

ext/opcache/tests/bug76074.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
--TEST--
22
Bug #76074 (opcache corrupts variable in for-loop)
3+
--SKIPIF--
4+
<?php require_once('skipif.inc'); ?>
35
--FILE--
46
<?php
57

ext/opcache/tests/bug76275.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ Bug #76275: Assertion failure in file cache when unserializing empty try_catch_a
44
opcache.enabled=1
55
opcache.enable_cli=1
66
opcache.file_cache={TMP}
7+
--SKIPIF--
8+
<?php require_once('skipif.inc'); ?>
79
--FILE--
810
<?php
911

ext/opcache/tests/bug76281.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
--TEST--
22
Bug #76281: Opcache causes incorrect "undefined variable" errors
3+
--SKIPIF--
4+
<?php require_once('skipif.inc'); ?>
35
--FILE--
46
<?php
57

ext/opcache/tests/bug76796.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ opcache.enable=1
55
opcache.enable_cli=1
66
opcache.optimization_level=-1
77
disable_functions=strpos
8+
--SKIPIF--
9+
<?php require_once('skipif.inc'); ?>
810
--FILE--
911
<?php
1012

ext/opcache/tests/bug77058.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
--TEST--
22
Bug #77058: Type inference in opcache causes side effects
3+
--SKIPIF--
4+
<?php require_once('skipif.inc'); ?>
35
--FILE--
46
<?php
57

ext/opcache/tests/bug77092.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ Bug #77092: array_diff_key() - segmentation fault
33
--INI--
44
opcache.enable_cli=1
55
opcache.optimization_level=-1
6+
--SKIPIF--
7+
<?php require_once('skipif.inc'); ?>
68
--FILE--
79
<?php
810
function test() {

ext/opcache/tests/bug77215.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ Bug #77215: CFG assertion failure on multiple finalizing switch frees in one blo
33
--INI--
44
opcache.enable_cli=1
55
opcache.optimization_level=-1
6+
--SKIPIF--
7+
<?php require_once('skipif.inc'); ?>
68
--FILE--
79
<?php
810

ext/opcache/tests/bug77691.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
--TEST--
22
Bug #77691: Opcache passes wrong value for inline array push assignments
3+
--SKIPIF--
4+
<?php require_once('skipif.inc'); ?>
35
--FILE--
46
<?php
57

ext/opcache/tests/bug77743.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
--TEST--
22
Bug #77743: Incorrect pi node insertion for jmpznz with identical successors
3+
--SKIPIF--
4+
<?php require_once('skipif.inc'); ?>
35
--FILE--
46
<?php
57

ext/opcache/tests/bug78106.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
--TEST--
22
Bug #78106: Path resolution fails if opcache disabled during request
3+
--SKIPIF--
4+
<?php require_once('skipif.inc'); ?>
35
--FILE--
46
<?php
57

ext/opcache/tests/bug78185.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ opcache.enable_cli=1
55
opcache.optimization_level=-1
66
opcache.file_cache={PWD}
77
opcache.file_cache_only=1
8+
--SKIPIF--
9+
<?php require_once('skipif.inc'); ?>
810
--FILE--
911
<?php
1012
if (substr(PHP_OS, 0, 3) !== 'WIN') {

ext/opcache/tests/invalid_array_key_type.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
--TEST--
22
Don't add array value type is key type is illegal
3+
--SKIPIF--
4+
<?php require_once('skipif.inc'); ?>
35
--FILE--
46
<?php
57

ext/opcache/tests/jmpz_jmp_elim.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
--TEST--
22
Edge-cases in elimination of JMPZ JMP with same target
3+
--SKIPIF--
4+
<?php require_once('skipif.inc'); ?>
35
--FILE--
46
<?php
57

ext/opcache/tests/method_call_on_literal.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
--TEST--
22
Literal compaction should take method calls on literals into account
3+
--SKIPIF--
4+
<?php require_once('skipif.inc'); ?>
35
--FILE--
46
<?php
57

ext/opcache/tests/neg_range_inference.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
--TEST--
22
Incorrect negative range inference
3+
--SKIPIF--
4+
<?php require_once('skipif.inc'); ?>
35
--FILE--
46
<?php
57

ext/opcache/tests/optimize_func_calls_001.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
--TEST--
22
Don't create FETCH_DIM_R with UNUSED op2
3+
--SKIPIF--
4+
<?php require_once('skipif.inc'); ?>
35
--FILE--
46
<?php
57

ext/opcache/tests/send_unpack_empty_array.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
--TEST--
22
Type inference of SEND_UNPACK with empty array
3+
--SKIPIF--
4+
<?php require_once('skipif.inc'); ?>
35
--FILE--
46
<?php
57
function test() {

ext/opcache/tests/ssa_bug_001.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
--TEST--
22
SSA constrution for CFG with unreachable basic blocks
3+
--SKIPIF--
4+
<?php require_once('skipif.inc'); ?>
35
--FILE--
46
<?php
57
class X {

ext/opcache/tests/ssa_bug_002.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
--TEST--
22
Incorrect NOP removal on jump to NOP
3+
--SKIPIF--
4+
<?php require_once('skipif.inc'); ?>
35
--FILE--
46
<?php
57

ext/opcache/tests/ssa_bug_003.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
--TEST--
22
Incorrect elision of return type checks
3+
--SKIPIF--
4+
<?php require_once('skipif.inc'); ?>
35
--FILE--
46
<?php
57

ext/opcache/tests/ssa_bug_004.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
--TEST--
22
Assign elision exception safety: ICALL
3+
--SKIPIF--
4+
<?php require_once('skipif.inc'); ?>
35
--FILE--
46
<?php
57

ext/opcache/tests/ssa_bug_005.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
--TEST--
22
Assign elision exception safety: UCALL
3+
--SKIPIF--
4+
<?php require_once('skipif.inc'); ?>
35
--FILE--
46
<?php
57

ext/opcache/tests/ssa_bug_006.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
--TEST--
22
Incorrect optimization of $i = $i++
3+
--SKIPIF--
4+
<?php require_once('skipif.inc'); ?>
35
--FILE--
46
<?php
57

ext/opcache/tests/ssa_bug_007.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
--TEST--
22
Incorrect CFG/SSA construction for SWITCH with few identical successors
3+
--SKIPIF--
4+
<?php require_once('skipif.inc'); ?>
35
--FILE--
46
<?php
57
function render($properties) {

ext/opcache/tests/ssa_bug_008.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
--TEST--
22
Incorrect CFG/SSA reconstruction
3+
--SKIPIF--
4+
<?php require_once('skipif.inc'); ?>
35
--FILE--
46
<?php
57
if (!is_int($info = gc_collect_cycles()) || ($info < 100)) {

ext/opcache/tests/ssa_bug_009.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
--TEST--
22
Incorrect type inference
3+
--SKIPIF--
4+
<?php require_once('skipif.inc'); ?>
35
--FILE--
46
<?php
57
class PHP_CodeCoverage

ext/opcache/tests/ssa_bug_010.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
--TEST--
22
Wrong assertion
3+
--SKIPIF--
4+
<?php require_once('skipif.inc'); ?>
35
--FILE--
46
<?php
57
function foo($parts, $a, $b) {

ext/opcache/tests/switch_with_coinciding_targets.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
--TEST--
22
Switch where all targets, including default, coincide
3+
--SKIPIF--
4+
<?php require_once('skipif.inc'); ?>
35
--FILE--
46
<?php
57

ext/opcache/tests/verify_return_dfg.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
--TEST--
22
Incorrect liveness computation for verify-return
3+
--SKIPIF--
4+
<?php require_once('skipif.inc'); ?>
35
--FILE--
46
<?php
57
function test($foo): string

0 commit comments

Comments
 (0)