X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=src%2Fphp_http_message_body.c;h=90714d93e07e029dca041630e52bbde7c07fda3c;hb=54f4f026b7379f02786b4f074f4d248c4b3e1ebc;hp=72cfa4a420d2225f77c0aca18bd7d569d8ff7132;hpb=b63ba83de3d26c61062b72a8d5675225297302db;p=m6w6%2Fext-http diff --git a/src/php_http_message_body.c b/src/php_http_message_body.c index 72cfa4a..90714d9 100644 --- a/src/php_http_message_body.c +++ b/src/php_http_message_body.c @@ -714,7 +714,7 @@ PHP_METHOD(HttpMessageBody, __unserialize) if (SUCCESS == zend_parse_parameters(ZEND_NUM_ARGS(), "h", &arr)) { zval *zv = zend_hash_index_find(arr, 0); - if (0 && zv) { + if (zv) { zend_string *zs = zval_get_string(zv); php_stream *s = php_http_mem_stream_open(0, zs); php_http_message_body_object_t *obj = PHP_HTTP_OBJ(NULL, getThis()); @@ -742,7 +742,6 @@ PHP_METHOD(HttpMessageBody, __serialize) zs = php_http_message_body_to_string(obj->body, 0, 0); if (zs) { add_index_str(return_value, 0, zs); - zend_string_release(zs); } }