Lines Matching refs:dest
448 zend_string *dest = NULL; /* Destination to place the compressed data into */ in PHP_FUNCTION() local
467 dest = zend_string_alloc(dest_len, 0); in PHP_FUNCTION()
478 …error = BZ2_bzBuffToBuffCompress(ZSTR_VAL(dest), &dest_len, source, source_len, block_size, 0, wor… in PHP_FUNCTION()
480 zend_string_efree(dest); in PHP_FUNCTION()
485 ZSTR_LEN(dest) = dest_len; in PHP_FUNCTION()
486 ZSTR_VAL(dest)[ZSTR_LEN(dest)] = '\0'; in PHP_FUNCTION() local
487 RETURN_NEW_STR(dest); in PHP_FUNCTION()
496 zend_string *dest; in PHP_FUNCTION() local
522 dest = zend_string_safe_alloc(source_len, 2, 1, 0); in PHP_FUNCTION()
524 bzs.next_out = ZSTR_VAL(dest); in PHP_FUNCTION()
536 dest = zend_string_safe_realloc(dest, 1, bzs.avail_out+1, (size_t) size, 0); in PHP_FUNCTION()
537 bzs.next_out = ZSTR_VAL(dest) + size; in PHP_FUNCTION()
545 zend_string_efree(dest); in PHP_FUNCTION()
550 dest = zend_string_safe_realloc(dest, 1, (size_t)size, 1, 0); in PHP_FUNCTION()
551 ZSTR_LEN(dest) = (size_t)size; in PHP_FUNCTION()
552 ZSTR_VAL(dest)[(size_t)size] = '\0'; in PHP_FUNCTION() local
553 RETVAL_STR(dest); in PHP_FUNCTION()
556 zend_string_efree(dest); in PHP_FUNCTION()