Phpize under Windows

好久不见. 提交于 2019-11-29 08:21:29

In windows compile script design to compile php itself and should add your extension to compile with php ...

On Windows, you don't call phpize but instead you call buildconf.bat.

Open a Visual Studio developer command prompt (either 64 or 32 bit), and run

cd C:\php-src buildconf.bat --add-modules-dir=C:\MyPhpExtensions buildconf.bat will scan each subfolder of C:\MyPhpExtensions looking for config.w32 files.

It will then generate a configure.bat.

You can read more here: Compile an extension on Windows

It's hard to build PHP extensions on Windows yourself.: You need a PHP build environment on Windows, which means you need Visual Studio and some other things. See http://php.net/manual/en/install.windows.building.php for more information.

It's probably the easiest way to simply use Linux (or a Linux Virtual Machine), or get a pre-built .dll file form someone else.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!