From 1aa9411c0778b5b9a86fbece999acef36e2fd038 Mon Sep 17 00:00:00 2001 From: Joe Watkins Date: Wed, 29 Jul 2015 06:49:23 +0100 Subject: [PATCH] add windows module file, missing version check --- lib/PHPCompiler/Backend/PHP7/PECL.php | 3 ++- lib/PHPCompiler/Backend/PHP7/templates/module.w32.php | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 lib/PHPCompiler/Backend/PHP7/templates/module.w32.php diff --git a/lib/PHPCompiler/Backend/PHP7/PECL.php b/lib/PHPCompiler/Backend/PHP7/PECL.php index bf25c72..caf9c99 100644 --- a/lib/PHPCompiler/Backend/PHP7/PECL.php +++ b/lib/PHPCompiler/Backend/PHP7/PECL.php @@ -133,6 +133,7 @@ protected function finish() { "php_{$this->state->name}.h" => $this->compileFile('module.h'), "{$this->state->name}.c" => $this->compileFile('module.c'), "config.m4" => $this->compileFile('module.m4'), + "config.w32" => $this->compileFile('module.w32'), ]; } @@ -506,4 +507,4 @@ protected function mapToCType($type) { } return 'zval'; } -} \ No newline at end of file +} diff --git a/lib/PHPCompiler/Backend/PHP7/templates/module.w32.php b/lib/PHPCompiler/Backend/PHP7/templates/module.w32.php new file mode 100644 index 0000000..1454281 --- /dev/null +++ b/lib/PHPCompiler/Backend/PHP7/templates/module.w32.php @@ -0,0 +1,5 @@ +ARG_ENABLE("", "for support", "no"); + +if (PHP_ != "no") { + EXTENSION(, .c, PHP__SHARED, -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1); +}