Skip to content

Commit

Permalink
Windows: fix ZEND_EXTENSION() -> EXTENSION()
Browse files Browse the repository at this point in the history
Usage for testing with master (7.4). Other maintenance branch
can be selected. Be carefull to use the same branch for bcgen and
php-sdk source repository:

 # Follow README.md -
 # https://github.com/Microsoft/php-sdk-binary-tools/blob/master/README.md
$ cd C:\
$ git clone https://github.com/Microsoft/php-sdk-binary-tools.git c:\php-sdk
$ cd c:\php-sdk
$ phpsdk-vc15-x64.bat # Visual Studio 2017 / Windows 64 bits
$ phpsdk_buildtree phpmaster
$ git clone https://github.com/php/php-src.git
$ cd C:\php-sdk\phpmaster\vc15\x64\php-src
$ git checkout PHP-7.2
$ phpsdk_deps --update --branch 7.2 # 'master' or '7.2'
$ buildconf
$ configure --enable-json --enable-sockets --enable-hash --enable-cli \
   --enable-cgi --enable-session --enable-calendar --enable-ipv6 \
   --enable-mbstring --enable-fileinfo --enable-zlib --disable-bcgen
$ nmake
$ nmake install
 # build pecl - bcgen
$ mkdir C:\php-sdk\phpmaster\vc15\x64\pecl
$ cd C:\php-sdk\phpmaster\vc15\x64\pecl
$ git clone https://github.com/nanosonde/bcgen.git
$ git checkout PHP-7.2 # current default is PHP-7.2
$ cd C:\php-sdk\phpmaster\vc15\x64\php-src
$ buildconf --force
$ configure --disable-all --enable-cli --enable-cgi --enable-bcgen
$ nmake
  • Loading branch information
vjardin committed Aug 5, 2018
1 parent a863b8d commit 8058819
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config.w32
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ARG_ENABLE("bcgen", "whether to enable Zend bcgen support", "yes");

if (PHP_BCGEN != "no") {

ZEND_EXTENSION('bcgen', "\
EXTENSION('bcgen', "\
ZendAccelerator.c \
zend_accelerator_debug.c \
zend_accelerator_module.c \
Expand Down

0 comments on commit 8058819

Please sign in to comment.