/PHP-7.4/ext/oci8/ |
H A D | oci8.c | 1198 char buf[32]; in PHP_MINFO_FUNCTION() local 1219 snprintf(buf, sizeof(buf), "%d.%d", OCI_MAJOR_VERSION, OCI_MINOR_VERSION); in PHP_MINFO_FUNCTION() 1221 snprintf(buf, sizeof(buf), "%s", PHP_OCI8_ORACLE_VERSION); in PHP_MINFO_FUNCTION() 1223 snprintf(buf, sizeof(buf), "Unknown"); in PHP_MINFO_FUNCTION() 1226 php_info_print_table_row(2, "Oracle Compile-time Instant Client Version", buf); in PHP_MINFO_FUNCTION() 1228 php_info_print_table_row(2, "Oracle Compile-time Version", buf); in PHP_MINFO_FUNCTION() 1247 snprintf(buf, sizeof(buf), ZEND_LONG_FMT, OCI_G(num_persistent)); in PHP_MINFO_FUNCTION() 1248 php_info_print_table_row(2, "Active Persistent Connections", buf); in PHP_MINFO_FUNCTION() 1249 snprintf(buf, sizeof(buf), ZEND_LONG_FMT, OCI_G(num_links)); in PHP_MINFO_FUNCTION() 1250 php_info_print_table_row(2, "Active Connections", buf); in PHP_MINFO_FUNCTION()
|
/PHP-7.4/ext/phar/ |
H A D | zip.c | 199 char buf[sizeof(locator) + 65536]; in phar_parse_zipfile() local 204 char *p = buf, *ext, *actual_alias = NULL; in phar_parse_zipfile() 223 if (!php_stream_read(fp, buf, size)) { in phar_parse_zipfile() 231 if ((p = phar_find_eocd(buf, size)) != NULL) { in phar_parse_zipfile() 258 if (PHAR_GET_16(locator.comment_len) != size - (metadata - buf)) { in phar_parse_zipfile() 556 …if (PHAR_GET_16(zipentry.comment_len) != php_stream_read(fp, buf, PHAR_GET_16(zipentry.comment_len… in phar_parse_zipfile() 561 p = buf; in phar_parse_zipfile() 568 …ZVAL_NEW_STR(&entry.metadata, zend_string_init(buf, PHAR_GET_16(zipentry.comment_len), entry.is_pe… in phar_parse_zipfile()
|
H A D | stream.c | 364 static ssize_t phar_stream_read(php_stream *stream, char *buf, size_t count) /* {{{ */ in phar_stream_read() argument 384 …got = php_stream_read(data->fp, buf, MIN(count, (size_t)(entry->uncompressed_filesize - data->posi… in phar_stream_read() 439 static ssize_t phar_stream_write(php_stream *stream, const char *buf, size_t count) /* {{{ */ in phar_stream_write() argument 444 if (count != php_stream_write(data->fp, buf, count)) { in phar_stream_write()
|
H A D | phar_object.c | 136 char *name = NULL, buf[8192]; in phar_file_action() local 201 PHPWRITE(buf, got); in phar_file_action() 3937 zend_string *buf; in PHP_METHOD() local 4003 buf = zend_string_alloc(len, 0); in PHP_METHOD() 4005 if (len != php_stream_read(fp, ZSTR_VAL(buf), len)) { in PHP_METHOD() 4011 zend_string_release_ex(buf, 0); in PHP_METHOD() 4024 ZSTR_VAL(buf)[len] = '\0'; in PHP_METHOD() local 4025 ZSTR_LEN(buf) = len; in PHP_METHOD() 4026 RETVAL_STR(buf); in PHP_METHOD() 4057 efree(buf); in PHP_METHOD() [all …]
|
/PHP-7.4/main/streams/ |
H A D | userspace.c | 592 static ssize_t php_userstreamop_write(php_stream *stream, const char *buf, size_t count) in php_userstreamop_write() argument 605 ZVAL_STRINGL(&args[0], (char*)buf, count); in php_userstreamop_write() 646 static ssize_t php_userstreamop_read(php_stream *stream, char *buf, size_t count) in php_userstreamop_read() argument 696 memcpy(buf, Z_STRVAL(retval), didread); in php_userstreamop_read() 1418 static ssize_t php_userstreamop_readdir(php_stream *stream, char *buf, size_t count) in php_userstreamop_readdir() argument 1425 php_stream_dirent *ent = (php_stream_dirent*)buf; in php_userstreamop_readdir()
|
/PHP-7.4/ext/zlib/ |
H A D | zlib_filter.c | 85 memcpy(data->strm.next_in, bucket->buf + bin, desired); in php_zlib_inflate_filter() 205 memcpy(data->strm.next_in, bucket->buf + bin, desired); in php_zlib_deflate_filter()
|
/PHP-7.4/ext/bz2/ |
H A D | bz2_filter.c | 115 memcpy(data->strm.next_in, bucket->buf + bin, desired); in php_bz2_decompress_filter() 238 memcpy(data->strm.next_in, bucket->buf + bin, desired); in php_bz2_compress_filter()
|
/PHP-7.4/ext/soap/ |
H A D | php_encoding.c | 633 xmlBufferPtr buf; in to_zval_user() local 638 buf = xmlBufferCreate(); in to_zval_user() 641 xmlBufferFree(buf); in to_zval_user() 2841 char *buf; in to_xml_datetime_ex() local 2861 buf = (char *) erealloc(buf, buf_len); in to_xml_datetime_ex() 2884 buf = (char *) erealloc(buf, real_len+1); in to_xml_datetime_ex() 2886 strcat(buf, tzbuf); in to_xml_datetime_ex() 2889 efree(buf); in to_xml_datetime_ex() 3062 xmlBufferPtr buf; in to_zval_any() local 3083 buf = xmlBufferCreate(); in to_zval_any() [all …]
|
/PHP-7.4/ext/pcre/pcre2lib/sljit/ |
H A D | sljitNativeSPARC_common.c | 295 struct sljit_memory_fragment *buf; in sljit_generate_code() local 316 buf = compiler->buf; in sljit_generate_code() 329 buf_ptr = (sljit_ins*)buf->memory; in sljit_generate_code() 330 buf_end = buf_ptr + (buf->used_size >> 2); in sljit_generate_code() 371 buf = buf->next; in sljit_generate_code() 372 } while (buf); in sljit_generate_code()
|
H A D | sljitNativeARM_64.c | 236 struct sljit_memory_fragment *buf; in sljit_generate_code() local 258 buf = compiler->buf; in sljit_generate_code() 271 buf_ptr = (sljit_ins*)buf->memory; in sljit_generate_code() 272 buf_end = buf_ptr + (buf->used_size >> 2); in sljit_generate_code() 308 buf = buf->next; in sljit_generate_code() 309 } while (buf); in sljit_generate_code()
|
/PHP-7.4/ext/mysqlnd/ |
H A D | mysqlnd_auth.c | 711 mysqlnd_sha256_get_rsa_from_pem(const char *buf, size_t len) in mysqlnd_sha256_get_rsa_from_pem() argument 713 BIO * bio = BIO_new_mem_buf(buf, len); in mysqlnd_sha256_get_rsa_from_pem() 758 mysqlnd_sha256_get_rsa_from_pem(const char *buf, size_t len) in mysqlnd_sha256_get_rsa_from_pem() argument 767 if (!CryptStringToBinaryA(buf, len, CRYPT_STRING_BASE64HEADER, NULL, &der_len, NULL, NULL)) { in mysqlnd_sha256_get_rsa_from_pem() 771 if (!CryptStringToBinaryA(buf, len, CRYPT_STRING_BASE64HEADER, der_buf, &der_len, NULL, NULL)) { in mysqlnd_sha256_get_rsa_from_pem()
|
/PHP-7.4/main/ |
H A D | SAPI.c | 895 char buf[255]; in sapi_send_headers() local 901 http_status_line.header = buf; in sapi_send_headers() 902 …http_status_line.header_len = slprintf(buf, sizeof(buf), "HTTP/1.0 %d X", SG(sapi_headers).http_re… in sapi_send_headers()
|
H A D | php_variables.c | 386 char buf[SAPI_POST_HANDLER_BUFSIZ] = {0}; in SAPI_POST_HANDLER_FUNC() local 387 ssize_t len = php_stream_read(s, buf, SAPI_POST_HANDLER_BUFSIZ); in SAPI_POST_HANDLER_FUNC() 390 smart_str_appendl(&post_data.str, buf, len); in SAPI_POST_HANDLER_FUNC()
|
H A D | php_network.h | 64 PHPAPI char *php_socket_strerror(long err, char *buf, size_t bufsize);
|
H A D | php.h | 314 PHPAPI size_t php_write(void *buf, size_t size);
|
/PHP-7.4/sapi/fpm/tests/ |
H A D | fcgi.inc | 416 while ($len && $buf=fread($this->_sock, $len)) { 417 $len -= strlen($buf); 418 $resp['content'] .= $buf; 422 $buf = fread($this->_sock, $resp['paddingLength']);
|
/PHP-7.4/sapi/phpdbg/ |
H A D | phpdbg.c | 131 if (source->buf) { in php_phpdbg_destroy_file_source() 132 efree(source->buf); in php_phpdbg_destroy_file_source() 958 static ssize_t phpdbg_stdiop_write(php_stream *stream, const char *buf, size_t count) { in phpdbg_stdiop_write() argument 969 phpdbg_script(P_STDOUT, "%.*s", (int) count, buf); in phpdbg_stdiop_write() 973 phpdbg_script_ex(PHPDBG_G(io)[PHPDBG_STDERR].fd, P_STDERR, "%.*s", (int) count, buf); in phpdbg_stdiop_write() 979 return PHPDBG_G(php_stdiop_write)(stream, buf, count); in phpdbg_stdiop_write() 2108 sprintf(ZSTR_VAL(backup_phpdbg_compile), "?>%.*s", (int) data->len, data->buf); in main()
|
/PHP-7.4/Zend/tests/ |
H A D | compare_002.phpt | 36 $buf = ob_get_clean(); 37 echo str_replace("\n", "", $buf);
|
H A D | compare_002_64bit.phpt | 36 $buf = ob_get_clean(); 37 echo str_replace("\n", "", $buf);
|
/PHP-7.4/ext/opcache/ |
H A D | ZendAccelerator.c | 1178 char buf[32]; in accel_make_persistent_key() local 1179 …char *res = zend_print_long_to_buf(buf + sizeof(buf) - 1, STRTAB_STR_TO_POS(&ZCSG(interned_strings… in accel_make_persistent_key() 1181 cwd_len = ZCG(cwd_key_len) = buf + sizeof(buf) - 1 - res; in accel_make_persistent_key() 1221 char buf[32]; in accel_make_persistent_key() local 1222 …char *res = zend_print_long_to_buf(buf + sizeof(buf) - 1, STRTAB_STR_TO_POS(&ZCSG(interned_strings… in accel_make_persistent_key() 1224 include_path_len = ZCG(include_path_key_len) = buf + sizeof(buf) - 1 - res; in accel_make_persistent_key() 2389 struct stat buf; in accel_activate() local 2391 if (stat("/", &buf) != 0) { in accel_activate() 2394 ZCG(root_hash) = buf.st_ino; in accel_activate() 2395 if (sizeof(buf.st_ino) > sizeof(ZCG(root_hash))) { in accel_activate() [all …]
|
/PHP-7.4/ext/mysqli/ |
H A D | php_mysqli_structs.h | 93 VAR_BUFFER *buf; member
|
/PHP-7.4/ext/hash/ |
H A D | hash_sha.c | 121 unsigned char buf[1024]; in PHP_FUNCTION() local 138 while ((n = php_stream_read(stream, buf, sizeof(buf))) > 0) { in PHP_FUNCTION() 139 PHP_SHA1Update(&context, buf, n); in PHP_FUNCTION()
|
/PHP-7.4/sapi/fpm/ |
H A D | config.m4 | 245 char buf[128]; 247 sprintf(buf, "/proc/%d/$proc_mem_file", getpid()); 248 fd = open(buf, O_RDONLY);
|
/PHP-7.4/ext/ffi/ |
H A D | php_ffi.h | 52 unsigned const char *buf; variable
|
/PHP-7.4/ext/curl/ |
H A D | interface.c | 1490 smart_str_appendl(&t->buf, data, (int) length); in curl_write() 1710 smart_str_appendl(&ch->handlers->write->buf, data, (int) length); in curl_write_header() 1761 static int curl_debug(CURL *cp, curl_infotype type, char *buf, size_t buf_len, void *ctx) /* {{{ */ in curl_debug() argument 1769 ch->header.str = zend_string_init(buf, buf_len, 0); in curl_debug() 3211 smart_str_free(&ch->handlers->write->buf); in _php_curl_cleanup_handle() 3246 smart_str_free(&ch->handlers->write->buf); in PHP_FUNCTION() 3258 if (ch->handlers->write->method == PHP_CURL_RETURN && ch->handlers->write->buf.s) { in PHP_FUNCTION() 3259 smart_str_0(&ch->handlers->write->buf); in PHP_FUNCTION() 3260 RETURN_STR_COPY(ch->handlers->write->buf.s); in PHP_FUNCTION() 3652 smart_str_free(&ch->handlers->write->buf); in _php_curl_close_ex()
|