Searched refs:comment_len (Results 1 - 8 of 8) sorted by relevance

/PHP_TRUNK/ext/phar/
H A Dpharzip.h164 char comment_len[2]; /* file comment length 2 bytes */ member in struct:_phar_zip_central_dir_file
233 char comment_len[2]; /* .ZIP file comment length 2 bytes */ member in struct:_phar_zip_dir_end
H A Dzip.c225 if (PHAR_GET_16(locator.comment_len)) {
229 if (PHAR_GET_16(locator.comment_len) != size - (metadata - buf)) {
238 mydata->metadata_len = PHAR_GET_16(locator.comment_len);
240 if (phar_parse_metadata(&metadata, &mydata->metadata, PHAR_GET_16(locator.comment_len)) == FAILURE) {
244 ZVAL_NEW_STR(&mydata->metadata, zend_string_init(metadata, PHAR_GET_16(locator.comment_len), mydata->is_persistent));
414 php_stream_write(sigfile, metadata, PHAR_GET_16(locator.comment_len));
519 if (PHAR_GET_16(zipentry.comment_len)) {
520 if (PHAR_GET_16(zipentry.comment_len) != php_stream_read(fp, buf, PHAR_GET_16(zipentry.comment_len))) {
526 entry.metadata_len = PHAR_GET_16(zipentry.comment_len);
[all...]
/PHP_TRUNK/ext/wddx/
H A Dphp_wddx_api.h60 void php_wddx_packet_start(wddx_packet *packet, char *comment, size_t comment_len);
H A Dwddx.c355 void php_wddx_packet_start(wddx_packet *packet, char *comment, size_t comment_len) argument
361 php_wddx_add_chunk_ex(packet, comment, comment_len);
1075 size_t comment_len = 0; local
1078 if (zend_parse_parameters(ZEND_NUM_ARGS(), "z|s", &var, &comment, &comment_len) == FAILURE) {
1084 php_wddx_packet_start(packet, comment, comment_len);
1159 size_t comment_len = 0; local
1164 if (zend_parse_parameters(ZEND_NUM_ARGS(), "|s", &comment, &comment_len) == FAILURE) {
1170 php_wddx_packet_start(packet, comment, comment_len);
/PHP_TRUNK/ext/xml/
H A Dcompat.c315 _build_comment(const xmlChar *data, int data_len, xmlChar **comment, int *comment_len) argument
317 *comment_len = data_len + 7;
319 *comment = xmlMalloc(*comment_len + 1);
324 (*comment)[*comment_len] = '\0';
/PHP_TRUNK/ext/zip/lib/
H A Dzip_dirent.c304 zip_uint16_t filename_len, comment_len, ef_len; local
354 comment_len = 0;
360 comment_len = _zip_buffer_get_16(buffer);
379 variable_size = (zip_uint32_t)filename_len+(zip_uint32_t)ef_len+(zip_uint32_t)comment_len;
439 if (comment_len) {
440 zde->comment = _zip_read_string(buffer, src, comment_len, 0, error);
H A Dzip_open.c260 zip_uint16_t comment_len; local
295 comment_len = _zip_buffer_get_16(buffer);
304 if (comment_len || (za->open_flags & ZIP_CHECKCONS)) {
310 if (tail_len < comment_len || ((za->open_flags & ZIP_CHECKCONS) && tail_len != comment_len)) {
316 if (comment_len) {
317 if ((cd->comment=_zip_string_new(_zip_buffer_get(buffer, comment_len), comment_len, ZIP_FL_ENC_GUESS, error)) == NULL) {
349 /* possible consistency check: cd->offset = len-(cd->size+cd->comment_len+EOCDLEN) ? */
/PHP_TRUNK/ext/zip/
H A Dphp_zip.c79 /* {{{ PHP_ZIP_SET_FILE_COMMENT(za, index, comment, comment_len) */
80 #define PHP_ZIP_SET_FILE_COMMENT(za, index, comment, comment_len) \
81 if (comment_len == 0) { \
86 } else if (zip_set_file_comment(za, index, comment, comment_len) < 0) { \
1954 size_t comment_len; local
1963 if (zend_parse_parameters(ZEND_NUM_ARGS(), "s", &comment, &comment_len) == FAILURE) {
1966 if (zip_set_archive_comment(intern, (const char *)comment, (int)comment_len)) {
1982 int comment_len = 0; local
1994 comment = zip_get_archive_comment(intern, &comment_len, (int)flags);
1998 RETURN_STRINGL((char *)comment, (zend_long)comment_len);
2008 size_t comment_len, name_len; local
2042 size_t comment_len; local
2221 int comment_len = 0; local
2258 int comment_len = 0; local
[all...]

Completed in 34 milliseconds