admin@DESKTOP-H99UP7S MINGW64 /d/phpstudy_pro/Extensions/php/php8.0.2nts
$ ./php.exe -m
Warning: PHP Startup: Unable to load dynamic library ‘php_event.dll’ (tried: D:\phpstudy_pro\Extensions\php\php8.0.2nts\ext\php_event.dll (找不到指定的模块。), D:\phpstudy_pro\Extensions\php\php8.0.2nts\ext\php_php_event.dll.dll (找不到指定的模块。)) in Unknown on line 0
实际上不是路径问题,而是需要先在php.ini中开启sockets模块,并且需要优先于event模块之前加载。
extension=sockets extension=php_event.dll
下载地址:https://pecl.php.net/package/event/3.1.3/windows
注意64位系统下载x64版的,下32位加载会提示 不是有效的 Win32 应用程序。
资料:https://stackoverflow.com/questions/52585012/cannot-load-phps-event-extension-php-event-dll-on-windows
原创文章,转载请注明。本文链接地址: https://www.rootop.org/pages/5494.html