We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f74d58 commit d533a05Copy full SHA for d533a05
src/SPC/builder/unix/UnixBuilderBase.php
@@ -51,15 +51,15 @@ public function getDynamicExportSymbolsArgument(): ?string
51
52
if ($out = shell_exec('nm -g --defined-only -P ' . escapeshellarg($libphp) . ' 2>/dev/null')) {
53
foreach (preg_split('/\R/', trim($out)) as $line) {
54
- if ($line === '' || str_ends_with($line, '.o:')) {
+ if ($line === '' || str_ends_with($line, '.o:') || str_ends_with($line, '.o]:')) {
55
continue;
56
}
57
$name = strtok($line, " \t");
58
if (!$name) {
59
60
61
$name = preg_replace('/@.*$/', '', $name);
62
- if ($name !== '' && $name !== false && !str_starts_with($name, $libphp)) {
+ if ($name !== '' && $name !== false) {
63
$defined[] = $name;
64
65
0 commit comments