cvs: pecl /iisfunc setup.c

From: Date: Mon, 08 Mar 2004 21:23:52 +0000
Subject: cvs: pecl /iisfunc setup.c
Groups: php.pecl.cvs 
Request: Send a blank email to pecl-cvs+get-1024@lists.php.net to get a copy of this message
fmk Mon Mar 8 16:23:52 2004 EDT Modified files: /pecl/iisfunc setup.c Log: Fix check on return value http://cvs.php.net/diff.php/pecl/iisfunc/setup.c?r1=1.24&r2=1.25&ty=u Index: pecl/iisfunc/setup.c diff -u pecl/iisfunc/setup.c:1.24 pecl/iisfunc/setup.c:1.25 --- pecl/iisfunc/setup.c:1.24 Thu Feb 19 17:56:29 2004 +++ pecl/iisfunc/setup.c Mon Mar 8 16:23:52 2004 @@ -15,7 +15,7 @@ | Authors: Frank M. Kromann <fmk@php.net> | +----------------------------------------------------------------------+ */ -/* $Id: setup.c,v 1.24 2004/02/19 22:56:29 fmk Exp $ */ +/* $Id: setup.c,v 1.25 2004/03/08 21:23:52 fmk Exp $ */ #ifdef COMPILE_DL_IISFUNC #define HAVE_IISFUNC 1 @@ -329,7 +329,7 @@ convert_to_string_ex(VirtualPath); rc = fnIisGetDirSecurity(Z_LVAL_PP(ServerInstance), Z_STRVAL_PP(VirtualPath), &DirFlags TSRMLS_CC); - if (rc) { + if (rc == 1) { RETVAL_LONG(DirFlags); } else { @@ -394,7 +394,7 @@ convert_to_string_ex(VirtualPath); rc = fnIisGetVirtualPath(Z_LVAL_PP(ServerInstance), Z_STRVAL_PP(VirtualPath), RealPath TSRMLS_CC); - if (rc) { + if (rc == 1) { RETURN_STRING(RealPath, 1); } else { @@ -438,7 +438,7 @@ convert_to_string_ex(VirtualPath); rc = fnIisGetServerRight(Z_LVAL_PP(ServerInstance), Z_STRVAL_PP(VirtualPath), &DirFlags TSRMLS_CC); - if (rc) { + if (rc == 1) { RETVAL_LONG(DirFlags); } else {

« previous php.pecl.cvs (#1024) next »