/PHP-7.4/ext/openssl/ |
H A D | xp_ssl.c | 760 BIO *buffer; in php_openssl_load_stream_cafile() local 784 buffer = BIO_new(BIO_s_mem()); in php_openssl_load_stream_cafile() 794 BIO_puts(buffer, line); in php_openssl_load_stream_cafile() 810 BIO_puts(buffer, line); in php_openssl_load_stream_cafile() 812 cert = PEM_read_bio_X509(buffer, NULL, 0, NULL); in php_openssl_load_stream_cafile() 813 BIO_free(buffer); in php_openssl_load_stream_cafile() 825 BIO_free(buffer); in php_openssl_load_stream_cafile()
|
/PHP-7.4/ext/ftp/ |
H A D | ftp.c | 626 char *buffer; in ftp_chmod() local 633 buffer_len = spprintf(&buffer, 0, "CHMOD %o %s", mode, filename); in ftp_chmod() 635 if (!buffer) { in ftp_chmod() 639 if (!ftp_putcmd(ftp, "SITE", sizeof("SITE")-1, buffer, buffer_len)) { in ftp_chmod() 640 efree(buffer); in ftp_chmod() 644 efree(buffer); in ftp_chmod() 659 char buffer[64]; in ftp_alloc() local 666 buffer_len = snprintf(buffer, sizeof(buffer) - 1, ZEND_LONG_FMT, size); in ftp_alloc() 672 if (!ftp_putcmd(ftp, "ALLO", sizeof("ALLO")-1, buffer, buffer_len)) { in ftp_alloc()
|
/PHP-7.4/ext/simplexml/ |
H A D | simplexml.c | 390 xmlChar *buffer; in change_node_zval() local 406 buffer = xmlEncodeEntitiesReentrant(node->doc, (xmlChar *)Z_STRVAL_P(value)); in change_node_zval() 408 if (buffer) { in change_node_zval() 409 xmlNodeSetContent(node, buffer); in change_node_zval() 410 xmlFree(buffer); in change_node_zval() 1492 return_content = (char *)outbuf->buffer->content; in SXE_METHOD() 1493 return_len = outbuf->buffer->use; in SXE_METHOD()
|
/PHP-7.4/ext/posix/ |
H A D | posix.c | 757 char buffer[L_ctermid]; in PHP_FUNCTION() local 761 if (NULL == ctermid(buffer)) { in PHP_FUNCTION() 769 RETURN_STRING(buffer); in PHP_FUNCTION() 888 char buffer[MAXPATHLEN]; in PHP_FUNCTION() local 893 p = VCWD_GETCWD(buffer, MAXPATHLEN); in PHP_FUNCTION() 899 RETURN_STRING(buffer); in PHP_FUNCTION()
|
/PHP-7.4/ext/mysqlnd/ |
H A D | mysqlnd_ps.c | 2148 if (stmt->execute_cmd_buffer.buffer) { in MYSQLND_METHOD_PRIVATE() 2149 mnd_efree(stmt->execute_cmd_buffer.buffer); in MYSQLND_METHOD_PRIVATE() 2150 stmt->execute_cmd_buffer.buffer = NULL; in MYSQLND_METHOD_PRIVATE()
|
H A D | mysqlnd_auth.c | 538 php_mysqlnd_crypt(zend_uchar *buffer, const zend_uchar *s1, const zend_uchar *s2, size_t len) in php_mysqlnd_crypt() argument 542 *buffer++= *s1++ ^ *s2++; in php_mysqlnd_crypt() 549 void php_mysqlnd_scramble(zend_uchar * const buffer, const zend_uchar * const scramble, const zend_… in php_mysqlnd_scramble() argument 569 PHP_SHA1Final(buffer, &context); in php_mysqlnd_scramble() 572 php_mysqlnd_crypt(buffer, (const zend_uchar *)buffer, (const zend_uchar *)sha1, SHA1_MAX_LENGTH); in php_mysqlnd_scramble() 985 void php_mysqlnd_scramble_sha2(zend_uchar * const buffer, const zend_uchar * const scramble, const … in php_mysqlnd_scramble_sha2() argument 1005 PHP_SHA256Final(buffer, &context); in php_mysqlnd_scramble_sha2() 1008 php_mysqlnd_crypt(buffer, (const zend_uchar *)sha1, (const zend_uchar *)buffer, SHA256_LENGTH); in php_mysqlnd_scramble_sha2()
|
/PHP-7.4/sapi/litespeed/ |
H A D | lsapi_main.c | 294 static size_t sapi_lsapi_read_post(char *buffer, size_t count_bytes) in sapi_lsapi_read_post() argument 297 ssize_t rv = LSAPI_ReadReqBody(buffer, (unsigned long long)count_bytes); in sapi_lsapi_read_post()
|
/PHP-7.4/sapi/phpdbg/ |
H A D | phpdbg_prompt.c | 300 void phpdbg_string_init(char *buffer) { in phpdbg_string_init() argument 302 char *str = strtok(buffer, "\n"); in phpdbg_string_init()
|
/PHP-7.4/ext/phar/ |
H A D | zip.c | 27 static inline void phar_write_32(char buffer[4], uint32_t value) in phar_write_32() 29 buffer[3] = (unsigned char) ((value & 0xff000000) >> 24); in phar_write_32() 30 buffer[2] = (unsigned char) ((value & 0xff0000) >> 16); in phar_write_32() 31 buffer[1] = (unsigned char) ((value & 0xff00) >> 8); in phar_write_32() 32 buffer[0] = (unsigned char) (value & 0xff); in phar_write_32() 34 static inline void phar_write_16(char buffer[2], uint32_t value) in phar_write_16() 36 buffer[1] = (unsigned char) ((value & 0xff00) >> 8); in phar_write_16() 37 buffer[0] = (unsigned char) (value & 0xff); in phar_write_16()
|
H A D | tar.c | 314 # define PHAR_GET_32(buffer) \ in phar_parse_tarfile() argument 315 (((((unsigned char*)(buffer))[3]) << 24) \ in phar_parse_tarfile() 316 | ((((unsigned char*)(buffer))[2]) << 16) \ in phar_parse_tarfile() 317 | ((((unsigned char*)(buffer))[1]) << 8) \ in phar_parse_tarfile() 318 | (((unsigned char*)(buffer))[0])) in phar_parse_tarfile() 320 # define PHAR_GET_32(buffer) (uint32_t) *(buffer) in phar_parse_tarfile() argument 1252 # define PHAR_SET_32(var, buffer) \ in phar_tar_flush() argument 1254 | ((((unsigned char*)&(buffer))[2]) << 16) \ in phar_tar_flush() 1255 | ((((unsigned char*)&(buffer))[1]) << 8) \ in phar_tar_flush() 1256 | (((unsigned char*)&(buffer))[0])) in phar_tar_flush() [all …]
|
/PHP-7.4/main/ |
H A D | rfc1867.c | 218 char *buffer; member 247 if (self->bytes_in_buffer > 0 && self->buf_begin != self->buffer) { in fill_buffer() 248 memmove(self->buffer, self->buf_begin, self->bytes_in_buffer); in fill_buffer() 251 self->buf_begin = self->buffer; in fill_buffer() 259 char *buf = self->buffer + self->bytes_in_buffer; in fill_buffer() 291 self->buffer = (char *) ecalloc(1, minsize + 1); in multipart_buffer_new() 298 self->buf_begin = self->buffer; in multipart_buffer_new() 1314 if (mbuff->buffer) efree(mbuff->buffer);
|
/PHP-7.4/tests/basic/ |
H A D | bug80384.phpt | 2 Bug #80384 large reads cause filters to internally buffer large amounts of memory
|
/PHP-7.4/ext/pdo_mysql/ |
H A D | mysql_statement.c | 38 # define pdo_free_bound_result(res) efree(res.buffer) 190 efree(S->bound_result[i].buffer); in pdo_mysql_stmt_execute_prepared_libmysql() 245 S->bound_result[i].buffer = emalloc(S->bound_result[i].buffer_length); in pdo_mysql_stmt_execute_prepared_libmysql() 511 b->buffer = NULL; in pdo_mysql_stmt_param_hook() 587 b->buffer = Z_STRVAL_P(parameter); in pdo_mysql_stmt_param_hook() 594 b->buffer = &Z_LVAL_P(parameter); in pdo_mysql_stmt_param_hook() 599 b->buffer = &Z_DVAL_P(parameter); in pdo_mysql_stmt_param_hook() 762 *ptr = S->bound_result[colno].buffer; in pdo_mysql_stmt_get_col()
|
/PHP-7.4/build/ |
H A D | php.m4 | 1470 ssize_t reader(void *cookie, char *buffer, size_t size) 1472 ssize_t writer(void *cookie, const char *buffer, size_t size) 2236 CRYPTD buffer; 2237 crypt_r("passwd", "hash", &buffer); 2245 struct crypt_data buffer; 2246 crypt_r("passwd", "hash", &buffer); 2256 struct crypt_data buffer; 2257 crypt_r("passwd", "hash", &buffer);
|
H A D | libtool.m4 | 816 # (any single argument exceeding 2000 bytes causes a buffer overrun
|
/PHP-7.4/ext/mysqli/tests/ |
H A D | mysqli_stmt_bind_result.phpt | 285 a hugge max_length(type) = 4GB bind buffer */
|
H A D | 061.phpt | 26 function my_read($fp, &$buffer, $buflen, &$error) { 27 $buffer = strrev(fread($fp, $buflen)); 28 return(strlen($buffer));
|
/PHP-7.4/ext/standard/ |
H A D | iptc.c | 322 unsigned char *buffer, recnum, dataset; in PHP_FUNCTION() local 331 buffer = (unsigned char *)str; in PHP_FUNCTION() 334 if ((buffer[inx] == 0x1c) && ((buffer[inx+1] == 0x01) || (buffer[inx+1] == 0x02))){ in PHP_FUNCTION() 342 if (buffer[ inx++ ] != 0x1c) { in PHP_FUNCTION() 349 dataset = buffer[ inx++ ]; in PHP_FUNCTION() 350 recnum = buffer[ inx++ ]; in PHP_FUNCTION() 352 if (buffer[ inx ] & (unsigned char) 0x80) { /* long tag */ in PHP_FUNCTION() 356 len = (((zend_long) buffer[ inx + 2 ]) << 24) + (((zend_long) buffer[ inx + 3 ]) << 16) + in PHP_FUNCTION() 357 (((zend_long) buffer[ inx + 4 ]) << 8) + (((zend_long) buffer[ inx + 5 ])); in PHP_FUNCTION() 360 len = (((unsigned short) buffer[ inx ])<<8) | (unsigned short)buffer[ inx+1 ]; in PHP_FUNCTION() [all …]
|
H A D | config.m4 | 14 char buffer[64]; 27 fgets(buffer, sizeof(buffer), fp); 30 fgets(buffer, sizeof(buffer), fp); 31 if (0 != strcmp(buffer, "line 1\n")) 33 fgets(buffer, sizeof(buffer), fp); 34 if (0 != strcmp(buffer, "line 3\n"))
|
/PHP-7.4/ext/fileinfo/libmagic/ |
H A D | file.h | 153 struct buffer { struct 466 protected int file_tryelf(struct magic_set *, const struct buffer *); 467 protected int file_trycdf(struct magic_set *, const struct buffer *); 469 protected int file_zmagic(struct magic_set *, const struct buffer *, 472 protected int file_ascmagic(struct magic_set *, const struct buffer *, 476 protected int file_encoding(struct magic_set *, const struct buffer *, 478 protected int file_is_json(struct magic_set *, const struct buffer *); 479 protected int file_is_tar(struct magic_set *, const struct buffer *); 509 protected void buffer_init(struct buffer *, int, const zend_stat_t *, 511 protected void buffer_fini(struct buffer *); [all …]
|
/PHP-7.4/ |
H A D | php.ini-development | 197 ; Turning on this setting and managing its maximum buffer size can yield some 207 ; On = Enabled and buffer is unlimited. (Use with caution) 209 ; Integer = Enables the buffer and sets its maximum size in bytes. 233 ; output buffer. You can set target tags by this configuration. 250 ; Valid values for this option are 'off', 'on', or a specific buffer size 1206 ; Size of a pre-allocated buffer used when sending commands to MySQL in bytes. 1209 ; Size of a pre-allocated buffer used for reading data sent by the server in 1641 ; mb_output_handler must be registered as output buffer to function.
|
H A D | php.ini-production | 197 ; Turning on this setting and managing its maximum buffer size can yield some 207 ; On = Enabled and buffer is unlimited. (Use with caution) 209 ; Integer = Enables the buffer and sets its maximum size in bytes. 233 ; output buffer. You can set target tags by this configuration. 250 ; Valid values for this option are 'off', 'on', or a specific buffer size 1206 ; Size of a pre-allocated buffer used when sending commands to MySQL in bytes. 1209 ; Size of a pre-allocated buffer used for reading data sent by the server in 1641 ; mb_output_handler must be registered as output buffer to function.
|
/PHP-7.4/ext/fileinfo/tests/ |
H A D | clone_serialize.phpt | 7 var_dump($finfo->buffer("Test string")); 10 var_dump($finfo2->buffer("Test string")); 16 var_dump($finfo3->buffer("Test string")); 26 Warning: finfo::buffer(): The invalid fileinfo object. in %s on line %d
|
/PHP-7.4/ext/fileinfo/ |
H A D | fileinfo.c | 167 ZEND_ME_MAPPING(buffer, finfo_buffer, arginfo_finfo_method_buffer, ZEND_ACC_PUBLIC) 436 char *ret_val = NULL, *buffer = NULL; in _php_finfo_get_type() local 455 buffer = Z_STRVAL_P(what); in _php_finfo_get_type() 475 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "s|lr", &buffer, &buffer_len, &options, &zcontext) == F… in _php_finfo_get_type() 481 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "rs|lr", &zfinfo, &buffer, &buffer_len, &options, &zcon… in _php_finfo_get_type() 498 ret_val = (char *) magic_buffer(magic, buffer, buffer_len); in _php_finfo_get_type() 528 if (buffer == NULL || !*buffer) { in _php_finfo_get_type() 533 if (CHECK_NULL_PATH(buffer, buffer_len)) { in _php_finfo_get_type() 539 wrap = php_stream_locate_url_wrapper(buffer, &tmp2, 0); in _php_finfo_get_type() 546 if (php_stream_stat_path_ex(buffer, 0, &ssb, context) == SUCCESS) { in _php_finfo_get_type() [all …]
|
/PHP-7.4/ext/gmp/ |
H A D | gmp.c | 568 static int gmp_serialize(zval *object, unsigned char **buffer, size_t *buf_len, zend_serialize_data… in gmp_serialize() argument 585 *buffer = (unsigned char *) estrndup(ZSTR_VAL(buf.s), ZSTR_LEN(buf.s)); in gmp_serialize()
|