Skip to content

Commit 4dbcce6

Browse files
committed
DEBUG verify get_loaded_extensions issue
1 parent 61077de commit 4dbcce6

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
@@ -887,14 +887,16 @@ function write_information(): void
887887
continue;
888888
}
889889
$ext = $matches[1];
890-
if (!in_array($ext, $exts) && !extension_loaded($ext) && @dl($file)) {
890+
if (!in_array($ext, $exts) && dl($file)) {
891891
$exts[] = $ext;
892892
}
893893
}
894894
echo implode(',', $exts);
895895
?>
896896
PHP);
897897
$exts_to_test = explode(',', shell_exec("$php $pass_options $info_params $no_file_cache \"$info_file\""));
898+
var_dump('from dl...');
899+
print_r($exts_to_test);
898900
// check for extensions that need special handling and regenerate
899901
$info_params_ex = [
900902
'session' => ['session.auto_start=0'],
@@ -1280,10 +1282,10 @@ function run_all_tests(array $test_files, array $env, $redir_tested = null): voi
12801282
}
12811283

12821284
/* Ignore -jN if there is only one file to analyze. */
1283-
if ($workers !== null && count($test_files) > 1 && !$workerID) {
1284-
run_all_tests_parallel($test_files, $env, $redir_tested);
1285-
return;
1286-
}
1285+
// if ($workers !== null && count($test_files) > 1 && !$workerID) {
1286+
// run_all_tests_parallel($test_files, $env, $redir_tested);
1287+
// return;
1288+
// }
12871289

12881290
foreach ($test_files as $name) {
12891291
if (is_array($name)) {
@@ -3662,10 +3664,11 @@ public function getExtensions(string $php): array
36623664
}
36633665

36643666
$extDir = shell_exec("$php -d display_errors=0 -r \"echo ini_get('extension_dir');\"");
3665-
$extensions = explode(",", shell_exec("$php -d display_errors=0 -r \"echo implode(',', get_loaded_extensions());\""));
3667+
$extensions = explode(",", shell_exec("$php -d display_errors=1 -d display_startup_errors=1 -r \"echo implode(',', get_loaded_extensions());\""));
36663668
if (in_array('zend opcache', $extensions)) {
36673669
$extensions[] = 'opcache';
36683670
}
3671+
print_r($extensions);
36693672
$extensions = array_map('strtolower', $extensions);
36703673

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

0 commit comments

Comments
 (0)