com php-src: Fixed GC: ext/standard/streamsfuncs.c

From: Date: Wed, 09 Apr 2014 11:26:45 +0000
Subject: com php-src: Fixed GC: ext/standard/streamsfuncs.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-77459@lists.php.net to get a copy of this message
Commit: d9f6068fd3781498a3d8a6abb46264e835ecfe1f Author: Dmitry Stogov <dmitry@zend.com> Wed, 9 Apr 2014 15:26:45 +0400 Parents: 22ec682e77ed19d556b265880242d79f970a6363 Branches: phpng Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=d9f6068fd3781498a3d8a6abb46264e835ecfe1f Log: Fixed GC Changed paths: M ext/standard/streamsfuncs.c Diff: diff --git a/ext/standard/streamsfuncs.c b/ext/standard/streamsfuncs.c index 6da9a00..4b1411c 100644 --- a/ext/standard/streamsfuncs.c +++ b/ext/standard/streamsfuncs.c @@ -702,6 +702,7 @@ static int stream_array_from_fd_set(zval *stream_array, fd_set *fds TSRMLS_DC) /* destroy old array and add new one */ zend_hash_destroy(Z_ARRVAL_P(stream_array)); + GC_REMOVE_FROM_BUFFER(Z_ARR_P(stream_array)); efree(Z_ARR_P(stream_array)); zend_hash_internal_pointer_reset(Z_ARRVAL(new_array));

« previous php.cvs (#77459) next »