[PHP-DEV] CVS update: php3/functions From: sas (php-dev <email protected>)
Date: 02/27/99

Date: Saturday February 27, 1999 @ 10:52
Author: sas

Update of /repository/php3/functions
In directory asf:/u/temp/cvs-serv24131

Modified Files:
        zlib.c
Log Message:
kill some compiler warnings
Index: php3/functions/zlib.c
diff -c php3/functions/zlib.c:1.13 php3/functions/zlib.c:1.14
*** php3/functions/zlib.c:1.13 Mon Jan 4 15:05:16 1999
--- php3/functions/zlib.c Sat Feb 27 10:52:14 1999
***************
*** 22,28 ****
     | Stefan Röhrich <sr <email protected>> |
     +----------------------------------------------------------------------+
   */
! /* $Id: zlib.c,v 1.13 1999/01/04 20:05:16 sr Exp $ */
  #if !PHP_31 && defined(THREAD_SAFE)
  #undef THREAD_SAFE
  #endif
--- 22,28 ----
     | Stefan Röhrich <sr <email protected>> |
     +----------------------------------------------------------------------+
   */
! /* $Id: zlib.c,v 1.14 1999/02/27 15:52:14 sas Exp $ */
  #if !PHP_31 && defined(THREAD_SAFE)
  #undef THREAD_SAFE
  #endif
***************
*** 377,383 ****
  
          /* Now loop through the file and do the magic quotes thing if needed */
          memset(buf,0,8191);
! while((int)gzgets(zp, buf, 8191)) {
                  if (ZLIB_INI(magic_quotes_runtime)) {
                          int len;
                          
--- 377,383 ----
  
          /* Now loop through the file and do the magic quotes thing if needed */
          memset(buf,0,8191);
! while(gzgets(zp, buf, 8191) != NULL) {
                  if (ZLIB_INI(magic_quotes_runtime)) {
                          int len;
                          
***************
*** 514,520 ****
          buf = emalloc(sizeof(char) * (len + 1));
          /* needed because recv doesnt put a null at the end*/
          memset(buf,0,len+1);
! if (!((int)gzgets(zp, buf, len))) {
                  efree(buf);
                  RETVAL_FALSE;
          } else {
--- 514,520 ----
          buf = emalloc(sizeof(char) * (len + 1));
          /* needed because recv doesnt put a null at the end*/
          memset(buf,0,len+1);
! if (gzgets(zp, buf, len) == NULL) {
                  efree(buf);
                  RETVAL_FALSE;
          } else {
***************
*** 595,601 ****
          buf = emalloc(sizeof(char) * (len + 1));
          /*needed because recv doesnt set null char at end*/
          memset(buf,0,len+1);
! if (!((int)gzgets(zp, buf, len))) {
                  efree(buf);
                  RETURN_FALSE;
          }
--- 595,601 ----
          buf = emalloc(sizeof(char) * (len + 1));
          /*needed because recv doesnt set null char at end*/
          memset(buf,0,len+1);
! if (gzgets(zp, buf, len) == NULL) {
                  efree(buf);
                  RETURN_FALSE;
          }

--
PHP Development Mailing List   http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe <email protected>
For help: php-dev-help <email protected>