summaryrefslogtreecommitdiff
path: root/win32/build/phpize.js.in
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2020-11-10 13:51:40 +0100
committerChristoph M. Becker <cmbecker69@gmx.de>2020-11-19 16:23:20 +0100
commitc2b1182879bf2785245638945851c241b0859cbb (patch)
treec4da6ac19d4d8b365eea81ded5f3cbb8977b2aa1 /win32/build/phpize.js.in
parent99a8ec6e24d2788bb533ab5be8618a958adf24cf (diff)
downloadphp-git-c2b1182879bf2785245638945851c241b0859cbb.tar.gz
Fix #80345: PHPIZE configuration has outdated PHP_RELEASE_VERSION
We must not redefine the version "constants" for phpize builds, because these have already generated in phpize.js, from where we pass these variables forward to configure.js. We also add `PHP_EXTRA_VERSION` and `PHP_VERSION_STRING` to the files for completeness. Closes GH-6419.
Diffstat (limited to 'win32/build/phpize.js.in')
-rw-r--r--win32/build/phpize.js.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/win32/build/phpize.js.in b/win32/build/phpize.js.in
index 5a4a973e19..b15e29282e 100644
--- a/win32/build/phpize.js.in
+++ b/win32/build/phpize.js.in
@@ -217,6 +217,12 @@ C.WriteLine("var PHP_ANALYZER = 'disabled';");
C.WriteLine("var PHP_PGO = 'no';");
C.WriteLine("var PHP_PGI = 'no';");
+C.WriteLine("var PHP_VERSION=" + PHP_VERSION);
+C.WriteLine("var PHP_MINOR_VERSION=" + PHP_MINOR_VERSION);
+C.WriteLine("var PHP_RELEASE_VERSION=" + PHP_RELEASE_VERSION);
+C.WriteLine("var PHP_EXTRA_VERSION=\"" + PHP_EXTRA_VERSION + "\"");
+C.WriteLine("var PHP_VERSION_STRING=\"" + PHP_VERSION_STRING + "\"");
+
C.Write(file_get_contents(PHP_DIR + "//script//ext_deps.js"));
if (FSO.FileExists(PHP_DIR + "/script/ext_pickle.js")) {
C.Write(file_get_contents(PHP_DIR + "//script//ext_pickle.js"));