break;
case SEND_DATA:
- return len == php_body_write(data + begin, len TSRMLS_CC)
+ return len == php_body_write(((char *)data) + begin, len TSRMLS_CC)
? SUCCESS : FAILURE;
break;
{
char etag[33] = { 0 };
unsigned char digest[16];
-
+
if (mode & PHP_OUTPUT_HANDLER_START) {
PHP_MD5Init(&HTTP_G(etag_md5));
}
if (mode & PHP_OUTPUT_HANDLER_END) {
PHP_MD5Final(digest, &HTTP_G(etag_md5));
-
+
/* just do that if desired */
if (HTTP_G(etag_started)) {
make_digest(etag, digest);
efree(etag);
return FAILURE;
}
-
+
/* send 304 Not Modified if etag matches */
if ((!is_range_request) && http_etag_match("HTTP_IF_NONE_MATCH", etag)) {
efree(etag);