Home
last modified time | relevance | path

Searched refs:bytes_max (Results 1 – 14 of 14) sorted by relevance

/PHP-8.4/pear/
H A Dfetch.php9 …_callback($notification_code, $severity, $message, $message_code, $bytes_transferred, $bytes_max) { argument
30 $filesize = $bytes_max;
/PHP-8.4/ext/standard/tests/http/
H A Dgh8641.phpt11 …on_callback($notification_code, $severity, $message, $message_code, $bytes_transferred, $bytes_max)
14 echo $notification_code, ' ', $bytes_transferred, ' ', $bytes_max, PHP_EOL;
H A Dgh15034.phpt29 int $bytes_max
32 $max = $bytes_max;
H A Dbug47021.phpt11 …_callback($notification_code, $severity, $message, $message_code, $bytes_transferred, $bytes_max) {
18 echo "Size=$bytes_max\n";
H A Dbug69337.phpt11 …on_callback($notification_code, $severity, $message, $message_code, $bytes_transferred, $bytes_max)
/PHP-8.4/ext/fileinfo/libmagic/
H A Dcompress.c314 urv = uncompressbuf(fd, ms->bytes_max, i, in file_zmagic()
603 return uncompresszlib(old, newch, bytes_max, n, 0); in uncompressgzipped()
610 size_t bytes_max, size_t *n, int zlib) in uncompresszlib() argument
619 z.avail_out = CAST(unsigned int, bytes_max); in uncompresszlib()
666 bz.avail_out = CAST(unsigned int, bytes_max); in uncompressbzlib()
707 xz.avail_out = CAST(unsigned int, bytes_max); in uncompressxzlib()
752 out.size = bytes_max; in uncompresszstd()
780 size_t new_remaining = bytes_max; in uncompresslzlib()
1069 *newch = CAST(unsigned char *, emalloc(bytes_max + 1)); in uncompressbuf()
1078 return (*decompress)(old, newch, bytes_max, n, 1); in uncompressbuf()
[all …]
H A Dmagic.c212 if ((buf = CAST(unsigned char *, emalloc(ms->bytes_max + SLOP))) == NULL) in file_or_stream()
251 if ((nbytes = php_stream_read(stream, (char *)buf, ms->bytes_max - nbytes)) < 0) { in file_or_stream()
361 ms->bytes_max = *CAST(const size_t *, val); in magic_setparam()
400 *CAST(size_t *, val) = ms->bytes_max; in magic_getparam()
H A Dfile.h483 size_t bytes_max; /* number of bytes to read from file */ member
H A Dapprentice.c583 ms->bytes_max = FILE_BYTES_MAX; in file_ms_alloc()
/PHP-8.4/ext/standard/tests/streams/
H A Dgh10031.phpt36 …t_params($context, ['notification' => function ($code, $s, $m, $mc, $bytes_transferred, $bytes_max)
38 if ($code === STREAM_NOTIFY_FILE_SIZE_IS) echo "expected filesize=$bytes_max".PHP_EOL;
/PHP-8.4/main/streams/
H A Dphp_stream_context.h23 size_t bytes_sofar, size_t bytes_max,
85 char *xmsg, int xcode, size_t bytes_sofar, size_t bytes_max, void * ptr);
H A Dstreams.c2360 char *xmsg, int xcode, size_t bytes_sofar, size_t bytes_max, void * ptr) argument
2363 context->notifier->func(context, notifycode, severity, xmsg, xcode, bytes_sofar, bytes_max, ptr);
/PHP-8.4/ext/fileinfo/
H A Dlibmagic.patch1251 urv = uncompressbuf(fd, ms->bytes_max, i,
1324 - *newch = CAST(unsigned char *, malloc(bytes_max + 1));
1325 + *newch = CAST(unsigned char *, emalloc(bytes_max + 1));
2562 - if ((buf = CAST(unsigned char *, malloc(ms->bytes_max + SLOP))) == NULL)
2563 + if ((buf = CAST(unsigned char *, emalloc(ms->bytes_max + SLOP))) == NULL)
2629 * try looking at the first ms->bytes_max bytes
2636 - CAST(size_t, ms->bytes_max - nbytes), 1)) > 0) {
2656 - ms->bytes_max;
2665 + if ((nbytes = php_stream_read(stream, (char *)buf, ms->bytes_max - nbytes)) < 0) {
/PHP-8.4/ext/standard/
H A Dstreamsfuncs.c877 char *xmsg, int xcode, size_t bytes_sofar, size_t bytes_max, void * ptr) in user_space_stream_notifier() argument
893 ZVAL_LONG(&zvs[5], bytes_max); in user_space_stream_notifier()

Completed in 78 milliseconds