php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | |
Patch bug65334.patch for memcached Bug #65334Patch version 2013-07-25 13:38 UTC Return to Bug #65334 | Download this patchThis patch is obsolete Obsoleted by patches: Patch Revisions:Developer: laruence@php.netdiff --git a/php_memcached.c b/php_memcached.c index d1d0724..6996b71 100644 --- a/php_memcached.c +++ b/php_memcached.c @@ -2884,6 +2884,7 @@ static int php_memc_zval_from_payload(zval *value, char *payload, size_t payload if (payload == NULL && payload_len > 0) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "Could not handle non-existing value of length %zu", payload_len); + ZVAL_FALSE(value); return -1; } else if (payload == NULL) { if (MEMC_VAL_GET_TYPE(flags) == MEMC_VAL_IS_BOOL) { @@ -2935,6 +2936,7 @@ static int php_memc_zval_from_payload(zval *value, char *payload, size_t payload if (!decompress_status) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "could not decompress value"); efree(buffer); + ZVAL_FALSE(value); return -1; } payload = buffer; |
Copyright © 2001-2024 The PHP Group All rights reserved. |
Last updated: Fri Dec 27 16:01:29 2024 UTC |