Home
last modified time | relevance | path

Searched refs:maxlen (Results 1 – 25 of 49) sorted by relevance

12

/PHP-7.4/ext/pdo_mysql/
H A Dget_error_codes.php4 $maxlen = 0; variable
11 $maxlen = max($maxlen, strlen($matches[1])); variable
23 printf(" case %-{$maxlen}s: return \"%s\";\n", $code, $state);
/PHP-7.4/main/
H A Dphp_streams.h64 #define php_stream_copy_to_mem_rel(src, maxlen, persistent) _php_stream_copy_to_mem((src), (buf), ( argument
337 PHPAPI char *_php_stream_get_line(php_stream *stream, char *buf, size_t maxlen, size_t *returned_le…
338 #define php_stream_gets(stream, buf, maxlen) _php_stream_get_line((stream), (buf), (maxlen), NULL) argument
340 #define php_stream_get_line(stream, buf, maxlen, retlen) _php_stream_get_line((stream), (buf), (max… argument
341 PHPAPI zend_string *php_stream_get_record(php_stream *stream, size_t maxlen, const char *delim, siz…
455 PHPAPI size_t _php_stream_copy_to_stream(php_stream *src, php_stream *dest, size_t maxlen STREAMS_D…
456 #define php_stream_copy_to_stream(src, dest, maxlen) _php_stream_copy_to_stream((src), (dest), (max… argument
457 PHPAPI int _php_stream_copy_to_stream_ex(php_stream *src, php_stream *dest, size_t maxlen, size_t *…
458 …ine php_stream_copy_to_stream_ex(src, dest, maxlen, len) _php_stream_copy_to_stream_ex((src), (des… argument
463 PHPAPI zend_string *_php_stream_copy_to_mem(php_stream *src, size_t maxlen, int persistent STREAMS_…
[all …]
H A Dspprintf.c183 static size_t strnlen(const char *s, size_t maxlen) { in strnlen() argument
184 char *r = memchr(s, '\0', maxlen); in strnlen()
185 return r ? r-s : maxlen; in strnlen()
/PHP-7.4/main/streams/
H A Dstreams.c962 maxlen -= cpysz; in _php_stream_get_line()
1041 if (maxlen == 0) { in php_stream_get_record()
1076 stream, maxlen, in php_stream_get_record()
1465 if (maxlen == 0) { in _php_stream_copy_to_mem()
1470 maxlen = 0; in _php_stream_copy_to_mem()
1473 if (maxlen > 0) { in _php_stream_copy_to_mem()
1550 if (maxlen == 0) { in _php_stream_copy_to_stream_ex()
1556 maxlen = 0; in _php_stream_copy_to_stream_ex()
1574 size_t chunk_size = (maxlen == 0 || maxlen > PHP_STREAM_MMAP_MAX) ? PHP_STREAM_MMAP_MAX : maxlen; in _php_stream_copy_to_stream_ex()
1606 if (maxlen != 0) { in _php_stream_copy_to_stream_ex()
[all …]
/PHP-7.4/ext/standard/tests/file/
H A Dfile_get_contents_error.phpt8 * resource $context[, int $offset[, int $maxlen]]]] )
29 echo "\n-- Testing for invalid negative maxlen values --";
63 -- Testing for invalid negative maxlen values --
H A Dfile_get_contents_file_put_contents_error.phpt6 * resource $context[, int $offset[, int $maxlen]]]] )
31 echo "\n-- Testing for invalid negative maxlen values --";
67 -- Testing for invalid negative maxlen values --
H A Dfile_get_contents_basic.phpt9 * resource $context[, int $offset[, int $maxlen]]]] )
H A Dfile_get_contents_variation1.phpt7 …nts(string filename [, bool use_include_path [, resource context [, long offset [, long maxlen]]]])
H A Dfile_get_contents_variation2.phpt7 …nts(string filename [, bool use_include_path [, resource context [, long offset [, long maxlen]]]])
H A Dfile_get_contents_file_put_contents_basic.phpt7 * resource $context[, int $offset[, int $maxlen]]]] )
H A Dbug38086.phpt2 Bug #38086 (stream_copy_to_stream() returns 0 when maxlen is bigger than the actual length)
H A Dfile_get_contents_variation7.phpt7 …nts(string filename [, bool use_include_path [, resource context [, long offset [, long maxlen]]]])
H A Dfile_get_contents_file_put_contents_variation2.phpt6 * resource $context[, int $offset[, int $maxlen]]]] )
H A Dfile_get_contents_variation7-win32-mb.phpt12 …nts(string filename [, bool use_include_path [, resource context [, long offset [, long maxlen]]]])
H A Dfile_get_contents_variation7-win32.phpt12 …nts(string filename [, bool use_include_path [, resource context [, long offset [, long maxlen]]]])
H A Dfile_get_contents_variation8-win32.phpt15 …nts(string filename [, bool use_include_path [, resource context [, long offset [, long maxlen]]]])
H A Dfile_get_contents_variation8.phpt15 …nts(string filename [, bool use_include_path [, resource context [, long offset [, long maxlen]]]])
/PHP-7.4/ext/standard/tests/streams/
H A Dbug60455_04.phpt2 Bug #60455: stream_get_line and 1-line with maxlen size followed by 0-length
/PHP-7.4/sapi/phpdbg/
H A Dphpdbg_utils.c785 char *phpdbg_short_zval_print(zval *zv, int maxlen) /* {{{ */ in phpdbg_short_zval_print() argument
829 ZSTR_LEN(str) <= maxlen - 2 ? (int) ZSTR_LEN(str) : (maxlen - 3), in phpdbg_short_zval_print()
830 ZSTR_VAL(str), ZSTR_LEN(str) <= maxlen - 2 ? 0 : '+'); in phpdbg_short_zval_print()
842 ZSTR_LEN(str) <= maxlen ? (int) ZSTR_LEN(str) : maxlen - 1, in phpdbg_short_zval_print()
843 ZSTR_VAL(str), ZSTR_LEN(str) <= maxlen ? 0 : '+'); in phpdbg_short_zval_print()
H A Dphpdbg_utils.h98 char *phpdbg_short_zval_print(zval *zv, int maxlen);
/PHP-7.4/ext/standard/
H A Dhtml.c1177 size_t cursor, maxlen, len; in php_escape_html_entities_ex() local
1219 maxlen = 128; in php_escape_html_entities_ex()
1221 maxlen = zend_safe_addmult(oldlen, 2, 0, "html_entities"); in php_escape_html_entities_ex()
1224 replaced = zend_string_alloc(maxlen, 0); in php_escape_html_entities_ex()
1236 if (len > maxlen - 40) { /* maxlen can never be smaller than 128 */ in php_escape_html_entities_ex()
1237 replaced = zend_string_safe_realloc(replaced, maxlen, 1, 128, 0); in php_escape_html_entities_ex()
1238 maxlen += 128; in php_escape_html_entities_ex()
1367 if (maxlen - len < ent_len + 2 /* & and ; */) { in php_escape_html_entities_ex()
1369 replaced = zend_string_safe_realloc(replaced, maxlen, 1, ent_len + 128, 0); in php_escape_html_entities_ex()
1370 maxlen += ent_len + 128; in php_escape_html_entities_ex()
H A Dvar_unserializer.re309 unsigned char *end = *(unsigned char **)p+maxlen;
918 size_t len, maxlen;
922 maxlen = max - YYCURSOR;
923 if (maxlen < len) {
958 size_t len, maxlen;
962 maxlen = max - YYCURSOR;
963 if (maxlen < len) {
968 if ((str = unserialize_str(&YYCURSOR, len, maxlen)) == NULL) {
1025 size_t len, len2, len3, maxlen;
1044 maxlen = max - YYCURSOR;
[all …]
H A Dstreamsfuncs.c421 zend_long maxlen = (ssize_t) PHP_STREAM_COPY_ALL, in PHP_FUNCTION() local
428 Z_PARAM_LONG(maxlen) in PHP_FUNCTION()
432 if (maxlen < 0 && maxlen != (ssize_t)PHP_STREAM_COPY_ALL) { in PHP_FUNCTION()
459 if ((contents = php_stream_copy_to_mem(stream, maxlen, 0))) { in PHP_FUNCTION()
473 zend_long maxlen = PHP_STREAM_COPY_ALL, pos = 0; in PHP_FUNCTION() local
481 Z_PARAM_LONG(maxlen) in PHP_FUNCTION()
493 ret = php_stream_copy_to_stream_ex(src, dest, maxlen, &len); in PHP_FUNCTION()
/PHP-7.4/
H A D.gdbinit529 set $maxlen = $arg2
531 set $maxlen = 256
535 while $tmp < $arg1 && $tmp < $maxlen
608 set $maxlen = $arg1
610 set $maxlen = $zstr->len
613 ____print_str $zstr->val $zstr->len $maxlen
/PHP-7.4/docs/
H A Dstreams.md31 PHPAPI char *php_stream_gets(php_stream * stream, char *buf, size_t maxlen);
108 php_stream *dest, size_t maxlen);
112 `PHP_STREAM_COPY_ALL` as the maxlen parameter, otherwise maxlen indicates the
121 size_t maxlen, int persistent);
125 will be maxlen bytes in length, or will be the entire length of the data
126 remaining on the stream if you set maxlen to `PHP_STREAM_COPY_ALL`. The buffer

Completed in 47 milliseconds

12