/PHP-8.0/sapi/phpdbg/ |
H A D | phpdbg_cmd.c | 40 buffer[pos] = 0; in ZEND_EXTERN_MODULE_GLOBALS() 42 return buffer; in ZEND_EXTERN_MODULE_GLOBALS() 780 if (buffer && isspace(*buffer)) { in phpdbg_read_input() 786 efree(buffer); in phpdbg_read_input() 787 buffer = trimmed; in phpdbg_read_input() 790 if (buffer && strlen(buffer)) { in phpdbg_read_input() 794 PHPDBG_G(buffer) = strdup(buffer); in phpdbg_read_input() 796 if (buffer) { in phpdbg_read_input() 797 efree(buffer); in phpdbg_read_input() 799 buffer = estrdup(PHPDBG_G(buffer)); in phpdbg_read_input() [all …]
|
/PHP-8.0/ext/standard/ |
H A D | crypt.c | 95 struct php_crypt_extended_data buffer; in php_crypt() local 156 memset(&buffer, 0, sizeof(buffer)); in php_crypt() 159 crypt_res = _crypt_extended_r((const unsigned char *) password, salt, &buffer); in php_crypt() 175 struct crypt_data buffer; in php_crypt() local 176 memset(&buffer, 0, sizeof(buffer)); in php_crypt() 178 CRYPTD buffer; in php_crypt() local 182 crypt_res = crypt_r(password, salt, &buffer); in php_crypt()
|
H A D | php_crypt_r.h | 35 extern char * php_sha512_crypt_r (const char *key, const char *salt, char *buffer, int buflen); 36 extern char * php_sha256_crypt_r (const char *key, const char *salt, char *buffer, int buflen);
|
H A D | md5.c | 328 body(ctx, ctx->buffer, 64); in PHP_MD5Update() 336 memcpy(ctx->buffer, data, size); in PHP_MD5Update() 345 ctx->buffer[used++] = 0x80; in PHP_MD5Final() 351 body(ctx, ctx->buffer, 64); in PHP_MD5Final() 359 ctx->buffer[56] = ctx->lo; in PHP_MD5Final() 360 ctx->buffer[57] = ctx->lo >> 8; in PHP_MD5Final() 361 ctx->buffer[58] = ctx->lo >> 16; in PHP_MD5Final() 362 ctx->buffer[59] = ctx->lo >> 24; in PHP_MD5Final() 363 ctx->buffer[60] = ctx->hi; in PHP_MD5Final() 364 ctx->buffer[61] = ctx->hi >> 8; in PHP_MD5Final() [all …]
|
H A D | password.c | 52 zend_string *buffer; in php_password_salt_to64() local 57 if (ZSTR_LEN(buffer) < out_len) { in php_password_salt_to64() 59 zend_string_release_ex(buffer, 0); in php_password_salt_to64() 66 zend_string_free(buffer); in php_password_salt_to64() 69 ret[pos] = ZSTR_VAL(buffer)[pos]; in php_password_salt_to64() 72 zend_string_free(buffer); in php_password_salt_to64() 79 zend_string *ret, *buffer; in php_password_make_salt() local 87 if (FAILURE == php_random_bytes_silent(ZSTR_VAL(buffer), ZSTR_LEN(buffer))) { in php_password_make_salt() 89 zend_string_release_ex(buffer, 0); in php_password_make_salt() 94 if (php_password_salt_to64(ZSTR_VAL(buffer), ZSTR_LEN(buffer), length, ZSTR_VAL(ret)) == FAILURE) { in php_password_make_salt() [all …]
|
/PHP-8.0/ext/hash/ |
H A D | php_hash_sha.h | 28 unsigned char buffer[64]; /* input buffer */ member 40 unsigned char buffer[64]; /* input buffer */ member 52 unsigned char buffer[128]; /* input buffer */ member 64 unsigned char buffer[128]; /* input buffer */ member
|
H A D | php_hash_md.h | 27 unsigned char buffer[64]; member 39 unsigned char buffer[16]; member
|
/PHP-8.0/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 | 155 struct buffer { struct 480 protected int file_tryelf(struct magic_set *, const struct buffer *); 481 protected int file_trycdf(struct magic_set *, const struct buffer *); 483 protected int file_zmagic(struct magic_set *, const struct buffer *, 486 protected int file_ascmagic(struct magic_set *, const struct buffer *, 490 protected int file_encoding(struct magic_set *, const struct buffer *, 492 protected int file_is_json(struct magic_set *, const struct buffer *); 494 protected int file_is_tar(struct magic_set *, const struct buffer *); 525 protected void buffer_init(struct buffer *, int, const zend_stat_t *, 527 protected void buffer_fini(struct buffer *); [all …]
|
/PHP-8.0/tests/output/ |
H A D | ob_clean_basic_001.phpt | 15 echo "Ensure the buffer is still active after the clean."; 26 Notice: ob_clean(): Failed to delete buffer. No buffer to delete in %s on line %d 29 Ensure the buffer is still active after the clean."
|
H A D | ob_flush_basic_001.phpt | 15 echo "Ensure the buffer is still active after the flush.\n"; 27 Notice: ob_flush(): Failed to flush buffer. No buffer to flush in %s on line %d 31 Ensure the buffer is still active after the flush.
|
H A D | ob_end_flush_basic_001.phpt | 27 Notice: ob_end_flush(): Failed to delete and flush buffer. No buffer to delete or flush in %s on li… 33 Notice: ob_end_flush(): Failed to delete and flush buffer. No buffer to delete or flush in %s on li…
|
H A D | ob_implicit_flush_basic_002.phpt | 7 // Start a user buffer 12 echo "This is being written to a user buffer.\n"; 14 echo "because implicit flushing affects only the top level buffer, not user buffers.\n"; 16 // Wipe the user buffer. Nothing should have been flushed.
|
H A D | ob_start_error_002.phpt | 24 Notice: ob_start(): Failed to create buffer in %s on line %d 29 Notice: ob_start(): Failed to create buffer in %s on line 13 34 Notice: ob_start(): Failed to create buffer in %s on line 14 39 Notice: ob_start(): Failed to create buffer in %s on line 15
|
/PHP-8.0/ext/zlib/ |
H A D | zlib.c | 201 …if (!(ctx->buffer.aptr = erealloc_recoverable(ctx->buffer.data, ctx->buffer.used + ctx->buffer.fre… in php_zlib_output_handler_ex() 205 ctx->buffer.data = ctx->buffer.aptr; in php_zlib_output_handler_ex() 236 … memmove(ctx->buffer.data, ctx->buffer.data + ctx->buffer.used - ctx->Z.avail_in, ctx->Z.avail_in); in php_zlib_output_handler_ex() 434 …if ((max && (max <= buffer.used)) || !(buffer.aptr = erealloc_recoverable(buffer.data, buffer.size… in php_zlib_inflate_rounds() 437 buffer.data = buffer.aptr; in php_zlib_inflate_rounds() 438 Z->avail_out = buffer.free = buffer.size - buffer.used; in php_zlib_inflate_rounds() 439 Z->next_out = (Bytef *) buffer.data + buffer.used; in php_zlib_inflate_rounds() 445 buffer.used += buffer.free - Z->avail_out; in php_zlib_inflate_rounds() 450 buffer.size += (buffer.size >> 3) + 1; in php_zlib_inflate_rounds() 455 buffer.data = erealloc(buffer.data, buffer.used + 1); in php_zlib_inflate_rounds() [all …]
|
/PHP-8.0/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-8.0/ext/fileinfo/tests/ |
H A D | bug79283.phpt | 2 Bug #79283 (Segfault in libmagic patch contains a buffer overflow) 15 var_dump($finfo->buffer("buffer\n"));
|
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"));
|
H A D | bug68731.phpt | 9 $buffer = file_get_contents(__DIR__ . '/68731.gif'); 11 echo finfo_buffer($finfo, $buffer);
|
/PHP-8.0/sapi/cli/ |
H A D | php_cli_server.c | 919 buffer->first = NULL; in php_cli_server_buffer_ctor() 920 buffer->last = NULL; in php_cli_server_buffer_ctor() 927 if (!buffer->last) { in php_cli_server_buffer_append() 932 buffer->last = last; in php_cli_server_buffer_append() 940 if (!buffer->last) { in php_cli_server_buffer_prepend() 941 buffer->last = last; in php_cli_server_buffer_prepend() 943 buffer->first = chunk; in php_cli_server_buffer_prepend() 1998 if (!buffer.s) { in php_cli_server_send_error_page() 2009 chunk = php_cli_server_chunk_heap_new(buffer.s, ZSTR_VAL(buffer.s), ZSTR_LEN(buffer.s)); in php_cli_server_send_error_page() 2091 if (!buffer.s) { in php_cli_server_begin_send_static() [all …]
|
/PHP-8.0/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-8.0/main/ |
H A D | output.c | 383 ZVAL_STRINGL(p, OG(active)->buffer.data, OG(active)->buffer.used); in php_output_get_contents() 881 handler->buffer.data = emalloc(handler->buffer.size); in php_output_handler_init() 894 if ((handler->buffer.size - handler->buffer.used) <= buf->used) { in php_output_handler_append() 899 handler->buffer.data = safe_erealloc(handler->buffer.data, 1, handler->buffer.size, grow_max); in php_output_handler_append() 902 memcpy(handler->buffer.data + handler->buffer.used, buf->data, buf->used); in php_output_handler_append() 936 handler->buffer.used?handler->buffer.data:"", in php_output_handler_op() 937 handler->buffer.used, in php_output_handler_op() 938 handler->buffer.size, in php_output_handler_op() 963 ZVAL_STRINGL(&ob_data, handler->buffer.data, handler->buffer.used); in php_output_handler_op() 991 …php_output_context_feed(context, handler->buffer.data, handler->buffer.size, handler->buffer.used,… in php_output_handler_op() [all …]
|
/PHP-8.0/ext/spl/tests/ |
H A D | bug77751.phpt | 9 ob_start(function ($buffer) use ($logfile) { 10 $logfile->fwrite($buffer);
|
/PHP-8.0/ext/intl/uchar/ |
H A D | uchar.c | 53 char buffer[5]; in IC_METHOD() local 64 buffer[buffer_len] = 0; in IC_METHOD() 65 RETURN_STRINGL(buffer, buffer_len); in IC_METHOD() 219 zend_string *buffer = NULL; in IC_METHOD() local 235 …buffer_len = u_charName(cp, (UCharNameChoice)nameChoice, ZSTR_VAL(buffer), ZSTR_LEN(buffer) + 1, &… in IC_METHOD() 237 zend_string_efree(buffer); in IC_METHOD() 240 RETURN_NEW_STR(buffer); in IC_METHOD() 405 char buffer[5]; in IC_METHOD() local 408 buffer[buffer_len] = 0; in IC_METHOD() 595 char buffer[5]; \ [all …]
|