Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Phpize under Windows

I'm trying to follow the instructions here: https://code.google.com/p/php-sweph/wiki/build to compile a PHP extension. My OS is Windows XP.

I'm unable to find "phpize" to do the command. However, I've installed Pear for PHP. is it something only for Linux or is there a way to compile with phpsize with Windows?

like image 465
user2078745 Avatar asked Apr 14 '13 13:04

user2078745


1 Answers

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

like image 142
MSS Avatar answered Oct 23 '22 22:10

MSS