Lines Matching refs:s2

496 	char *data, *s2;  in PHP_FUNCTION()  local
508 s2 = (char *) emalloc(l2); in PHP_FUNCTION()
509 if (!s2) { in PHP_FUNCTION()
514 status = compress2(s2, &l2, data, data_len, level); in PHP_FUNCTION()
516 status = compress(s2, &l2, data, data_len); in PHP_FUNCTION()
520 s2 = erealloc(s2, l2 + 1); in PHP_FUNCTION()
521 s2[l2] = '\0'; in PHP_FUNCTION()
522 RETURN_STRINGL(s2, l2, 0); in PHP_FUNCTION()
524 efree(s2); in PHP_FUNCTION()
539 char *data, *s1=NULL, *s2=NULL; in PHP_FUNCTION() local
560 s2 = (char *) erealloc(s1, length); in PHP_FUNCTION()
561 status = uncompress(s2, &length, data, data_len); in PHP_FUNCTION()
562 s1 = s2; in PHP_FUNCTION()
566 s2 = erealloc(s2, length + 1); /* space for \0 */ in PHP_FUNCTION()
567 s2[ length ] = '\0'; in PHP_FUNCTION()
568 RETURN_STRINGL(s2, length, 0); in PHP_FUNCTION()
570 efree(s2); in PHP_FUNCTION()
584 char *data, *s2; in PHP_FUNCTION() local
605 s2 = (char *) emalloc(stream.avail_out); in PHP_FUNCTION()
606 if (!s2) { in PHP_FUNCTION()
610 stream.next_out = s2; in PHP_FUNCTION()
627 s2 = erealloc(s2,stream.total_out + 1); /* resize to buffer to the "right" size */ in PHP_FUNCTION()
628 s2[ stream.total_out ] = '\0'; in PHP_FUNCTION()
629 RETURN_STRINGL(s2, stream.total_out, 0); in PHP_FUNCTION()
631 efree(s2); in PHP_FUNCTION()
646 char *data, *s1=NULL, *s2=NULL; in PHP_FUNCTION() local
686 s2 = (char *) erealloc(s1, length); in PHP_FUNCTION()
688 if (!s2) { in PHP_FUNCTION()
695 s1 = s2; in PHP_FUNCTION()
697 stream.next_out = (Bytef *) &s2[stream.total_out]; in PHP_FUNCTION()
710 s2 = erealloc(s2, stream.total_out + 1); /* room for \0 */ in PHP_FUNCTION()
711 s2[ stream.total_out ] = '\0'; in PHP_FUNCTION()
712 RETURN_STRINGL(s2, stream.total_out, 0); in PHP_FUNCTION()
714 efree(s2); in PHP_FUNCTION()
859 char *data, *s2; in PHP_FUNCTION() local
887s2 = (char *) emalloc(stream.avail_out + GZIP_HEADER_LENGTH + (coding == CODING_GZIP ? GZIP_FOOTER… in PHP_FUNCTION()
890 s2[0] = gz_magic[0]; in PHP_FUNCTION()
891 s2[1] = gz_magic[1]; in PHP_FUNCTION()
892 s2[2] = Z_DEFLATED; in PHP_FUNCTION()
893 s2[3] = s2[4] = s2[5] = s2[6] = s2[7] = s2[8] = 0; /* time set to 0 */ in PHP_FUNCTION()
894 s2[9] = OS_CODE; in PHP_FUNCTION()
896 stream.next_out = &(s2[GZIP_HEADER_LENGTH]); in PHP_FUNCTION()
927s2 = erealloc(s2, stream.total_out + GZIP_HEADER_LENGTH + (coding == CODING_GZIP ? GZIP_FOOTER_LEN… in PHP_FUNCTION()
930 char *trailer = s2 + (stream.total_out + GZIP_HEADER_LENGTH); in PHP_FUNCTION()
946s2[stream.total_out + GZIP_HEADER_LENGTH + (coding == CODING_GZIP ? GZIP_FOOTER_LENGTH : 0)] = '\0… in PHP_FUNCTION()
948 …RETURN_STRINGL(s2, stream.total_out + GZIP_HEADER_LENGTH + (coding == CODING_GZIP ? GZIP_FOOTER_LE… in PHP_FUNCTION()
950 efree(s2); in PHP_FUNCTION()