Skip to content

Commit ffcd710

Browse files
committed
DEBUG verify get_loaded_extensions issue
1 parent 24cb772 commit ffcd710

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

ext/oci8/tests/array_bind_002.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ oci8
55
--FILE--
66
<?php
77

8+
print_r(get_loaded_extensions());
9+
810
require __DIR__.'/connect.inc';
911

1012
$drop = "DROP table bind_test";

run-tests.php

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -888,14 +888,16 @@ function write_information(): void
888888
continue;
889889
}
890890
$ext = $matches[1];
891-
if (!in_array($ext, $exts) && !extension_loaded($ext) && @dl($file)) {
891+
if (!in_array($ext, $exts) && dl($file)) {
892892
$exts[] = $ext;
893893
}
894894
}
895895
echo implode(',', $exts);
896896
?>
897897
PHP);
898898
$exts_to_test = explode(',', `$php $pass_options $info_params $no_file_cache "$info_file"`);
899+
var_dump('from dl...');
900+
print_r($exts_to_test);
899901
// check for extensions that need special handling and regenerate
900902
$info_params_ex = [
901903
'session' => ['session.auto_start=0'],
@@ -1358,10 +1360,10 @@ function run_all_tests(array $test_files, array $env, $redir_tested = null): voi
13581360
}
13591361

13601362
/* Ignore -jN if there is only one file to analyze. */
1361-
if ($workers !== null && count($test_files) > 1 && !$workerID) {
1362-
run_all_tests_parallel($test_files, $env, $redir_tested);
1363-
return;
1364-
}
1363+
// if ($workers !== null && count($test_files) > 1 && !$workerID) {
1364+
// run_all_tests_parallel($test_files, $env, $redir_tested);
1365+
// return;
1366+
// }
13651367

13661368
foreach ($test_files as $name) {
13671369
if (is_array($name)) {
@@ -3743,10 +3745,11 @@ public function getExtensions(string $php): array
37433745
}
37443746

37453747
$extDir = `$php -d display_errors=0 -r "echo ini_get('extension_dir');"`;
3746-
$extensions = explode(",", `$php -d display_errors=0 -r "echo implode(',', get_loaded_extensions());"`);
3748+
$extensions = explode(",", `$php -d display_errors=1 -d display_startup_errors=1 -r "echo implode(',', get_loaded_extensions());"`);
37473749
if (in_array('Zend OPcache', $extensions)) {
37483750
$extensions[] = 'opcache';
37493751
}
3752+
print_r($extensions);
37503753
$extensions = array_map('strtolower', $extensions);
37513754

37523755
$result = [$extDir, $extensions];

0 commit comments

Comments
 (0)