CVS update: php3/functions

From: Date: Sat, 12 Jun 1999 11:05:34 +0000
Subject: CVS update: php3/functions
Groups: php.dev 
Request: Send a blank email to php-dev+get-6843@lists.php.net to get a copy of this message
Date: Saturday June 12, 1999 @ 7:05 Author: kk Update of /repository/php3/functions In directory php:/tmp/cvs-serv29340/functions Modified Files: posix.c Log Message: Parameters now work correctly... Index: php3/functions/posix.c diff -u php3/functions/posix.c:1.2 php3/functions/posix.c:1.3 --- php3/functions/posix.c:1.2 Sat Jun 12 06:57:39 1999 +++ php3/functions/posix.c Sat Jun 12 07:05:34 1999 @@ -144,18 +144,17 @@ void php3_posix_getpgid(INTERNAL_FUNCTION_PARAMETERS) { pid_t pgid; - pid_t pid; - pval *p_pid; + pval *pid; - if (getParameters(ht, 1, &p_pid)==FAILURE) { - RETURN_FALSE; + if (getParameters(ht, 1, &pid)==FAILURE) { + WRONG_PARAM_COUNT; } - convert_to_long(p_pid); - pgid = getpgid(pid); + convert_to_long(pid); + pgid = getpgid(pid->value.lval); if (pgid < 0) { php3_error(E_WARNING, "posix_getpgid(%d) failed with '%s'", - pid, + pid->value.lval, strerror(errno)); RETURN_FALSE; } @@ -170,18 +169,17 @@ void php3_posix_getsid(INTERNAL_FUNCTION_PARAMETERS) { pid_t sid; - pid_t pid; - pval *p_pid; + pval *pid; - if (getParameters(ht, 1, &p_pid)==FAILURE) { - RETURN_FALSE; + if (getParameters(ht, 1, &pid)==FAILURE) { + WRONG_PARAM_COUNT; } - convert_to_long(p_pid); - sid = getpgid(pid); + convert_to_long(pid); + sid = getpgid(pid->value.lval); if (sid < 0) { php3_error(E_WARNING, "posix_getsid(%d) failed with '%s'", - pid, + pid->value.lval, strerror(errno)); RETURN_FALSE; }

« previous php.dev (#6843) next »