Skip to content

Commit a4f806a

Browse files
committed
Fixed bug #80083
Add db2_execute() to the list of functions accessing the local scope. Ideally the API wouldn't do that, but it seems most pragmatic to address this on the opcache side at this point.
1 parent edddddc commit a4f806a

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
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 7.3.24
44

5+
- OPcache:
6+
. Fixed bug #80083 (Optimizer pass 6 removes variables used for ibm_db2 data
7+
binding). (Nikita)
58

69
01 Oct 2020, PHP 7.3.23
710

ext/opcache/Optimizer/zend_optimizer.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1079,6 +1079,8 @@ uint32_t zend_optimizer_classify_function(zend_string *name, uint32_t num_args)
10791079
return ZEND_FUNC_INDIRECT_VAR_ACCESS;
10801080
} else if (zend_string_equals_literal(name, "assert")) {
10811081
return ZEND_FUNC_INDIRECT_VAR_ACCESS;
1082+
} else if (zend_string_equals_literal(name, "db2_execute")) {
1083+
return ZEND_FUNC_INDIRECT_VAR_ACCESS;
10821084
} else if (zend_string_equals_literal(name, "func_num_args")) {
10831085
return ZEND_FUNC_VARARG;
10841086
} else if (zend_string_equals_literal(name, "func_get_arg")) {

0 commit comments

Comments
 (0)