Skip to content

Commit a1fdfa7

Browse files
committed
Fixed bug #80950
Function info for curl_exec() incorrect specified that the function cannot return true. This is already fixed in PHP 8, as the func info entry was removed there.
1 parent 0a36d41 commit a1fdfa7

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ PHP NEWS
2121
- LibXML:
2222
. Fixed bug #73533 (Invalid memory access in php_libxml_xmlCheckUTF8). (cmb)
2323

24+
- Opcache:
25+
. Fixed bug #80950 (Variables become null in if statements). (Nikita)
26+
2427
- Pcntl:
2528
. Fixed bug #79812 (Potential integer overflow in pcntl_exec()). (cmb)
2629

ext/opcache/Optimizer/zend_func_info.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1040,7 +1040,7 @@ static const func_info_t func_infos[] = {
10401040
F1("curl_version", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_STRING | MAY_BE_ARRAY_OF_LONG | MAY_BE_ARRAY_OF_STRING | MAY_BE_ARRAY_OF_ARRAY),
10411041
F0("curl_setopt", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
10421042
F0("curl_setopt_array", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
1043-
FN("curl_exec", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
1043+
FN("curl_exec", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE | MAY_BE_STRING),
10441044
F1("curl_getinfo", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING | MAY_BE_LONG | MAY_BE_DOUBLE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_ANY),
10451045
F1("curl_error", MAY_BE_NULL | MAY_BE_STRING),
10461046
F0("curl_errno", MAY_BE_NULL | MAY_BE_LONG),

0 commit comments

Comments
 (0)