com php-src: Fixed proc_open's reference argument: ext/standard/proc_open.c
| From: | Dmitry Stogov | Date: | Mon, 03 Mar 2014 08:50:35 +0000 |
| Subject: | com php-src: Fixed proc_open's reference argument: ext/standard/proc_open.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-77839@lists.php.net to get a copy of this message | ||
Commit: ec30d8178d4b122393bf8585ea0a1edf277e6b80
Author: Xinchen Hui <laruence@gmail.com> Mon, 3 Mar 2014 16:50:35 +0800
Parents: 3e93cd9fd739d8f46093295ffd9c3d8e8411116d
Branches: phpng
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=ec30d8178d4b122393bf8585ea0a1edf277e6b80
Log:
Fixed proc_open's reference argument
Changed paths:
M ext/standard/proc_open.c
Diff:
diff --git a/ext/standard/proc_open.c b/ext/standard/proc_open.c
index 18638dd..2728cc3 100644
--- a/ext/standard/proc_open.c
+++ b/ext/standard/proc_open.c
@@ -897,8 +897,11 @@ PHP_FUNCTION(proc_open)
proc->env = env;
if (pipes != NULL) {
+ ZEND_ASSERT(Z_ISREF_P(pipes));
+ pipes = Z_REFVAL_P(pipes);
zval_dtor(pipes);
- }
+ }
+
array_init(pipes);
#if PHP_CAN_DO_PTS