summaryrefslogtreecommitdiff
path: root/ext/pcntl
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2019-04-24 18:28:29 +0300
committerDmitry Stogov <dmitry@zend.com>2019-04-24 18:28:29 +0300
commite188e4170fcc3e3a2d9ab57f3d3d24c4b26dd4bd (patch)
treebc2ece4c5f05fccda1ec1d528daef7ae4a9fb811 /ext/pcntl
parenteef351b7c76675a3bfab4f7fbab021326d6c6135 (diff)
downloadphp-git-e188e4170fcc3e3a2d9ab57f3d3d24c4b26dd4bd.tar.gz
Use ZEND_TRY_ASSIGN_REF_... macros for arguments passed to internal function by reference
Diffstat (limited to 'ext/pcntl')
-rw-r--r--ext/pcntl/pcntl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/pcntl/pcntl.c b/ext/pcntl/pcntl.c
index 0176ef89e9..63751d4b17 100644
--- a/ext/pcntl/pcntl.c
+++ b/ext/pcntl/pcntl.c
@@ -742,7 +742,7 @@ PHP_FUNCTION(pcntl_waitpid)
}
#endif
- ZEND_TRY_ASSIGN_LONG(z_status, status);
+ ZEND_TRY_ASSIGN_REF_LONG(z_status, status);
RETURN_LONG((zend_long) child_id);
}
@@ -792,7 +792,7 @@ PHP_FUNCTION(pcntl_wait)
}
#endif
- ZEND_TRY_ASSIGN_LONG(z_status, status);
+ ZEND_TRY_ASSIGN_REF_LONG(z_status, status);
RETURN_LONG((zend_long) child_id);
}