Skip to content

Commit 2e27bb8

Browse files
committed
Merge branch 'PHP-7.4' into PHP-8.0
* PHP-7.4: Fix #80345: PHPIZE configuration has outdated PHP_RELEASE_VERSION
2 parents 3c44e9c + c2b1182 commit 2e27bb8

File tree

3 files changed

+19
-6
lines changed

3 files changed

+19
-6
lines changed

NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ PHP NEWS
22
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
33
?? ??? ????, PHP 8.0.1RC1
44

5+
- Core:
6+
. Fixed bug #80345 (PHPIZE configuration has outdated PHP_RELEASE_VERSION).
7+
(cmb)
58

69
26 Nov 2020, PHP 8.0.0
710

win32/build/confutils.js

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,14 @@ if (typeof(CWD) == "undefined") {
9292
CWD = FSO.GetParentFolderName(FSO.GetParentFolderName(FSO.GetAbsolutePathName("main\\php_version.h")));
9393
}
9494

95-
/* defaults; we pick up the precise versions from configure.ac */
96-
var PHP_VERSION = 8;
97-
var PHP_MINOR_VERSION = 0;
98-
var PHP_RELEASE_VERSION = 0;
99-
var PHP_EXTRA_VERSION = "";
100-
var PHP_VERSION_STRING = "8.0.0";
95+
if (!MODE_PHPIZE) {
96+
/* defaults; we pick up the precise versions from configure.ac */
97+
var PHP_VERSION = 8;
98+
var PHP_MINOR_VERSION = 0;
99+
var PHP_RELEASE_VERSION = 0;
100+
var PHP_EXTRA_VERSION = "";
101+
var PHP_VERSION_STRING = "8.0.0";
102+
}
101103

102104
/* Get version numbers and DEFINE as a string */
103105
function get_version_numbers()
@@ -2334,6 +2336,8 @@ function generate_phpize()
23342336
MF.WriteLine("var PHP_VERSION=" + PHP_VERSION);
23352337
MF.WriteLine("var PHP_MINOR_VERSION=" + PHP_MINOR_VERSION);
23362338
MF.WriteLine("var PHP_RELEASE_VERSION=" + PHP_RELEASE_VERSION);
2339+
MF.WriteLine("var PHP_EXTRA_VERSION=\"" + PHP_EXTRA_VERSION + "\"");
2340+
MF.WriteLine("var PHP_VERSION_STRING=\"" + PHP_VERSION_STRING + "\"");
23372341
MF.WriteBlankLines(1);
23382342
MF.WriteLine("/* Generated extensions list with mode (static/shared) */");
23392343

win32/build/phpize.js.in

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,12 @@ C.WriteLine("var PHP_ANALYZER = 'disabled';");
215215
C.WriteLine("var PHP_PGO = 'no';");
216216
C.WriteLine("var PHP_PGI = 'no';");
217217

218+
C.WriteLine("var PHP_VERSION=" + PHP_VERSION);
219+
C.WriteLine("var PHP_MINOR_VERSION=" + PHP_MINOR_VERSION);
220+
C.WriteLine("var PHP_RELEASE_VERSION=" + PHP_RELEASE_VERSION);
221+
C.WriteLine("var PHP_EXTRA_VERSION=\"" + PHP_EXTRA_VERSION + "\"");
222+
C.WriteLine("var PHP_VERSION_STRING=\"" + PHP_VERSION_STRING + "\"");
223+
218224
C.Write(file_get_contents(PHP_DIR + "//script//ext_deps.js"));
219225
if (FSO.FileExists(PHP_DIR + "/script/ext_pickle.js")) {
220226
C.Write(file_get_contents(PHP_DIR + "//script//ext_pickle.js"));

0 commit comments

Comments
 (0)