diff --git a/Zend/tests/bug74093.phpt b/Zend/tests/bug74093.phpt index fea0d5ea9d03..e1c08cb21941 100644 --- a/Zend/tests/bug74093.phpt +++ b/Zend/tests/bug74093.phpt @@ -3,10 +3,10 @@ Bug #74093 (Maximum execution time of n+2 seconds exceed not written in error_lo --FLAKY-- --SKIPIF-- --INI-- memory_limit=1G diff --git a/Zend/tests/new_oom.phpt b/Zend/tests/new_oom.phpt index 6d4ba3d760b4..1be334ad8f51 100644 --- a/Zend/tests/new_oom.phpt +++ b/Zend/tests/new_oom.phpt @@ -2,8 +2,8 @@ Test OOM on new of each class --SKIPIF-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- = 2.11'); +skipif(xml_uses_expat(), 'test is for libxml'); +skipif(LIBXML_VERSION < 21100, 'libxml2 test variant for version >= 2.11'); ?> --FILE-- = 21100) die('skip libxml2 test variant for version < 2.11'); +skipif(xml_uses_expat(), 'test is for libxml'); +skipif(LIBXML_VERSION >= 21100, 'libxml2 test variant for version < 2.11'); ?> --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- --FILE-- '; + private bool $enable; private bool $keepFile; @@ -3893,12 +3896,12 @@ public function checkSkip(array $command, string $code, string $checkFile, strin if (isset($this->skips[$key][$code])) { $this->hits++; if ($this->keepFile) { - save_text($checkFile, $code, $tempFile); + save_text($checkFile, self::HELPERS . $code, $tempFile); } return $this->skips[$key][$code]; } - save_text($checkFile, $code, $tempFile); + save_text($checkFile, self::HELPERS . $code, $tempFile); $env['TEST_PHP_EVALUATING_SKIPIF'] = '1'; $command[] = $checkFile; $result = trim(system_with_timeout($command, $env));