Skip to content

Commit c29db11

Browse files
committed
fix: repeat test require cache reset
1 parent 3f0ebc4 commit c29db11

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

ext/opcache/tests/static_cache_attribute_publish_userland_outside_lock_001.phpt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ OPcache\StableCache::getInstance('default')->clear();
5555
StablePublishTarget::$value = new ReentrantPublishPayload('stable');
5656
var_dump(OPcache\StableCache::getInstance('default')->fetch('publish_inner_stable'));
5757

58+
/* --repeat from reusing attribute-backed state from this run, require reset */
59+
opcache_reset();
60+
5861
?>
5962
--EXPECT--
6063
serialize-volatile

ext/opcache/tests/static_cache_explicit_cache_store_type_001.phpt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ try {
9595
echo $e->getMessage(), "\n";
9696
}
9797

98+
/* --repeat from reusing attribute-backed state from this run, require reset */
99+
opcache_reset();
100+
98101
?>
99102
--EXPECT--
100103
NotFound,Scalar,SharedGraph,OPcacheSerialized,PHPSerialized

0 commit comments

Comments
 (0)