diff options
Diffstat (limited to 'ext/posix/posix.c')
-rw-r--r-- | ext/posix/posix.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/ext/posix/posix.c b/ext/posix/posix.c index bf39ac94fa..9a3bbdedf2 100644 --- a/ext/posix/posix.c +++ b/ext/posix/posix.c @@ -149,7 +149,7 @@ PHP_FUNCTION(posix_kill) pval *sig; int result; - if (ARG_COUNT(ht) != 2 || zend_get_parameters(ht, 2, &pid, &sig)==FAILURE) { + if (ZEND_NUM_ARGS() != 2 || zend_get_parameters(ht, 2, &pid, &sig)==FAILURE) { WRONG_PARAM_COUNT; } @@ -242,7 +242,7 @@ PHP_FUNCTION(posix_setuid) pval *uid; int result; - if (ARG_COUNT(ht) != 1 || zend_get_parameters(ht, 1, &uid)==FAILURE) { + if (ZEND_NUM_ARGS() != 1 || zend_get_parameters(ht, 1, &uid)==FAILURE) { WRONG_PARAM_COUNT; } @@ -267,7 +267,7 @@ PHP_FUNCTION(posix_setgid) pval *gid; int result; - if (ARG_COUNT(ht) != 1 || zend_get_parameters(ht, 1, &gid)==FAILURE) { + if (ZEND_NUM_ARGS() != 1 || zend_get_parameters(ht, 1, &gid)==FAILURE) { WRONG_PARAM_COUNT; } @@ -360,7 +360,7 @@ PHP_FUNCTION(posix_setpgid) pval *pgid; int result; - if (ARG_COUNT(ht) != 2 || zend_get_parameters(ht, 2, &pid, &pgid)==FAILURE) { + if (ZEND_NUM_ARGS() != 2 || zend_get_parameters(ht, 2, &pid, &pgid)==FAILURE) { WRONG_PARAM_COUNT; } @@ -388,7 +388,7 @@ PHP_FUNCTION(posix_getpgid) pid_t pgid; pval *pid; - if (ARG_COUNT(ht) != 1 || zend_get_parameters(ht, 1, &pid)==FAILURE) { + if (ZEND_NUM_ARGS() != 1 || zend_get_parameters(ht, 1, &pid)==FAILURE) { WRONG_PARAM_COUNT; } @@ -417,7 +417,7 @@ PHP_FUNCTION(posix_getsid) pid_t sid; pval *pid; - if (ARG_COUNT(ht) != 1 || zend_get_parameters(ht, 1, &pid)==FAILURE) { + if (ZEND_NUM_ARGS() != 1 || zend_get_parameters(ht, 1, &pid)==FAILURE) { WRONG_PARAM_COUNT; } @@ -518,7 +518,7 @@ PHP_FUNCTION(posix_ttyname) pval *fd; char *p; - if (ARG_COUNT(ht) != 1 || zend_get_parameters(ht, 1, &fd)==FAILURE) { + if (ZEND_NUM_ARGS() != 1 || zend_get_parameters(ht, 1, &fd)==FAILURE) { WRONG_PARAM_COUNT; } convert_to_long(fd); @@ -542,7 +542,7 @@ PHP_FUNCTION(posix_isatty) pval *fd; int result; - if (ARG_COUNT(ht) != 1 || zend_get_parameters(ht, 1, &fd)==FAILURE) { + if (ZEND_NUM_ARGS() != 1 || zend_get_parameters(ht, 1, &fd)==FAILURE) { WRONG_PARAM_COUNT; } convert_to_long(fd); @@ -597,7 +597,7 @@ PHP_FUNCTION(posix_mkfifo) pval *mode; int result; - if (ARG_COUNT(ht) != 2 || zend_get_parameters(ht, 2, &path, &mode) == FAILURE) { + if (ZEND_NUM_ARGS() != 2 || zend_get_parameters(ht, 2, &path, &mode) == FAILURE) { WRONG_PARAM_COUNT; } convert_to_string(path); @@ -644,7 +644,7 @@ PHP_FUNCTION(posix_getgrnam) char **p; int count; - if (ARG_COUNT(ht) != 1 || zend_get_parameters(ht, 1, &name)==FAILURE) { + if (ZEND_NUM_ARGS() != 1 || zend_get_parameters(ht, 1, &name)==FAILURE) { WRONG_PARAM_COUNT; } convert_to_string(name); @@ -680,7 +680,7 @@ PHP_FUNCTION(posix_getgrgid) char **p; int count; - if (ARG_COUNT(ht) != 1 || zend_get_parameters(ht, 1, &gid)==FAILURE) { + if (ZEND_NUM_ARGS() != 1 || zend_get_parameters(ht, 1, &gid)==FAILURE) { WRONG_PARAM_COUNT; } convert_to_long(gid); @@ -712,7 +712,7 @@ PHP_FUNCTION(posix_getpwnam) pval *name; struct passwd *pw; - if (ARG_COUNT(ht) != 1 || zend_get_parameters(ht, 1, &name)==FAILURE) { + if (ZEND_NUM_ARGS() != 1 || zend_get_parameters(ht, 1, &name)==FAILURE) { WRONG_PARAM_COUNT; } convert_to_string(name); @@ -744,7 +744,7 @@ PHP_FUNCTION(posix_getpwuid) pval *uid; struct passwd *pw; - if (ARG_COUNT(ht) != 1 || zend_get_parameters(ht, 1, &uid)==FAILURE) { + if (ZEND_NUM_ARGS() != 1 || zend_get_parameters(ht, 1, &uid)==FAILURE) { WRONG_PARAM_COUNT; } convert_to_long(uid); |