mirror of
https://github.com/php/php-src.git
synced 2025-08-18 15:08:55 +02:00
added a few PLS_FETCH()
This commit is contained in:
parent
4e33a1d677
commit
94ce166244
2 changed files with 4 additions and 0 deletions
|
@ -107,6 +107,7 @@ PHP_FUNCTION(chgrp)
|
||||||
gid_t gid;
|
gid_t gid;
|
||||||
struct group *gr=NULL;
|
struct group *gr=NULL;
|
||||||
int ret;
|
int ret;
|
||||||
|
PLS_FETCH();
|
||||||
|
|
||||||
if (ARG_COUNT(ht)!=2 || getParameters(ht,2,&filename,&group)==FAILURE) {
|
if (ARG_COUNT(ht)!=2 || getParameters(ht,2,&filename,&group)==FAILURE) {
|
||||||
WRONG_PARAM_COUNT;
|
WRONG_PARAM_COUNT;
|
||||||
|
@ -151,6 +152,7 @@ PHP_FUNCTION(chown)
|
||||||
int ret;
|
int ret;
|
||||||
uid_t uid;
|
uid_t uid;
|
||||||
struct passwd *pw = NULL;
|
struct passwd *pw = NULL;
|
||||||
|
PLS_FETCH();
|
||||||
|
|
||||||
if (ARG_COUNT(ht)!=2 || getParameters(ht,2,&filename,&user)==FAILURE) {
|
if (ARG_COUNT(ht)!=2 || getParameters(ht,2,&filename,&user)==FAILURE) {
|
||||||
WRONG_PARAM_COUNT;
|
WRONG_PARAM_COUNT;
|
||||||
|
|
|
@ -105,6 +105,7 @@ PHP_FUNCTION(symlink)
|
||||||
#if HAVE_SYMLINK
|
#if HAVE_SYMLINK
|
||||||
pval *topath, *frompath;
|
pval *topath, *frompath;
|
||||||
int ret;
|
int ret;
|
||||||
|
PLS_FETCH();
|
||||||
|
|
||||||
if (ARG_COUNT(ht) != 2 || getParameters(ht, 2, &topath, &frompath) == FAILURE) {
|
if (ARG_COUNT(ht) != 2 || getParameters(ht, 2, &topath, &frompath) == FAILURE) {
|
||||||
WRONG_PARAM_COUNT;
|
WRONG_PARAM_COUNT;
|
||||||
|
@ -133,6 +134,7 @@ PHP_FUNCTION(link)
|
||||||
#if HAVE_LINK
|
#if HAVE_LINK
|
||||||
pval *topath, *frompath;
|
pval *topath, *frompath;
|
||||||
int ret;
|
int ret;
|
||||||
|
PLS_FETCH();
|
||||||
|
|
||||||
if (ARG_COUNT(ht) != 2 || getParameters(ht, 2, &topath, &frompath) == FAILURE) {
|
if (ARG_COUNT(ht) != 2 || getParameters(ht, 2, &topath, &frompath) == FAILURE) {
|
||||||
WRONG_PARAM_COUNT;
|
WRONG_PARAM_COUNT;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue