Lines Matching refs:dest
446 zend_string *dest = NULL; /* Destination to place the compressed data into */ in PHP_FUNCTION() local
465 dest = zend_string_alloc(dest_len, 0); in PHP_FUNCTION()
476 …error = BZ2_bzBuffToBuffCompress(ZSTR_VAL(dest), &dest_len, source, source_len, block_size, 0, wor… in PHP_FUNCTION()
478 zend_string_efree(dest); in PHP_FUNCTION()
483 ZSTR_LEN(dest) = dest_len; in PHP_FUNCTION()
484 ZSTR_VAL(dest)[ZSTR_LEN(dest)] = '\0'; in PHP_FUNCTION() local
485 RETURN_NEW_STR(dest); in PHP_FUNCTION()
494 zend_string *dest; in PHP_FUNCTION() local
520 dest = zend_string_safe_alloc(source_len, 2, 1, 0); in PHP_FUNCTION()
522 bzs.next_out = ZSTR_VAL(dest); in PHP_FUNCTION()
534 dest = zend_string_safe_realloc(dest, 1, bzs.avail_out+1, (size_t) size, 0); in PHP_FUNCTION()
535 bzs.next_out = ZSTR_VAL(dest) + size; in PHP_FUNCTION()
543 zend_string_efree(dest); in PHP_FUNCTION()
548 dest = zend_string_safe_realloc(dest, 1, (size_t)size, 1, 0); in PHP_FUNCTION()
549 ZSTR_LEN(dest) = (size_t)size; in PHP_FUNCTION()
550 ZSTR_VAL(dest)[(size_t)size] = '\0'; in PHP_FUNCTION() local
551 RETVAL_STR(dest); in PHP_FUNCTION()
554 zend_string_efree(dest); in PHP_FUNCTION()