Skip to content

Commit e055e12

Browse files
authored
[skip ci] Mark test as XLEAK due to LSAN bug (#12018)
This is due to apparently some combination of glibc and Clang 14 which we are unfortunately hitting
1 parent 75f5b22 commit e055e12

File tree

1 file changed

+22
-8
lines changed

1 file changed

+22
-8
lines changed

sapi/cli/tests/ext_loading.phpt

+22-8
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
Extension loading
33
--SKIPIF--
44
<?php
5+
if (getenv('SKIP_ASAN')) {
6+
die('xleak LSAN bug on Clang 14 crashes this test');
7+
}
58
$extDir = ini_get('extension_dir');
69
if (!file_exists($extDir . '/opcache.so') && !file_exists($extDir . '/php_opcache.dll')) {
710
die('skip Opcache shared object not found in extension_dir');
@@ -10,7 +13,6 @@ if (!file_exists($extDir . '/opcache.so') && !file_exists($extDir . '/php_opcach
1013
--FILE--
1114
<?php
1215

13-
1416
function loadZendExt($extension) {
1517
$cmd = [
1618
PHP_BINARY, '-n',
@@ -19,7 +21,7 @@ function loadZendExt($extension) {
1921
'-r', 'echo "Done.";'
2022
];
2123
$proc = proc_open($cmd, [['null'], ['pipe', 'w'], ['redirect', 1]], $pipes);
22-
echo "Output: ", stream_get_contents($pipes[1]), "\n";
24+
echo "#####OUTPUT_BEGIN####\n", stream_get_contents($pipes[1]), "\n######OUTPUT_END#####\n";
2325
}
2426

2527
echo "Only extension name:\n";
@@ -47,19 +49,31 @@ loadZendExt($path);
4749
?>
4850
--EXPECTF--
4951
Only extension name:
50-
Output: Done.
52+
#####OUTPUT_BEGIN####
53+
Done.
54+
######OUTPUT_END#####
5155
Name with file extension:
52-
Output: Done.
56+
#####OUTPUT_BEGIN####
57+
Done.
58+
######OUTPUT_END#####
5359
Absolute path:
54-
Output: Done.
60+
#####OUTPUT_BEGIN####
61+
Done.
62+
######OUTPUT_END#####
5563
Unknown extension name (unknown):
56-
Output:
64+
#####OUTPUT_BEGIN####
65+
5766
Warning: Failed loading Zend extension 'unknown_ext' (tried: %s) in Unknown on line 0
5867
Done.
68+
######OUTPUT_END#####
5969
Name with file extension (unknown):
60-
Output:
70+
#####OUTPUT_BEGIN####
71+
6172
Warning: Failed loading Zend extension '%Sunknown_ext%S' (tried: %s) in Unknown on line 0
6273
Done.
74+
######OUTPUT_END#####
6375
Absolute path (unknown):
64-
Output: Failed loading %s
76+
#####OUTPUT_BEGIN####
77+
Failed loading %s
6578
Done.
79+
######OUTPUT_END#####

0 commit comments

Comments
 (0)