Skip to content

Commit b22e236

Browse files
committed
Merge branch 'PHP-8.2'
* PHP-8.2: Fix memory leak triggered by unsuccessful dynamic property unserialization Declare ext/standard constants in stubs - part 6 Add parenthesis around preprocessor conditions in stubs
2 parents bbcd448 + e733ebf commit b22e236

16 files changed

+246
-138
lines changed

ext/imap/php_imap.stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ function imap_thread(IMAP\Connection $imap, int $flags = SE_FREE): array|false {
551551

552552
function imap_timeout(int $timeout_type, int $timeout = -1): int|bool {}
553553

554-
#if defined(HAVE_IMAP2000) || defined(HAVE_IMAP2001)
554+
#if (defined(HAVE_IMAP2000) || defined(HAVE_IMAP2001))
555555
function imap_get_quota(IMAP\Connection $imap, string $quota_root): array|false {}
556556

557557
function imap_get_quotaroot(IMAP\Connection $imap, string $mailbox): array|false {}

ext/imap/php_imap_arginfo.h

Lines changed: 16 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ext/ldap/ldap.stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -751,7 +751,7 @@ function ldap_parse_result(LDAP\Connection $ldap, LDAP\Result $result, &$error_c
751751
#endif
752752
#endif
753753

754-
#if defined(LDAP_API_FEATURE_X_OPENLDAP) && defined(HAVE_3ARG_SETREBINDPROC)
754+
#if (defined(LDAP_API_FEATURE_X_OPENLDAP) && defined(HAVE_3ARG_SETREBINDPROC))
755755
function ldap_set_rebind_proc(LDAP\Connection $ldap, ?callable $callback): bool {}
756756
#endif
757757

ext/ldap/ldap_arginfo.h

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ext/odbc/odbc.stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@
215215
*/
216216
const SQL_TIMESTAMP = UNKNOWN;
217217

218-
#if defined(ODBCVER) && (ODBCVER >= 0x0300)
218+
#if (defined(ODBCVER) && (ODBCVER >= 0x0300))
219219
/**
220220
* @var int
221221
* @cvalue SQL_TYPE_DATE

ext/odbc/odbc_arginfo.h

Lines changed: 18 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ext/sockets/sockets.stub.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1588,7 +1588,7 @@
15881588
const SOL_LOCAL = UNKNOWN;
15891589
#endif
15901590

1591-
#if defined(IPV6_RECVPKTINFO) && HAVE_IPV6
1591+
#if (defined(IPV6_RECVPKTINFO) && HAVE_IPV6)
15921592
/**
15931593
* IPv6 ancillary data
15941594
* @var int
@@ -1601,7 +1601,7 @@
16011601
*/
16021602
const IPV6_PKTINFO = UNKNOWN;
16031603
#endif
1604-
#if defined(IPV6_RECVHOPLIMIT) && HAVE_IPV6
1604+
#if (defined(IPV6_RECVHOPLIMIT) && HAVE_IPV6)
16051605
/**
16061606
* @var int
16071607
* @cvalue IPV6_RECVHOPLIMIT
@@ -1614,7 +1614,7 @@
16141614
const IPV6_HOPLIMIT = UNKNOWN;
16151615
#endif
16161616

1617-
#if defined(IPV6_RECVTCLASS) && HAVE_IPV6
1617+
#if (defined(IPV6_RECVTCLASS) && HAVE_IPV6)
16181618
/**
16191619
* @var int
16201620
* @cvalue IPV6_RECVTCLASS

ext/sockets/sockets_arginfo.h

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ext/standard/basic_functions.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#include "php_globals.h"
2222
#include "php_variables.h"
2323
#include "php_ini.h"
24+
#include "php_image.h"
2425
#include "php_standard.h"
2526
#include "php_math.h"
2627
#include "php_http.h"
@@ -348,7 +349,6 @@ PHP_MINIT_FUNCTION(basic) /* {{{ */
348349
BASIC_MINIT_SUBMODULE(exec)
349350

350351
BASIC_MINIT_SUBMODULE(user_streams)
351-
BASIC_MINIT_SUBMODULE(imagetypes)
352352

353353
php_register_url_stream_wrapper("php", &php_stream_php_wrapper);
354354
php_register_url_stream_wrapper("file", &php_plain_files_wrapper);

0 commit comments

Comments
 (0)