当我在 Windows 上从 laragon 启动 apache 服务器时,我收到此错误:
The procedure entry point nghttp2_option_set_no_rfc9113_leading_and_trailing_ws_validation could not be located in the dynamic link library F:\laragon\bin\php\php-8.3.4-Win32-vs16-x64\ext\php_curl.dll
正如它所说,它无法在
F:\laragon\bin\php\php-8.3.4-Win32-vs16-x64\ext\php_curl.dll
中找到动态链接库。但文件就在那里。
我尝试在 php.ini 文件中设置确切位置,但没有成功。
; The ldap extension must be before curl if OpenSSL 1.0.2 and OpenLDAP is used
; otherwise it results in segfault when unloading after using SASL.
; See https://github.com/php/php-src/issues/8620 for more info.
;extension=ldap
extension=F:\laragon\bin\php\php-8.3.4-Win32-vs16-x64\ext\php_curl.dll
;extension=ffi
;extension=ftp
PHP 8.3.6 版本中包含的 php_curl.dll 文件似乎有问题。要解决此问题,请复制版本 8.1.2 中包含的文件进行替换。文件夹路径为:php-8.3.6-Win32-vs16-x64 xt。