mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 12:54:52 +08:00
dont use 32 bit objects
This commit is contained in:
parent
e019b65ef7
commit
3070376fb6
@ -251,7 +251,7 @@ class SystemUtil
|
|||||||
foreach ($objects as $obj) {
|
foreach ($objects as $obj) {
|
||||||
$located = null;
|
$located = null;
|
||||||
foreach ($paths as $base) {
|
foreach ($paths as $base) {
|
||||||
$output = shell_exec("find {$base} -name {$obj} -print -quit 2>/dev/null");
|
$output = shell_exec("find {$base} -name {$obj} 2>/dev/null | grep -v '/32/' | head -n 1");
|
||||||
$line = trim((string) $output);
|
$line = trim((string) $output);
|
||||||
if ($line !== '') {
|
if ($line !== '') {
|
||||||
$located = $line;
|
$located = $line;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user