We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f4d778 commit f2bffdcCopy full SHA for f2bffdc
2 files changed
NEWS
@@ -4,6 +4,8 @@ PHP NEWS
4
5
- Core:
6
. Fixed bug #63305 (zend_mm_heap corrupted with traits). (Dmitry, Laruence)
7
+ . Fixed bug #63369 ((un)serialize() leaves dangling pointers, causes crashes).
8
+ (Tony, Andrew Sitnikov)
9
10
- Curl:
11
. Fixed bug #63363 (Curl silently accepts boolean true for SSL_VERIFYHOST).
ext/standard/basic_functions.c
@@ -3684,6 +3684,11 @@ PHP_MSHUTDOWN_FUNCTION(basic) /* {{{ */
3684
PHP_RINIT_FUNCTION(basic) /* {{{ */
3685
{
3686
memset(BG(strtok_table), 0, 256);
3687
+
3688
+ BG(serialize_lock) = 0;
3689
+ memset(&BG(serialize), 0, sizeof(BG(serialize)));
3690
+ memset(&BG(unserialize), 0, sizeof(BG(unserialize)));
3691
3692
BG(strtok_string) = NULL;
3693
BG(strtok_zval) = NULL;
3694
BG(strtok_last) = NULL;
0 commit comments