cvs: php4(PHP_4_2_0) /main SAPI.c

From: Date: Thu, 24 Oct 2002 11:30:27 +0000
Subject: cvs: php4(PHP_4_2_0) /main SAPI.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-15342@lists.php.net to get a copy of this message
hyanantha Thu Oct 24 07:30:27 2002 EDT Modified files: (Branch: PHP_4_2_0) /php4/main SAPI.c Log: NetWare related changes/modifications. Index: php4/main/SAPI.c diff -u php4/main/SAPI.c:1.129.2.4 php4/main/SAPI.c:1.129.2.5 --- php4/main/SAPI.c:1.129.2.4 Sun Sep 8 20:32:40 2002 +++ php4/main/SAPI.c Thu Oct 24 07:30:26 2002 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: SAPI.c,v 1.129.2.4 2002/09/09 00:32:40 yohgaki Exp $ */ +/* $Id: SAPI.c,v 1.129.2.5 2002/10/24 11:30:26 hyanantha Exp $ */ #include <ctype.h> #include <sys/stat.h> @@ -683,10 +683,20 @@ } } +#if (defined(NETWARE) && defined(CLIB_STAT_PATCH)) +SAPI_API struct stat_libc *sapi_get_stat(TSRMLS_D) +#else SAPI_API struct stat *sapi_get_stat(TSRMLS_D) +#endif { if (sapi_module.get_stat) { +#if (defined(NETWARE) && defined(CLIB_STAT_PATCH)) + /* This kind of type-casting is actually wrong; + but doing it for now since global_stat doesn't seem to be used anywhere particularly */ + return ((struct stat_libc*)sapi_module.get_stat(TSRMLS_C)); +#else return sapi_module.get_stat(TSRMLS_C); +#endif } else { if (!SG(request_info).path_translated || (VCWD_STAT(SG(request_info).path_translated, &SG(global_stat))==-1)) { return NULL;

« previous php.cvs (#15342) next »