Skip to content

Commit b11b3d2

Browse files
committed
Fixed ZTS build. Needed to bump API version number.
1 parent 26096aa commit b11b3d2

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

Diff for: Zend/zend_extensions.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
/* The first number is the engine version and the rest is the date.
2929
* This way engine 2/3 API no. is always greater than engine 1 API no..
3030
*/
31-
#define ZEND_EXTENSION_API_NO 220131107
31+
#define ZEND_EXTENSION_API_NO 220131218
3232

3333
typedef struct _zend_extension_version_info {
3434
int zend_extension_api_no;

Diff for: ext/opcache/Optimizer/block_pass.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -1465,7 +1465,7 @@ static void zend_jmp_optimization(zend_code_block *block, zend_op_array *op_arra
14651465
case ZEND_JMPNZ:
14661466
/* constant conditional JMPs */
14671467
if (ZEND_OP1_TYPE(last_op) == IS_CONST) {
1468-
#if PHP_API_VERSION > PHP_5_6_X_API_NO
1468+
#if ZEND_EXTENSION_API_NO > PHP_5_6_X_API_NO
14691469
int should_jmp = zend_is_true(&ZEND_OP1_LITERAL(last_op) TSRMLS_CC);
14701470
#else
14711471
int should_jmp = zend_is_true(&ZEND_OP1_LITERAL(last_op));
@@ -1613,7 +1613,7 @@ static void zend_jmp_optimization(zend_code_block *block, zend_op_array *op_arra
16131613
case ZEND_JMPZ_EX:
16141614
/* constant conditional JMPs */
16151615
if (ZEND_OP1_TYPE(last_op) == IS_CONST) {
1616-
#if PHP_API_VERSION > PHP_5_6_X_API_NO
1616+
#if ZEND_EXTENSION_API_NO > PHP_5_6_X_API_NO
16171617
int should_jmp = zend_is_true(&ZEND_OP1_LITERAL(last_op) TSRMLS_CC);
16181618
#else
16191619
int should_jmp = zend_is_true(&ZEND_OP1_LITERAL(last_op));
@@ -1739,7 +1739,7 @@ static void zend_jmp_optimization(zend_code_block *block, zend_op_array *op_arra
17391739
}
17401740

17411741
if (ZEND_OP1_TYPE(last_op) == IS_CONST) {
1742-
#if PHP_API_VERSION > PHP_5_6_X_API_NO
1742+
#if ZEND_EXTENSION_API_NO > PHP_5_6_X_API_NO
17431743
if (!zend_is_true(&ZEND_OP1_LITERAL(last_op) TSRMLS_CC)) {
17441744
#else
17451745
if (!zend_is_true(&ZEND_OP1_LITERAL(last_op))) {

Diff for: ext/opcache/Optimizer/pass2.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ if (ZEND_OPTIMIZER_PASS_2 & OPTIMIZATION_LEVEL) {
8989
/* convert Ti = JMPZ_EX(C, L) => Ti = QM_ASSIGN(C)
9090
in case we know it wouldn't jump */
9191
} else if (ZEND_OP1_TYPE(opline) == IS_CONST) {
92-
#if PHP_API_VERSION > PHP_5_6_X_API_NO
92+
#if ZEND_EXTENSION_API_NO > PHP_5_6_X_API_NO
9393
int should_jmp = zend_is_true(&ZEND_OP1_LITERAL(opline) TSRMLS_CC);
9494
#else
9595
int should_jmp = zend_is_true(&ZEND_OP1_LITERAL(opline));
@@ -107,7 +107,7 @@ if (ZEND_OPTIMIZER_PASS_2 & OPTIMIZATION_LEVEL) {
107107
case ZEND_JMPZ:
108108
case ZEND_JMPNZ:
109109
if (ZEND_OP1_TYPE(opline) == IS_CONST) {
110-
#if PHP_API_VERSION > PHP_5_6_X_API_NO
110+
#if ZEND_EXTENSION_API_NO > PHP_5_6_X_API_NO
111111
int should_jmp = zend_is_true(&ZEND_OP1_LITERAL(opline) TSRMLS_CC);
112112
#else
113113
int should_jmp = zend_is_true(&ZEND_OP1_LITERAL(opline));
@@ -147,7 +147,7 @@ if (ZEND_OPTIMIZER_PASS_2 & OPTIMIZATION_LEVEL) {
147147
case ZEND_JMPZNZ:
148148
if (ZEND_OP1_TYPE(opline) == IS_CONST) {
149149
int opline_num;
150-
#if PHP_API_VERSION > PHP_5_6_X_API_NO
150+
#if ZEND_EXTENSION_API_NO > PHP_5_6_X_API_NO
151151
if (zend_is_true(&ZEND_OP1_LITERAL(opline) TSRMLS_CC)) {
152152
#else
153153
if (zend_is_true(&ZEND_OP1_LITERAL(opline))) {

Diff for: main/php.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#include <dmalloc.h>
2727
#endif
2828

29-
#define PHP_API_VERSION 20131106
29+
#define PHP_API_VERSION 20131218
3030
#define PHP_HAVE_STREAMS
3131
#define YYDEBUG 0
3232

0 commit comments

Comments
 (0)