* filestat fixes
authorMichael Wallner <mike@php.net>
Fri, 18 Feb 2005 15:58:39 +0000 (15:58 +0000)
committerMichael Wallner <mike@php.net>
Fri, 18 Feb 2005 15:58:39 +0000 (15:58 +0000)
http_api.c

index 160c123a691f232c73ae145f61822cc1c1ac43c7..a5b898d8f6931ce91d6a33ff269686b85d4e910f 100644 (file)
@@ -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;