/PHP-5.5/ext/sysvsem/ |
H A D | sysvsem.c | 49 struct semid_ds *buf; /* buffer for IPC_STAT, IPC_SET */ member 361 struct semid_ds buf; local 371 un.buf = &buf;
|
/PHP-5.5/ext/tidy/ |
H A D | tidy.c | 484 efree(buf); in php_tidy_free() 605 TidyBuffer buf; in php_tidy_quick_repair() local 607 tidyBufInit(&buf); in php_tidy_quick_repair() 780 TidyBuffer buf; in tidy_node_cast_handler() local 798 tidyBufInit(&buf); in tidy_node_cast_handler() 801 ZVAL_STRINGL(out, (char *) buf.bp, buf.size-1, 1); in tidy_node_cast_handler() 805 tidyBufFree(&buf); in tidy_node_cast_handler() 848 TidyBuffer buf; in tidy_add_default_properties() local 862 ADD_PROPERTY_STRINGL(obj->std.properties, value, buf.bp, buf.size ? buf.size-1 : 0); in tidy_add_default_properties() 1044 TidyBuffer buf; in php_tidy_parse_string() local [all …]
|
/PHP-5.5/ext/wddx/tests/ |
H A D | bug34306.phpt | 9 $buf = wddx_serialize_value($var, 'name');
|
/PHP-5.5/ext/wddx/ |
H A D | wddx.c | 399 php_wddx_add_chunk_ex(packet, buf, l); \ 410 char *buf; in php_wddx_serialize_string() local 413 …buf = php_escape_html_entities(Z_STRVAL_P(var), Z_STRLEN_P(var), &buf_len, 0, ENT_QUOTES, NULL TSR… in php_wddx_serialize_string() 415 php_wddx_add_chunk_ex(packet, buf, buf_len); in php_wddx_serialize_string() 417 efree(buf); in php_wddx_serialize_string()
|
/PHP-5.5/ext/xml/ |
H A D | compat.c | 586 if (data_len >= 4 || (parser->parser->input->buf->buffer->use + data_len >= 4)) { in XML_Parse() 590 char_count = parser->parser->input->buf->buffer->use; in XML_Parse() 595 memcpy(start, parser->parser->input->buf->buffer->content, (size_t)char_count); in XML_Parse()
|
H A D | xml.c | 722 char *buf = emalloc(Z_STRLEN_P(val) + 1); in _xml_zval_strdup() local 723 memcpy(buf, Z_STRVAL_P(val), Z_STRLEN_P(val)); in _xml_zval_strdup() 724 buf[Z_STRLEN_P(val)] = '\0'; in _xml_zval_strdup() 725 return buf; in _xml_zval_strdup()
|
/PHP-5.5/ext/xmlrpc/libxmlrpc/ |
H A D | xml_element.c | 332 if(buf && *buf) { in xml_elem_entity_escape() 337 bufcopy = buf; in xml_elem_entity_escape() 352 bufcopy=buf; in xml_elem_entity_escape() 512 if(buf) { in simplestring_out_fptr() 539 simplestring buf; in xml_elem_serialize_to_string() local 540 simplestring_init(&buf); in xml_elem_serialize_to_string() 545 *buf_len = buf.len; in xml_elem_serialize_to_string() 548 return buf.str; in xml_elem_serialize_to_string() 690 char buf[100] = ""; in xml_elem_parse_buf() local 727 snprintf(buf, in xml_elem_parse_buf() [all …]
|
H A D | xml_to_dandarpc.c | 106 struct buffer_st buf; in xml_element_to_DANDARPC_REQUEST_worker() local 107 base64_decode_xmlrpc(&buf, el->text.str, el->text.len); in xml_element_to_DANDARPC_REQUEST_worker() 108 XMLRPC_SetValueBase64(xCurrent, buf.data, buf.offset); in xml_element_to_DANDARPC_REQUEST_worker() 109 buffer_delete(&buf); in xml_element_to_DANDARPC_REQUEST_worker() 175 char buf[BUF_SIZE]; in DANDARPC_to_xml_element_worker() local 210 simplestring_add(&elem_val->text, buf); in DANDARPC_to_xml_element_worker() 215 simplestring_add(&elem_val->text, buf); in DANDARPC_to_xml_element_worker() 220 simplestring_add(&elem_val->text, buf); in DANDARPC_to_xml_element_worker() 228 struct buffer_st buf; in DANDARPC_to_xml_element_worker() local 231 simplestring_addn(&elem_val->text, buf.data, buf.offset ); in DANDARPC_to_xml_element_worker() [all …]
|
H A D | xml_to_soap.c | 92 char buf[128], *p; in parse_array_type_info() local 93 snprintf(buf, sizeof(buf), "%s", array_type); in parse_array_type_info() 94 p = strchr(buf, '['); in parse_array_type_info() 367 XMLRPC_SetValueBase64(xCurrent, buf.data, buf.offset); in xml_element_to_SOAP_REQUEST_worker() 368 buffer_delete(&buf); in xml_element_to_SOAP_REQUEST_worker() 439 char buf[BUF_SIZE]; in SOAP_to_xml_element_worker() local 459 snprintf(buf, sizeof(buf), "%s[%i]", type, XMLRPC_VectorSize(node)); in SOAP_to_xml_element_worker() 533 simplestring_addn(&elem_val->text, buf.data, buf.offset ); in SOAP_to_xml_element_worker() 534 buffer_delete(&buf); in SOAP_to_xml_element_worker() 630 char buf[128]; in SOAP_REQUEST_to_xml_element() local [all …]
|
H A D | xml_to_xmlrpc.c | 141 struct buffer_st buf; in xml_element_to_XMLRPC_REQUEST_worker() local 142 base64_decode_xmlrpc(&buf, el->text.str, el->text.len); in xml_element_to_XMLRPC_REQUEST_worker() 143 XMLRPC_SetValueBase64(current_val, buf.data, buf.offset); in xml_element_to_XMLRPC_REQUEST_worker() 144 buffer_delete(&buf); in xml_element_to_XMLRPC_REQUEST_worker() 194 char buf[BUF_SIZE]; in XMLRPC_to_xml_element_worker() local 222 simplestring_add(&elem_val->text, buf); in XMLRPC_to_xml_element_worker() 227 simplestring_add(&elem_val->text, buf); in XMLRPC_to_xml_element_worker() 234 simplestring_add(&elem_val->text, buf); in XMLRPC_to_xml_element_worker() 243 struct buffer_st buf; in XMLRPC_to_xml_element_worker() local 246 simplestring_addn(&elem_val->text, buf.data, buf.offset ); in XMLRPC_to_xml_element_worker() [all …]
|
H A D | xmlrpc.c | 189 char buf[30]; in date_from_ISO8601() local 193 char *p = (char *) text, *p2 = buf; in date_from_ISO8601() 198 if (p2-buf >= sizeof(buf)) { in date_from_ISO8601() 205 text = buf; in date_from_ISO8601() 275 static int date_to_ISO8601 (time_t value, char *buf, int length) { in date_to_ISO8601() argument 282 return strftime (buf, length, "%Y-%m-%dT%H:%M:%SZ", tm); in date_to_ISO8601() 284 return strftime(buf, length, "%Y%m%dT%H:%M:%SZ", tm); in date_to_ISO8601() 763 char buf[1024]; in map_expat_errors() local 764 snprintf(buf, sizeof(buf), in map_expat_errors() 780 xReturn = XMLRPC_UtilityCreateFault(code, buf); in map_expat_errors()
|
/PHP-5.5/ext/xmlwriter/ |
H A D | php_xmlwriter.c | 654 struct stat buf; in _xmlwriter_get_valid_file_path() local 655 if (php_sys_stat(file_dirname, &buf) != 0) { in _xmlwriter_get_valid_file_path()
|
/PHP-5.5/ext/zip/lib/ |
H A D | zip_close.c | 446 char buf[BUFSIZE]; in copy_data() local 453 nn = len > sizeof(buf) ? sizeof(buf) : len; in copy_data() 454 if ((n=fread(buf, 1, nn, fs)) < 0) { in copy_data() 463 if (fwrite(buf, 1, n, ft) != (size_t)n) { in copy_data() 479 char buf[BUFSIZE]; in copy_source() local 489 while ((n=zip_source_read(src, buf, sizeof(buf))) > 0) { in copy_source() 490 if (fwrite(buf, 1, n, ft) != (size_t)n) { in copy_source() 515 char buf[TORRENT_CRC_LEN+1]; in write_cdir() local 531 snprintf(buf, sizeof(buf), "%08lX", (long)crc); in write_cdir() 538 if (fwrite(buf, TORRENT_CRC_LEN, 1, out) != 1) { in write_cdir()
|
H A D | zip_dirent.c | 224 unsigned char buf[CDENTRYSIZE]; in _zip_dirent_read() local 245 if ((fread(buf, 1, size, fp)<size)) { in _zip_dirent_read() 249 cur = buf; in _zip_dirent_read() 558 _zip_readstr(unsigned char **buf, int len, int nulp, struct zip_error *error) in _zip_readstr() argument 568 memcpy(r, *buf, len); in _zip_readstr() 569 *buf += len; in _zip_readstr()
|
H A D | zip_error_strerror.c | 49 char buf[128], *s; in _zip_error_strerror() local 54 sprintf(buf, "Unknown error %d", err->zip_err); in _zip_error_strerror() 56 ss = buf; in _zip_error_strerror()
|
H A D | zip_error_to_str.c | 46 zip_error_to_str(char *buf, zip_uint64_t len, int ze, int se) in zip_error_to_str() argument 51 return snprintf(buf, len, "Unknown error %d", ze); in zip_error_to_str() 68 return snprintf(buf, len, "%s%s%s", in zip_error_to_str()
|
H A D | zip_filerange_crc.c | 48 Bytef buf[BUFSIZE]; in _zip_filerange_crc() local 60 if ((n=fread(buf, 1, n, fp)) <= 0) { in _zip_filerange_crc() 65 *crcp = crc32(*crcp, buf, n); in _zip_filerange_crc()
|
H A D | zip_open.c | 177 comlen = buf + buflen - eocd - EOCDLEN; in _zip_readcdir() 242 cdp = buf + (cd->offset - buf_offset); in _zip_readcdir() 357 char buf[8+1]; in _zip_check_torrentzip() local 367 memcpy(buf, za->cdir->comment+TORRENT_SIG_LEN, 8); in _zip_check_torrentzip() 368 buf[8] = '\0'; in _zip_check_torrentzip() 370 crc_should = strtoul(buf, &end, 16); in _zip_check_torrentzip() 514 unsigned char *buf, *match; in _zip_find_central_dir() local 534 buflen = fread(buf, 1, CDBUFSIZE, fp); in _zip_find_central_dir() 538 free(buf); in _zip_find_central_dir() 544 match = buf; in _zip_find_central_dir() [all …]
|
H A D | zip_source_buffer.c | 42 const char *buf, *data, *end; member 89 char *buf; in read_data() local 93 buf = (char *)data; in read_data() 97 z->buf = z->data; in read_data() 103 n = z->end - z->buf; in read_data() 108 memcpy(buf, z->buf, n); in read_data() 109 z->buf += n; in read_data()
|
H A D | zip_source_filep.c | 127 char *buf; in read_file() local 131 buf = (char *)data; in read_file() 170 if ((i=fread(buf, 1, n, z->f)) < 0) { in read_file()
|
H A D | zip_source_zip.c | 123 char b[8192], *buf; in read_zip() local 128 buf = (char *)data; in read_zip() 149 if ((i=zip_fread(z->zf, buf, n)) < 0) in read_zip()
|
/PHP-5.5/ext/zip/ |
H A D | zip_stream.c | 31 static size_t php_zip_ops_read(php_stream *stream, char *buf, size_t count TSRMLS_DC) in php_zip_ops_read() argument 37 n = zip_fread(self->zf, buf, count); in php_zip_ops_read() 58 static size_t php_zip_ops_write(php_stream *stream, const char *buf, size_t count TSRMLS_DC) in php_zip_ops_write() argument
|
/PHP-5.5/ext/zlib/tests/ |
H A D | gzreadgzwrite.phpt | 20 while ($buf = gzread($fp, 8092)) { 21 $data .= $buf;
|
H A D | gzreadgzwriteplain.phpt | 20 while ($buf = gzread($fp, 8192)) { 21 $data .= $buf; 34 while ($buf = gzread($fp, 8192)) { 35 $data .= $buf;
|
/PHP-5.5/ext/zlib/ |
H A D | zlib.c | 357 static inline int php_zlib_inflate_rounds(z_stream *Z, size_t max, char **buf, size_t *len) in php_zlib_inflate_rounds() argument 362 *buf = NULL; in php_zlib_inflate_rounds() 391 *buf = buffer.data; in php_zlib_inflate_rounds() 551 char buf[8192] = {0}; in PHP_FUNCTION() local 576 memset(buf, 0, sizeof(buf)); in PHP_FUNCTION() 578 while (php_stream_gets(stream, buf, sizeof(buf) - 1) != NULL) { in PHP_FUNCTION() 579 add_index_string(return_value, i++, buf, 1); in PHP_FUNCTION()
|