cvs: php4(PHP_4_3) /sapi/apache mod_php4.c

From: Date: Wed, 15 Jan 2003 11:29:05 +0000
Subject: cvs: php4(PHP_4_3) /sapi/apache mod_php4.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-17912@lists.php.net to get a copy of this message
sas Wed Jan 15 06:29:05 2003 EDT Modified files: (Branch: PHP_4_3) /php4/sapi/apache mod_php4.c Log: MFH 1.150 Index: php4/sapi/apache/mod_php4.c diff -u php4/sapi/apache/mod_php4.c:1.146.2.2 php4/sapi/apache/mod_php4.c:1.146.2.3 --- php4/sapi/apache/mod_php4.c:1.146.2.2 Tue Dec 31 11:26:54 2002 +++ php4/sapi/apache/mod_php4.c Wed Jan 15 06:29:05 2003 @@ -17,7 +17,7 @@ | PHP 4.0 patches by Zeev Suraski <zeev@zend.com> | +----------------------------------------------------------------------+ */ -/* $Id: mod_php4.c,v 1.146.2.2 2002/12/31 16:26:54 sebastian Exp $ */ +/* $Id: mod_php4.c,v 1.146.2.3 2003/01/15 11:29:05 sas Exp $ */ #include "php_apache_http.h" @@ -343,6 +343,34 @@ } /* }}} */ +/* {{{ sapi_apache_get_fd + */ +static int sapi_apache_get_fd(int *nfd TSRMLS_DC) +{ + request_rec *r = SG(server_context); + int fd; + + fd = r->connection->client->fd; + + if (fd >= 0) { + if (nfd) *nfd = fd; + return 0; + } + return -1; +} +/* }}} */ + +/* {{{ sapi_apache_force_http_10 + */ +static int sapi_apache_force_http_10(TSRMLS_D) +{ + request_rec *r = SG(server_context); + + r->proto_num = HTTP_VERSION(1,0); + + return 0; +} + /* {{{ sapi_module_struct apache_sapi_module */ static sapi_module_struct apache_sapi_module = { @@ -382,7 +410,12 @@ unblock_alarms, /* Unblock interruptions */ #endif - STANDARD_SAPI_MODULE_PROPERTIES + NULL, /* default post reader */ + NULL, /* treat data */ + NULL, /* exe location */ + 0, /* ini ignore */ + sapi_apache_get_fd, + sapi_apache_force_http_10 }; /* }}} */

« previous php.cvs (#17912) next »