X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_response_object.c;h=e5b0d00da8c4366a72be0614973e4604879053d8;hp=a0b8817cc218563e95fc758e23af0a826da952eb;hb=a0bca521b491711e43aef74fe19c23a8eb4d0777;hpb=8d25696948ed61d50c417275222117f43069ddd1 diff --git a/http_response_object.c b/http_response_object.c index a0b8817..e5b0d00 100644 --- a/http_response_object.c +++ b/http_response_object.c @@ -900,7 +900,7 @@ PHP_METHOD(HttpResponse, setData) } UPD_STATIC_PROP(long, lastModified, http_last_modified(the_data, SEND_DATA)); - if (etag = http_etag(Z_STRVAL_P(the_data), Z_STRLEN_P(the_data), SEND_DATA)) { + if ((etag = http_etag(Z_STRVAL_P(the_data), Z_STRLEN_P(the_data), SEND_DATA))) { UPD_STATIC_PROP(string, eTag, etag); efree(etag); } @@ -959,7 +959,7 @@ PHP_METHOD(HttpResponse, setStream) zend_list_addref(Z_LVAL_P(the_stream)); UPD_STATIC_PROP(long, lastModified, http_last_modified(the_real_stream, SEND_RSRC)); - if (etag = http_etag(the_real_stream, 0, SEND_RSRC)) { + if ((etag = http_etag(the_real_stream, 0, SEND_RSRC))) { UPD_STATIC_PROP(string, eTag, etag); efree(etag); } @@ -1018,7 +1018,7 @@ PHP_METHOD(HttpResponse, setFile) } UPD_STATIC_PROP(long, lastModified, http_last_modified(the_file, -1)); - if (etag = http_etag(the_file, 0, -1)) { + if ((etag = http_etag(the_file, 0, -1))) { UPD_STATIC_PROP(string, eTag, etag); efree(etag); }