mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Merge branch 'PHP-8.3'
* PHP-8.3: Skip dl() tests on ASAN
This commit is contained in:
commit
da0e0570a3
6 changed files with 15 additions and 0 deletions
|
@ -12,3 +12,7 @@ if (PHP_OS_FAMILY === 'Windows') {
|
||||||
if (!file_exists($path)) {
|
if (!file_exists($path)) {
|
||||||
die(sprintf('skip dl_test extension is not built (tried %s)', $path));
|
die(sprintf('skip dl_test extension is not built (tried %s)', $path));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (getenv('SKIP_ASAN')) {
|
||||||
|
die('xleak dl() crashes LSan');
|
||||||
|
}
|
||||||
|
|
|
@ -8,6 +8,10 @@ opcache.enable_cli=1
|
||||||
disable_functions=dl
|
disable_functions=dl
|
||||||
--EXTENSIONS--
|
--EXTENSIONS--
|
||||||
opcache
|
opcache
|
||||||
|
--SKIPIF--
|
||||||
|
<?php
|
||||||
|
if (getenv('SKIP_ASAN')) die('xleak dl() crashes LSan');
|
||||||
|
?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
var_dump(is_callable("dl"));
|
var_dump(is_callable("dl"));
|
||||||
|
|
|
@ -9,6 +9,7 @@ $enabled_sapi = array('cgi-fcgi', 'cli', 'embed', 'fpm');
|
||||||
if (!in_array(php_sapi_name(), $enabled_sapi)) {
|
if (!in_array(php_sapi_name(), $enabled_sapi)) {
|
||||||
die('skip dl() is not enabled for ' . php_sapi_name());
|
die('skip dl() is not enabled for ' . php_sapi_name());
|
||||||
}
|
}
|
||||||
|
if (getenv('SKIP_ASAN')) die('xleak dl() crashes LSan');
|
||||||
?>
|
?>
|
||||||
--INI--
|
--INI--
|
||||||
enable_dl=0
|
enable_dl=0
|
||||||
|
|
|
@ -6,6 +6,7 @@ $enabled_sapi = array('cgi-fcgi', 'cli', 'embed', 'fpm');
|
||||||
if (!in_array(php_sapi_name(), $enabled_sapi)) {
|
if (!in_array(php_sapi_name(), $enabled_sapi)) {
|
||||||
die('skip dl() is not enabled for ' . php_sapi_name());
|
die('skip dl() is not enabled for ' . php_sapi_name());
|
||||||
}
|
}
|
||||||
|
if (getenv('SKIP_ASAN')) die('xleak dl() crashes LSan');
|
||||||
?>
|
?>
|
||||||
--INI--
|
--INI--
|
||||||
enable_dl=1
|
enable_dl=1
|
||||||
|
|
|
@ -9,6 +9,7 @@ $enabled_sapi = array('cgi-fcgi', 'cli', 'embed', 'fpm');
|
||||||
if (!in_array(php_sapi_name(), $enabled_sapi)) {
|
if (!in_array(php_sapi_name(), $enabled_sapi)) {
|
||||||
die('skip dl() is not enabled for ' . php_sapi_name());
|
die('skip dl() is not enabled for ' . php_sapi_name());
|
||||||
}
|
}
|
||||||
|
if (getenv('SKIP_ASAN')) die('xleak dl() crashes LSan');
|
||||||
?>
|
?>
|
||||||
--INI--
|
--INI--
|
||||||
enable_dl=1
|
enable_dl=1
|
||||||
|
|
|
@ -2,6 +2,10 @@
|
||||||
dl() segfaults when module is already loaded
|
dl() segfaults when module is already loaded
|
||||||
--EXTENSIONS--
|
--EXTENSIONS--
|
||||||
dl_test
|
dl_test
|
||||||
|
--SKIPIF--
|
||||||
|
<?php
|
||||||
|
if (getenv('SKIP_ASAN')) die('xleak dl() crashes LSan');
|
||||||
|
?>
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
dl("dl_test");
|
dl("dl_test");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue