/PHP-7.4/ext/pcre/pcre2lib/ |
H A D | pcre2_error.c | 296 pcre2_get_error_message(int enumber, PCRE2_UCHAR *buffer, PCRE2_SIZE size) in pcre2_get_error_message() argument 330 buffer[i] = 0; /* Terminate partial message */ in pcre2_get_error_message() 333 buffer[i] = *message++; in pcre2_get_error_message() 336 buffer[i] = 0; in pcre2_get_error_message()
|
/PHP-7.4/ext/fileinfo/tests/ |
H A D | bug69107.phpt | 11 var_dump($finfo->buffer("<?php\nclass A{}")); 12 var_dump($finfo->buffer("<?php class A{}")); 13 var_dump($finfo->buffer("<?php\tclass A{}")); 14 var_dump($finfo->buffer("<?php\n\rclass A{}"));
|
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
|
H A D | bug79283.phpt | 2 Bug #79283 (Segfault in libmagic patch contains a buffer overflow) 15 var_dump($finfo->buffer("buffer\n"));
|
/PHP-7.4/tests/output/ |
H A D | ob_end_clean_basic_001.phpt | 23 Notice: ob_end_clean(): failed to delete buffer. No buffer to delete in %s on line 7 28 Notice: ob_end_clean(): failed to delete buffer. No buffer to delete in %s on line 16
|
H A D | ob_clean_basic_001.phpt | 6 * Description: Clean (delete) the current output buffer 21 echo "Ensure the buffer is still active after the clean."; 32 Notice: ob_clean(): failed to delete buffer. No buffer to delete in %s on line 12 35 Ensure the buffer is still active after the clean."
|
H A D | ob_implicit_flush_basic_002.phpt | 13 // Start a user buffer 18 echo "This is being written to a user buffer.\n"; 20 echo "because implicit flushing affects only the top level buffer, not user buffers.\n"; 22 // Wipe the user buffer. Nothing should have been flushed.
|
H A D | ob_start_error_002.phpt | 25 Notice: ob_start(): failed to create buffer in %s on line 13 30 Notice: ob_start(): failed to create buffer in %s on line 14 35 Notice: ob_start(): failed to create buffer in %s on line 15 40 Notice: ob_start(): failed to create buffer in %s on line 16
|
H A D | ob_get_level_basic_001.phpt | 6 * Description: Return the nesting level of the output buffer 45 Notice: ob_end_flush(): failed to delete and flush buffer. No buffer to delete or flush in %s on li…
|
H A D | ob_start_basic_006.phpt | 2 ob_start(): ensure multiple buffer initialization with a single call using arrays is not supported … 79 Notice: ob_start(): failed to create buffer in %s on line 44 87 Notice: ob_start(): failed to create buffer in %s on line 47 95 Notice: ob_start(): failed to create buffer in %s on line 50 103 Notice: ob_start(): failed to create buffer in %s on line 53 111 Notice: ob_start(): failed to create buffer in %s on line 56 131 Notice: ob_start(): failed to create buffer in %s on line 68
|
/PHP-7.4/ext/intl/idn/ |
H A D | idn.c | 129 zend_string *buffer; in php_intl_idn_to_46() local 139 buffer = zend_string_alloc(buffer_capac, 0); in php_intl_idn_to_46() 141 ZSTR_VAL(buffer), buffer_capac, &info, &status); in php_intl_idn_to_46() 144 zend_string_efree(buffer); in php_intl_idn_to_46() 149 buffer = zend_string_alloc(buffer_capac, 0); in php_intl_idn_to_46() 151 ZSTR_VAL(buffer), buffer_capac, &info, &status); in php_intl_idn_to_46() 154 zend_string_efree(buffer); in php_intl_idn_to_46() 159 ZSTR_VAL(buffer)[len] = '\0'; in php_intl_idn_to_46() local 160 ZSTR_LEN(buffer) = len; in php_intl_idn_to_46() 163 RETVAL_STR_COPY(buffer); in php_intl_idn_to_46() [all …]
|
/PHP-7.4/sapi/phpdbg/ |
H A D | phpdbg_cmd.c | 42 buffer[pos] = 0; in ZEND_EXTERN_MODULE_GLOBALS() 44 return buffer; in ZEND_EXTERN_MODULE_GLOBALS() 788 if (buffer && isspace(*buffer)) { in phpdbg_read_input() 794 efree(buffer); in phpdbg_read_input() 795 buffer = trimmed; in phpdbg_read_input() 798 if (buffer && strlen(buffer)) { in phpdbg_read_input() 802 PHPDBG_G(buffer) = strdup(buffer); in phpdbg_read_input() 804 if (buffer) { in phpdbg_read_input() 805 efree(buffer); in phpdbg_read_input() 807 buffer = estrdup(PHPDBG_G(buffer)); in phpdbg_read_input() [all …]
|
/PHP-7.4/ext/fileinfo/libmagic/ |
H A D | buffer.c | 44 buffer_init(struct buffer *b, int fd, const zend_stat_t *st, const void *data, in buffer_init() 60 buffer_fini(struct buffer *b) in buffer_fini() 66 buffer_fill(const struct buffer *bb) in buffer_fill() 68 struct buffer *b = CCAST(struct buffer *, bb); in buffer_fill()
|
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/ext/zlib/ |
H A D | zlib.c | 151 …if (!(ctx->buffer.aptr = erealloc_recoverable(ctx->buffer.data, ctx->buffer.used + ctx->buffer.fre… in php_zlib_output_handler_ex() 155 ctx->buffer.data = ctx->buffer.aptr; in php_zlib_output_handler_ex() 186 … memmove(ctx->buffer.data, ctx->buffer.data + ctx->buffer.used - ctx->Z.avail_in, ctx->Z.avail_in); in php_zlib_output_handler_ex() 384 …if ((max && (max <= buffer.used)) || !(buffer.aptr = erealloc_recoverable(buffer.data, buffer.size… in php_zlib_inflate_rounds() 387 buffer.data = buffer.aptr; in php_zlib_inflate_rounds() 388 Z->avail_out = buffer.free = buffer.size - buffer.used; in php_zlib_inflate_rounds() 389 Z->next_out = (Bytef *) buffer.data + buffer.used; in php_zlib_inflate_rounds() 395 buffer.used += buffer.free - Z->avail_out; in php_zlib_inflate_rounds() 400 buffer.size += (buffer.size >> 3) + 1; in php_zlib_inflate_rounds() 405 buffer.data = erealloc(buffer.data, buffer.used + 1); in php_zlib_inflate_rounds() [all …]
|
/PHP-7.4/ext/standard/ |
H A D | crypt.c | 111 struct php_crypt_extended_data buffer; in php_crypt() local 182 memset(&buffer, 0, sizeof(buffer)); in php_crypt() 185 crypt_res = _crypt_extended_r((const unsigned char *) password, salt, &buffer); in php_crypt() 206 struct crypt_data buffer; in php_crypt() local 207 memset(&buffer, 0, sizeof(buffer)); in php_crypt() 209 CRYPTD buffer; in php_crypt() 213 crypt_res = crypt_r(password, salt, &buffer); in php_crypt()
|
H A D | md5.c | 332 body(ctx, ctx->buffer, 64); in PHP_MD5Update() 340 memcpy(ctx->buffer, data, size); in PHP_MD5Update() 349 ctx->buffer[used++] = 0x80; in PHP_MD5Final() 355 body(ctx, ctx->buffer, 64); in PHP_MD5Final() 363 ctx->buffer[56] = ctx->lo; in PHP_MD5Final() 364 ctx->buffer[57] = ctx->lo >> 8; in PHP_MD5Final() 365 ctx->buffer[58] = ctx->lo >> 16; in PHP_MD5Final() 366 ctx->buffer[59] = ctx->lo >> 24; in PHP_MD5Final() 367 ctx->buffer[60] = ctx->hi; in PHP_MD5Final() 368 ctx->buffer[61] = ctx->hi >> 8; in PHP_MD5Final() [all …]
|
H A D | php_crypt_r.h | 51 extern char * php_sha512_crypt_r (const char *key, const char *salt, char *buffer, int buflen); 52 extern char * php_sha256_crypt_r (const char *key, const char *salt, char *buffer, int buflen);
|
/PHP-7.4/ext/zlib/tests/ |
H A D | deflate_add_buffer_full.phpt | 2 Test deflate_add() buffer issue with data that fills deflate buffer while using ZLIB_SYNC_FLUSH on … 13 * When using ZLIB_ENCODING_RAW, the deflated buffer should always end in 00 00 ff ff 18 * Prior to fixing, the output buffer size was not being checked. According to the zlib 19 * manual, deflate must be called again with more buffer space.
|
/PHP-7.4/ext/hash/ |
H A D | php_hash_md.h | 63 unsigned char buffer[64]; /* input buffer */ member 79 unsigned char buffer[64]; member 90 unsigned char buffer[16]; member
|
/PHP-7.4/sapi/cli/ |
H A D | php_cli_server.c | 975 buffer->first = NULL; in php_cli_server_buffer_ctor() 976 buffer->last = NULL; in php_cli_server_buffer_ctor() 983 if (!buffer->last) { in php_cli_server_buffer_append() 988 buffer->last = last; in php_cli_server_buffer_append() 996 if (!buffer->last) { in php_cli_server_buffer_prepend() 997 buffer->last = last; in php_cli_server_buffer_prepend() 999 buffer->first = chunk; in php_cli_server_buffer_prepend() 2058 if (!buffer.s) { in php_cli_server_send_error_page() 2069 chunk = php_cli_server_chunk_heap_new(buffer.s, ZSTR_VAL(buffer.s), ZSTR_LEN(buffer.s)); in php_cli_server_send_error_page() 2151 if (!buffer.s) { in php_cli_server_begin_send_static() [all …]
|
/PHP-7.4/ext/gd/tests/ |
H A D | bug73155.phpt | 14 $buffer = ob_get_clean(); 16 $header = unpack('@10/nchunk_size/nformat/nx_count/ny_count', $buffer); 20 printf("file size: %d\n", strlen($buffer));
|
H A D | imagegd_truecolor.phpt | 19 $buffer = ob_get_clean(); 21 $header = unpack('nsignature/nwidth/nheight/Ctruecolor', $buffer); 24 printf("size: %d\n", strlen($buffer));
|
/PHP-7.4/main/ |
H A D | output.c | 376 ZVAL_STRINGL(p, OG(active)->buffer.data, OG(active)->buffer.used); in php_output_get_contents() 874 handler->buffer.data = emalloc(handler->buffer.size); in php_output_handler_init() 887 if ((handler->buffer.size - handler->buffer.used) <= buf->used) { in php_output_handler_append() 892 handler->buffer.data = safe_erealloc(handler->buffer.data, 1, handler->buffer.size, grow_max); in php_output_handler_append() 895 memcpy(handler->buffer.data + handler->buffer.used, buf->data, buf->used); in php_output_handler_append() 929 handler->buffer.used?handler->buffer.data:"", in php_output_handler_op() 930 handler->buffer.used, in php_output_handler_op() 931 handler->buffer.size, in php_output_handler_op() 956 ZVAL_STRINGL(&ob_data, handler->buffer.data, handler->buffer.used); in php_output_handler_op() 984 …php_output_context_feed(context, handler->buffer.data, handler->buffer.size, handler->buffer.used,… in php_output_handler_op() [all …]
|
/PHP-7.4/ext/spl/tests/ |
H A D | bug77751.phpt | 9 ob_start(function ($buffer) use ($logfile) { 10 $logfile->fwrite($buffer);
|