如何在windows中编译Protobuf和Curve25519php扩展


how to compile Protobuf and Curve25519 php extensions in windows

我最近下载了Protobuf(https://github.com/allegro/php-protobuf)和Curve25519(https://github.com/mgp25/curve25519-php)我一直在尝试获取有关如何编译或访问已编译的dll以在我的wamp服务器中使用的信息。有人在windows中编译这些扩展时运气好吗?

感谢

  • 下载zip文件:https://github.com/mgp25/curve25519-php/tree/master/bin/win-php5.6
  • 解压缩
  • 将dll移动到php/ext文件夹

  • 然后编辑php.ini并添加这两行:

    extension=php_protobuf_ts.dll
    extension=php_curve25519_ts.dll
    
  • 重新启动服务器

刚用xampp试过,它似乎有效。