Skip to content

Commit

Permalink
xfail constant redefinition tests
Browse files Browse the repository at this point in the history
See <#177>.
  • Loading branch information
cmb69 committed Aug 3, 2024
1 parent d1d588a commit 83965ff
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/017.phpt
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
--TEST--
uopz_redefine
--SKIPIF--
<?php
uopz_allow_exit(true);
$protect = extension_loaded("Zend OPcache")
&& ($conf = opcache_get_configuration()["directives"])
&& array_key_exists("opcache.protect_memory", $conf)
&& $conf["opcache.protect_memory"];
if ($protect) die("xfail known issues with constant redefinition; see #151");
?>
--EXTENSIONS--
uopz
--INI--
Expand Down
9 changes: 9 additions & 0 deletions tests/018.phpt
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
--TEST--
uopz_undefine
--SKIPIF--
<?php
uopz_allow_exit(true);
$protect = extension_loaded("Zend OPcache")
&& ($conf = opcache_get_configuration()["directives"])
&& array_key_exists("opcache.protect_memory", $conf)
&& $conf["opcache.protect_memory"];
if ($protect) die("xfail known issues with constant redefinition; see #151");
?>
--EXTENSIONS--
uopz
--INI--
Expand Down
6 changes: 6 additions & 0 deletions tests/bugs/0006-uopz-opcache-const-subst.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ uopz
uopz_allow_exit(true);
$opcache = ini_get("opcache.enable_cli");
if ($opcache === false || $opcache === "0") die("skip opcache required");

$protect = extension_loaded("Zend OPcache")
&& ($conf = opcache_get_configuration()["directives"])
&& array_key_exists("opcache.protect_memory", $conf)
&& $conf["opcache.protect_memory"];
if ($protect) die("xfail known issues with constant redefinition; see #151");
?>
--INI--
uopz.disable=0
Expand Down
9 changes: 9 additions & 0 deletions tests/bugs/gh53.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@
github #53
--DESCRIPTION--
uopz_redefine() refuses to redefine a constant as array
--SKIPIF--
<?php
uopz_allow_exit(true);
$protect = extension_loaded("Zend OPcache")
&& ($conf = opcache_get_configuration()["directives"])
&& array_key_exists("opcache.protect_memory", $conf)
&& $conf["opcache.protect_memory"];
if ($protect) die("xfail known issues with constant redefinition; see #151");
?>
--EXTENSIONS--
uopz
--INI--
Expand Down

0 comments on commit 83965ff

Please sign in to comment.