com php-src: Fixed reference counting: ext/standard/proc_open .c

From: Date: Wed, 09 Apr 2014 11:05:22 +0000
Subject: com php-src: Fixed reference counting: ext/standard/proc_open .c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-77462@lists.php.net to get a copy of this message
Commit: 22ec682e77ed19d556b265880242d79f970a6363 Author: Dmitry Stogov <dmitry@zend.com> Wed, 9 Apr 2014 15:05:22 +0400 Parents: 085be9d61815ab347db1cbe777e91a07d03307fb Branches: phpng Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=22ec682e77ed19d556b265880242d79f970a6363 Log: Fixed reference counting Changed paths: M ext/standard/proc_open.c Diff: diff --git a/ext/standard/proc_open.c b/ext/standard/proc_open.c index f1f98e7..a72184c 100644 --- a/ext/standard/proc_open.c +++ b/ext/standard/proc_open.c @@ -958,7 +958,8 @@ PHP_FUNCTION(proc_open) php_stream_to_zval(stream, &retfp); add_index_zval(pipes, descriptors[i].index, &retfp); - proc->pipes[i] = Z_RES_P(&retfp); + proc->pipes[i] = Z_RES(retfp); + Z_ADDREF(retfp); } break; default:

« previous php.cvs (#77462) next »