CVS update: php31

From: Date: Sun, 08 Nov 1998 02:43:32 +0000
Subject: CVS update: php31
Groups: php.dev 
Request: Send a blank email to php-dev+get-2279@lists.php.net to get a copy of this message
Date: Saturday November 7, 1998 @ 21:43 Author: cschneid Update of /repository/php31 In directory asf:/u2/tmp/cvs-serv18111 Modified Files: config.h.in configure.in.in Log Message: Added on the fly output compression. It requires zlib support and includes configure option --disable-output-compression and php31.ini option compress_output=yes|no Output is sent compressed with Content-encoding: gzip if browser sent Accept-encoding: *gzip* before. All code related to output compression is enclosed in #if PHP3_COMPRESS_OUTPUT set by configure. Index: php31/config.h.in diff -c php31/config.h.in:2.7 php31/config.h.in:2.8 *** php31/config.h.in:2.7 Thu Nov 5 10:21:37 1998 --- php31/config.h.in Sat Nov 7 21:43:31 1998 *************** *** 221,226 **** --- 221,230 ---- */ #define PHP3_URL_FOPEN 0 + /* Define if you want zlib compression of PHP output to be enabled. + */ + #define PHP3_COMPRESS_OUTPUT 0 + /* Define if you have broken header files like SunOS 4 */ #define MISSING_FCLOSE_DECL 0 Index: php31/configure.in.in diff -c php31/configure.in.in:2.13 php31/configure.in.in:2.14 *** php31/configure.in.in:2.13 Thu Nov 5 10:21:37 1998 --- php31/configure.in.in Sat Nov 7 21:43:31 1998 *************** *** 1,4 **** ! dnl ## $Id: configure.in.in,v 2.13 1998/11/05 15:21:37 cschneid Exp $ -*- sh -*- dnl ## Process this file with autoconf to produce a configure script. dnl ## diversion 1 is the initial checking of OS features, programs, --- 1,4 ---- ! dnl ## $Id: configure.in.in,v 2.14 1998/11/08 02:43:31 cschneid Exp $ -*- sh -*- dnl ## Process this file with autoconf to produce a configure script. dnl ## diversion 1 is the initial checking of OS features, programs, *************** *** 605,610 **** --- 605,637 ---- ],[ AC_DEFINE(PHP3_URL_FOPEN, 1) AC_MSG_RESULT(yes) + ]) + + AC_MSG_CHECKING(whether to enable output compression) + AC_ARG_ENABLE(output-compression, + [ --disable-output-compression Disable zlib based output compression.], + [ + if test "$enableval" = "yes"; then + if test -n "$ZLIB_INCLUDE"; then + AC_DEFINE(PHP3_COMPRESS_OUTPUT, 1) + AC_MSG_RESULT(yes) + else + AC_DEFINE(PHP3_COMPRESS_OUTPUT, 0) + AC_MSG_RESULT(no) + AC_MSG_ERROR(Output compression requires zlib support. See --with-zlib) + fi + else + AC_DEFINE(PHP3_COMPRESS_OUTPUT, 0) + AC_MSG_RESULT(no) + fi + ],[ + if test -n "$ZLIB_INCLUDE"; then + AC_DEFINE(PHP3_COMPRESS_OUTPUT, 1) + AC_MSG_RESULT(yes) + else + AC_DEFINE(PHP3_COMPRESS_OUTPUT, 0) + AC_MSG_RESULT(no: requires zlib support) + fi ]) -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#2279) next »