Skip to content

Build 错误,str_contains(): Argument #1 ($haystack) must be of type string, false given #845

@xin017

Description

@xin017

build --build-cli --build-micro "curl,dom,ftp,gd,iconv,libxml,mbstring,openssl,pdo,pdo_sqlite,phar,simplexml,sockets,sqlite3,xml,zlib" --debug

Type 'nmake' to build PHP
[03:14:54] [D] Replacing file with type[1]: C:\spc-build\static-php-cli\source/php-src/TSRM/TSRM.h

TypeError

str_contains(): Argument #1 ($haystack) must be of type string, false given

at src\SPC\builder\extension\curl.php:65
61▕ public function patchBeforeMake(): bool
62▕ {
63▕ $patched = parent::patchBeforeMake();
64▕ $extra_libs = getenv('SPC_EXTRA_LIBS');
➜ 65▕ if ($this->builder instanceof WindowsBuilder && !str_contains($extra_libs, 'secur32.lib')) {
66▕ $extra_libs .= ' secur32.lib';
67▕ putenv('SPC_EXTRA_LIBS=' . trim($extra_libs));
68▕ return true;
69▕ }

1 src\SPC\builder\extension\curl.php:65

2 src\SPC\store\SourcePatcher.php:283
SPC\builder\extension\curl::patchBeforeMake()

[03:14:54] [C] You can report this exception to static-php-cli GitHub repo.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions