amphp / ext-uv

Other
192 stars 28 forks source link

The instructions for windows needs to be clarified. #76

Closed TheTechsTech closed 4 years ago

TheTechsTech commented 4 years ago

I have edited php.ini to load the extenesion, and executed php -v and php -m and now get the following:

The procedure entry point zend_wrong_callback_error@@32 could not be located in dynamic link library php7.dll

PHP Warning:  PHP Startup: Unable to load dynamic library 'uv' (tried: ext\uv (The specified module could not be found.), ext\php_uv.dll (The specified pro
cedure could not be found.)) in Unknown on line 0
PHP 7.2.26 (cli) (built: Dec 17 2019 15:29:10) ( ZTS MSVC15 (Visual C++ 2017) x64 )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
    with Xdebug v2.9.0, Copyright (c) 2002-2019, by Derick Rethans

C:\Users\Lawrence>php -m
PHP Warning:  PHP Startup: Unable to load dynamic library 'uv' (tried: ext\uv (The specified module could not be found.), ext\php_uv.dll (The specified pro
cedure could not be found.)) in Unknown on line 0
[PHP Modules]
bcmath
calendar
Core
ctype
curl
date
dom
filter
gd
hash
iconv
json
libxml
mbstring
mongodb
mysqli
mysqlnd
odbc
openssl
pcre
PDO
pdo_mysql
PDO_ODBC
pdo_pgsql
pdo_sqlite
pdo_sqlsrv
pgsql
Phar
readline
Reflection
session
SimpleXML
sockets
SPL
sqlite3
sqlsrv
standard
tokenizer
wddx
xdebug
xml
xmlreader
xmlwriter
zip
zlib

[Zend Modules]
Xdebug

PHP Warning:  PHP Startup: Unable to load dynamic library 'php_uv.dll' (tried: ext\php_uv.dll (The specified procedure could not be found.), ext\php_php_uv
.dll.dll (The specified module could not be found.)) in Unknown on line 0
PHP 7.2.26 (cli) (built: Dec 17 2019 15:29:10) ( ZTS MSVC15 (Visual C++ 2017) x64 )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
    with Xdebug v2.9.0, Copyright (c) 2002-2019, by Derick Rethans
TheTechsTech commented 4 years ago

After moving libuv.dll, to same directory as PHP binary in, the previous error/warning does not show. The readme needs updating.

amiga-500 commented 3 years ago

Sadly, ur recommendation doesn't work for me in Windows 10. :(
I am using PHP 7.4.16

TheTechsTech commented 3 years ago

Strange, I'm using windows 10 also. There are 4 different versions *-nts-vc15-x64.zip, *-nts-vc15-x86.zip, *-ts-vc15-x64.zip, *-ts-vc15-x86.zip, you need both *.dll files, and edit phpi.ini.

On Thu, Mar 25, 2021 at 6:41 AM Kimberly @.***> wrote:

Sadly, ur recommendation doesn't work for me in Windows 10. :( I am using PHP 7.4.16

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/amphp/ext-uv/issues/76#issuecomment-806544002, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHDHVFJJVQG6FY53PMZHRQDTFMHM5ANCNFSM4J7L4UQA .