summaryrefslogtreecommitdiff
path: root/ext/pcntl
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2015-09-24 22:39:59 +0300
committerDmitry Stogov <dmitry@zend.com>2015-09-24 22:39:59 +0300
commitad4fa8f75810facff8bea509249a735232235443 (patch)
tree13b4b2f3df2a2df85a8d3b9702024ac8213f37a7 /ext/pcntl
parentabf6a0b376b42e0ce60da039b11c6fdf994431fb (diff)
downloadphp-git-ad4fa8f75810facff8bea509249a735232235443.tar.gz
Fixed incorrect usage of HASH_OF() macro. Replaced HASH_OF() with more appropriate Z_ARRVAL_P() or Z_OBJPROP_P().
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 6661c2a715..2cfbaa1e8e 100644
--- a/ext/pcntl/pcntl.c
+++ b/ext/pcntl/pcntl.c
@@ -871,7 +871,7 @@ PHP_FUNCTION(pcntl_exec)
if (ZEND_NUM_ARGS() > 1) {
/* Build argument list */
- args_hash = HASH_OF(args);
+ args_hash = Z_ARRVAL_P(args);
argc = zend_hash_num_elements(args_hash);
argv = safe_emalloc((argc + 2), sizeof(char *), 0);
@@ -893,7 +893,7 @@ PHP_FUNCTION(pcntl_exec)
if ( ZEND_NUM_ARGS() == 3 ) {
/* Build environment pair list */
- envs_hash = HASH_OF(envs);
+ envs_hash = Z_ARRVAL_P(envs);
envc = zend_hash_num_elements(envs_hash);
pair = envp = safe_emalloc((envc + 1), sizeof(char *), 0);