From: Michael Wallner Date: Fri, 18 Feb 2005 15:58:39 +0000 (+0000) Subject: * filestat fixes X-Git-Tag: RELEASE_0_5_0~4 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=21ef2bd1b65e683b5a6cca71de490528f9e0f80b;p=m6w6%2Fext-http * filestat fixes --- diff --git a/http_api.c b/http_api.c index 160c123..a5b898d 100644 --- a/http_api.c +++ b/http_api.c @@ -34,6 +34,7 @@ #include "ext/standard/php_string.h" #include "ext/standard/php_smart_str.h" #include "ext/standard/php_lcg.h" +#include "ext/standard/php_filestat.h" #include "SAPI.h" @@ -1061,7 +1062,7 @@ PHP_HTTP_API inline time_t _http_lmod(const void *data_ptr, const http_send_mode default: { zval mtime; - php_stat(Z_STRVAL_P((zval *) data_ptr), Z_STRLEN_P((zval *) data_ptr), FS_MTIME, &mtime TSRMLS_CC); + php_stat(Z_STRVAL_P((zval *) data_ptr), Z_STRLEN_P((zval *) data_ptr), 6, &mtime TSRMLS_CC); return Z_LVAL(mtime); } } @@ -1937,7 +1938,7 @@ PHP_HTTP_API STATUS _http_chunked_decode(const char *encoded, /* }}} */ /* {{{ proto STATUS http_split_response_ex(char *, size_t, zval *, zval *) */ -PHP_HTTP_API STATUS _http_split_response_ex( char *response, +PHP_HTTP_API STATUS _http_split_response_ex( char *response, size_t response_len, zval *zheaders, zval *zbody TSRMLS_DC) { char *body = NULL;