/PHP-5.4/ext/dom/ |
H A D | document.c | 1803 xmlBufferPtr buf; in PHP_FUNCTION() local 1826 buf = xmlBufferCreate(); in PHP_FUNCTION() 1827 if (!buf) { in PHP_FUNCTION() 1839 mem = (xmlChar*) xmlBufferContent(buf); in PHP_FUNCTION() 1841 xmlBufferFree(buf); in PHP_FUNCTION() 1845 xmlBufferFree(buf); in PHP_FUNCTION() 2318 xmlBufferPtr buf; in PHP_FUNCTION() local 2343 buf = xmlBufferCreate(); in PHP_FUNCTION() 2344 if (!buf) { in PHP_FUNCTION() 2363 size = htmlNodeDump(buf, docp, node); in PHP_FUNCTION() [all …]
|
/PHP-5.4/sapi/thttpd/ |
H A D | thttpd_patch | 254 - char buf[1000]; 274 - (void) my_snprintf( buf, sizeof(buf), 318 - (void) my_snprintf( buf, sizeof(buf), 327 - (void) my_snprintf( buf, sizeof(buf), 346 - (void) my_snprintf( buf, sizeof(buf), 383 (void) my_snprintf( buf, sizeof(buf), 403 r = fread( buf, 1, sizeof(buf) - 1, fp ); 607 cp = &buf[11]; 701 char buf[2]; 704 - r = recv( hc->conn_fd, buf, sizeof(buf), MSG_PEEK ); [all …]
|
/PHP-5.4/ext/standard/ |
H A D | sha1.c | 72 unsigned char buf[1024]; in PHP_FUNCTION() local 89 while ((n = php_stream_read(stream, buf, sizeof(buf))) > 0) { in PHP_FUNCTION() 90 PHP_SHA1Update(&context, buf, n); in PHP_FUNCTION()
|
H A D | file.h | 82 …m, char delimiter, char enclosure, char escape_char, size_t buf_len, char *buf, zval *return_value…
|
H A D | string.c | 4371 char *buf; local 4390 buf = estrndup(str, str_len); 4641 buf = estrndup(rbuf, len); 4642 c = *buf; 4644 p = buf; 4846 if (state==3 && p > buf+6 4891 efree(buf); 4989 unsigned char *buf; local 5007 chars[*buf]++; 5008 buf++; [all …]
|
/PHP-5.4/Zend/ |
H A D | zend_multibyte.h | 27 …ding_filter)(unsigned char **str, size_t *str_length, const unsigned char *buf, size_t length TSRM…
|
H A D | zend_language_scanner.l | 477 char *buf; in open_file_for_scanning() local 487 if (zend_stream_fixup(file_handle, &buf, &size TSRMLS_CC) == FAILURE) { in open_file_for_scanning() 505 SCNG(script_org) = (unsigned char*)buf; in open_file_for_scanning() 516 buf = (char*)SCNG(script_filtered); in open_file_for_scanning() 520 SCNG(yy_start) = (unsigned char *)buf - offset; in open_file_for_scanning() 521 yy_scan_buffer(buf, size TSRMLS_CC); in open_file_for_scanning() 652 char *buf; in zend_prepare_string_for_scanning() local 669 buf = str->value.str.val; in zend_prepare_string_for_scanning() 673 SCNG(script_org) = (unsigned char*)buf; in zend_prepare_string_for_scanning() 684 buf = (char*)SCNG(script_filtered); in zend_prepare_string_for_scanning() [all …]
|
H A D | acinclude.m4 | 61 AC_TRY_RUN([main() {char buf[20];exit(sprintf(buf,"testing 123")!=11); }],[
|
/PHP-5.4/ext/pgsql/ |
H A D | pgsql.c | 343 ZEND_ARG_INFO(0, buf) 1194 char buf[256]; in PHP_MINFO_FUNCTION() local 1212 snprintf(buf, sizeof(buf), "%ld", PGG(num_persistent)); in PHP_MINFO_FUNCTION() 1214 snprintf(buf, sizeof(buf), "%ld", PGG(num_links)); in PHP_MINFO_FUNCTION() 3372 char *buf; local 3387 efree(buf); 4299 start = buf; 6157 char buf[256]; local 6219 smart_str_appendl(&querystr, buf, snprintf(buf, sizeof(buf), "%F", Z_DVAL_PP(val))); 6302 char buf[256]; local [all …]
|
/PHP-5.4/ext/pdo_pgsql/ |
H A D | pgsql_statement.c | 188 char buf[100]; /* stmt_name == "pdo_crsr_%08x" */ in pgsql_stmt_execute() local 190 snprintf(buf, sizeof(buf), "DEALLOCATE %s", S->stmt_name); in pgsql_stmt_execute() 191 res = PQexec(H->server, buf); in pgsql_stmt_execute()
|
/PHP-5.4/ext/soap/ |
H A D | php_xml.c | 134 xmlDocPtr soap_xmlParseMemory(const void *buf, size_t buf_size) in soap_xmlParseMemory() argument 144 ctxt = xmlCreateMemoryParserCtxt(buf, buf_size); in soap_xmlParseMemory()
|
H A D | php_xml.h | 34 xmlDocPtr soap_xmlParseMemory(const void *buf, size_t size);
|
/PHP-5.4/ext/mbstring/oniguruma/ |
H A D | onigposix.h | 157 ONIG_EXTERN size_t regerror P_((int code, const regex_t* reg, char* buf, size_t size));
|
/PHP-5.4/ext/hash/ |
H A D | php_hash.h | 34 typedef void (*php_hash_update_func_t)(void *context, const unsigned char *buf, unsigned int count);
|
/PHP-5.4/ext/curl/ |
H A D | interface.c | 1017 smart_str_appendl(&t->buf, data, (int) length); in curl_write() 1312 ch->header.str = estrndup(buf, buf_len); in curl_debug() 1350 strlcpy(buf, Z_STRVAL_P(retval), Z_STRLEN_P(retval)); in curl_passwd() 2318 if (ch->handlers->write->buf.len > 0) { in _php_curl_cleanup_handle() 2319 smart_str_free(&ch->handlers->write->buf); in _php_curl_cleanup_handle() 2353 if (ch->handlers->write->buf.len > 0) { in PHP_FUNCTION() 2354 smart_str_free(&ch->handlers->write->buf); in PHP_FUNCTION() 2368 smart_str_0(&ch->handlers->write->buf); in PHP_FUNCTION() 2369 RETURN_STRINGL(ch->handlers->write->buf.c, ch->handlers->write->buf.len, 1); in PHP_FUNCTION() 2703 if (ch->handlers->write->buf.len > 0) { in _php_curl_close_ex() [all …]
|
/PHP-5.4/main/ |
H A D | output.c | 60 …int php_output_handler_append(php_output_handler *handler, const php_output_buffer *buf TSRMLS_DC); 894 … int php_output_handler_append(php_output_handler *handler, const php_output_buffer *buf TSRMLS_DC) in php_output_handler_append() 896 if (buf->used) { in php_output_handler_append() 899 if ((handler->buffer.size - handler->buffer.used) <= buf->used) { in php_output_handler_append() 901 …size_t grow_buf = PHP_OUTPUT_HANDLER_INITBUF_SIZE(buf->used - (handler->buffer.size - handler->buf… in php_output_handler_append() 907 memcpy(handler->buffer.data + handler->buffer.used, buf->data, buf->used); in php_output_handler_append() 908 handler->buffer.used += buf->used; in php_output_handler_append()
|
H A D | php_variables.c | 421 char buf[128]; in _php_import_environment_variables() local 422 char **env, *p, *t = buf; in _php_import_environment_variables() 423 size_t alloc_size = sizeof(buf); in _php_import_environment_variables() 434 t = (t == buf ? emalloc(alloc_size): erealloc(t, alloc_size)); in _php_import_environment_variables() 440 if (t != buf && t != NULL) { in _php_import_environment_variables()
|
/PHP-5.4/ext/ftp/ |
H A D | ftp.h | 51 char buf[FTP_BUFSIZE]; /* data buffer */ member
|
/PHP-5.4/ext/libxml/ |
H A D | libxml.c | 515 char *buf; in php_libxml_internal_error_handler() local 520 len = vspprintf(&buf, 0, *msg, ap); in php_libxml_internal_error_handler() 524 while (len_iter && buf[--len_iter] == '\n') { in php_libxml_internal_error_handler() 525 buf[len_iter] = '\0'; in php_libxml_internal_error_handler() 529 smart_str_appendl(&LIBXML(error_buffer), buf, len); in php_libxml_internal_error_handler() 531 efree(buf); in php_libxml_internal_error_handler()
|
/PHP-5.4/sapi/apache2filter/ |
H A D | sapi_apache2.c | 156 php_apache_sapi_read_post(char *buf, uint count_bytes TSRMLS_DC) in php_apache_sapi_read_post() argument 166 memcpy(buf, ctx->post_data + ctx->post_idx, n); in php_apache_sapi_read_post() 715 static size_t php_apache_read_stream(void *handle, char *buf, size_t wantlen TSRMLS_DC) in php_apache_read_stream() argument 729 apr_brigade_flatten(rbb, buf, &readlen); in php_apache_read_stream()
|
/PHP-5.4/ext/pdo_firebird/ |
H A D | firebird_statement.c | 215 #define FETCH_BUF(buf,type,len,lenvar) ((buf) = (buf) ? (buf) : \ argument
|
/PHP-5.4/ext/exif/ |
H A D | exif.c | 1047 static unsigned char buf[4096+1]; in exif_char_dump() local 1051 p += slprintf(buf+p, sizeof(buf)-p, "\nDump Len: %08X (%d)", len, len); in exif_char_dump() 1053 for(i=0; i<len+15 && p+n<=sizeof(buf); i++) { in exif_char_dump() 1055 p += slprintf(buf+p, sizeof(buf)-p, "\n%08X: ", i+offset); in exif_char_dump() 1059 p += slprintf(buf+p, sizeof(buf)-p, "%02X ", c); in exif_char_dump() 1063 p += slprintf(buf+p, sizeof(buf)-p, " "); in exif_char_dump() 1066 p += slprintf(buf+p, sizeof(buf)-p, " %s", tmp); in exif_char_dump() 1073 buf[sizeof(buf)-1] = '\0'; in exif_char_dump() 1074 return buf; in exif_char_dump() 1581 char *buf; in exif_error_docref() local [all …]
|
/PHP-5.4/ext/spl/ |
H A D | spl_directory.c | 2058 char *buf; in spl_filesystem_file_read() local 2074 efree(buf); in spl_filesystem_file_read() 2075 buf = NULL; in spl_filesystem_file_read() 2077 buf[line_len] = '\0'; in spl_filesystem_file_read() 2083 if (!buf) { in spl_filesystem_file_read() 2088 line_len = strcspn(buf, "\r\n"); in spl_filesystem_file_read() 2089 buf[line_len] = '\0'; in spl_filesystem_file_read() 2770 char buf[2]; in SPL_METHOD() local 2783 buf[0] = result; in SPL_METHOD() 2784 buf[1] = '\0'; in SPL_METHOD() [all …]
|
/PHP-5.4/ext/oci8/ |
H A D | oci8.c | 1338 char buf[32]; in PHP_MINFO_FUNCTION() local 1346 snprintf(buf, sizeof(buf), "%ld", OCI_G(num_persistent)); in PHP_MINFO_FUNCTION() 1347 php_info_print_table_row(2, "Active Persistent Connections", buf); in PHP_MINFO_FUNCTION() 1348 snprintf(buf, sizeof(buf), "%ld", OCI_G(num_links)); in PHP_MINFO_FUNCTION() 1349 php_info_print_table_row(2, "Active Connections", buf); in PHP_MINFO_FUNCTION() 1357 snprintf(buf, sizeof(buf), "%d.%d", OCI_MAJOR_VERSION, OCI_MINOR_VERSION); in PHP_MINFO_FUNCTION() 1359 snprintf(buf, sizeof(buf), "%s", PHP_OCI8_ORACLE_VERSION); in PHP_MINFO_FUNCTION() 1361 snprintf(buf, sizeof(buf), "Unknown"); in PHP_MINFO_FUNCTION() 1364 php_info_print_table_row(2, "Oracle Instant Client Version", buf); in PHP_MINFO_FUNCTION() 1366 php_info_print_table_row(2, "Oracle Version", buf); in PHP_MINFO_FUNCTION()
|
/PHP-5.4/ext/fileinfo/libmagic/ |
H A D | apprentice.c | 448 if (ms->o.buf) { in file_ms_free() 449 efree(ms->o.buf); in file_ms_free() 472 ms->o.buf = ms->o.pbuf = NULL; in file_ms_alloc() 2821 char *buf; local 2844 spprintf(&buf, MAXPATHLEN, "%.*s.mime%s", (int)(q - fn), fn, ext); 2846 if (VCWD_ACCESS(buf, R_OK) == 0) { 2848 if (VCWD_ACCESS(buf, R_OK) != -1) { 2851 return buf; 2853 efree(buf); 2855 spprintf(&buf, MAXPATHLEN, "%.*s%s", (int)(q - fn), fn, ext); [all …]
|