Merge branch 'PHP-8.2' into PHP-8.3

* PHP-8.2:
  Skip dl() tests on ASAN
This commit is contained in:
Ilija Tovilo 2023-08-30 22:25:32 +02:00
commit 64ef06d276
No known key found for this signature in database
GPG Key ID: A4F5D403F118200A
6 changed files with 15 additions and 0 deletions

View File

@ -12,3 +12,7 @@ if (PHP_OS_FAMILY === 'Windows') {
if (!file_exists($path)) {
die(sprintf('skip dl_test extension is not built (tried %s)', $path));
}
if (getenv('SKIP_ASAN')) {
die('xleak dl() crashes LSan');
}

View File

@ -8,6 +8,10 @@ opcache.enable_cli=1
disable_functions=dl
--EXTENSIONS--
opcache
--SKIPIF--
<?php
if (getenv('SKIP_ASAN')) die('xleak dl() crashes LSan');
?>
--FILE--
<?php
var_dump(is_callable("dl"));

View File

@ -9,6 +9,7 @@ $enabled_sapi = array('cgi-fcgi', 'cli', 'embed', 'fpm');
if (!in_array(php_sapi_name(), $enabled_sapi)) {
die('skip dl() is not enabled for ' . php_sapi_name());
}
if (getenv('SKIP_ASAN')) die('xleak dl() crashes LSan');
?>
--INI--
enable_dl=0

View File

@ -6,6 +6,7 @@ $enabled_sapi = array('cgi-fcgi', 'cli', 'embed', 'fpm');
if (!in_array(php_sapi_name(), $enabled_sapi)) {
die('skip dl() is not enabled for ' . php_sapi_name());
}
if (getenv('SKIP_ASAN')) die('xleak dl() crashes LSan');
?>
--INI--
enable_dl=1

View File

@ -9,6 +9,7 @@ $enabled_sapi = array('cgi-fcgi', 'cli', 'embed', 'fpm');
if (!in_array(php_sapi_name(), $enabled_sapi)) {
die('skip dl() is not enabled for ' . php_sapi_name());
}
if (getenv('SKIP_ASAN')) die('xleak dl() crashes LSan');
?>
--INI--
enable_dl=1

View File

@ -2,6 +2,10 @@
dl() segfaults when module is already loaded
--EXTENSIONS--
dl_test
--SKIPIF--
<?php
if (getenv('SKIP_ASAN')) die('xleak dl() crashes LSan');
?>
--FILE--
<?php
dl("dl_test");