![]() ![]() NOTE: Instead of downloading from PECL, I downloaded the grpc zip from It was a waste of 4 precious hours but I hope this helps someone else. I was able to use the composer command to successfully download the dependencies for cloud-firestore. I ran the regsvr32 /U php_grpc.dll command which uninstalls and reinstalls the DLL i believe (I am not sure if this step made any difference but I am mentioning it here because I had performed this step before calling php -ini)Īfter this, finally php -ini ran without any issues. ![]() So I went to PECL, downloaded the TS version of the grpc plugin for PHP7.1 and pasted the dll file to both system32 and also the ext folder. At this time when I executed php -ini again (I also had php_grpc.dll loaded to ext folder under the XAMPP php folder) I got a new error finally which said that the module being loaded was Non thread safe (NTS) whereas PHP was TS (Thread Safe). Upon execution, I got a message that the DLL was loaded but entry point was not found. I ran a command prompt as Admin and navigated to C:\windows\system32 and executed the command regsvr32 php_grpc.dll (Please note that this does not work without PHP7.dll being present in the same folder - or at least it did not work for me). ![]() ![]() So what I did was to copy both PHP7.dll and php_grpc.dll to system32 and then I tried to install that DLL. I had used dependency walker from to check the dependencies of the php_grpc.dll and found php7.dll as a dependency. Please note that I did not install this downloaded PHP but I noticed it had a php7.dll I thought I'll try that but I could not find an MSI so I downloaded the latest PHP zip installer from I chose the 圆4 version for php 7.1. On some other forum I read that a user had to manually install PHP using windows installer and then install DLL. I later on realized that besides the grpc extension, there were some other extensions also like oci which threw the same error when I tried to uncomment those (while keeping grpc commented) and running any php command like php -ini I tried to debug this for 4 hours and could not find the right solution. ![]()
0 Comments
Leave a Reply. |