Home
last modified time | relevance | path

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

12

/PHP-8.1/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-8.1/main/
H A Dphp_streams.h62 #define php_stream_copy_to_mem_rel(src, maxlen, persistent) _php_stream_copy_to_mem((src), (buf), ( argument
343 PHPAPI char *_php_stream_get_line(php_stream *stream, char *buf, size_t maxlen, size_t *returned_le…
344 #define php_stream_gets(stream, buf, maxlen) _php_stream_get_line((stream), (buf), (maxlen), NULL) argument
346 #define php_stream_get_line(stream, buf, maxlen, retlen) _php_stream_get_line((stream), (buf), (max… argument
347 PHPAPI zend_string *php_stream_get_record(php_stream *stream, size_t maxlen, const char *delim, siz…
470 PHPAPI size_t _php_stream_copy_to_stream(php_stream *src, php_stream *dest, size_t maxlen STREAMS_D…
471 #define php_stream_copy_to_stream(src, dest, maxlen) _php_stream_copy_to_stream((src), (dest), (max… argument
472 PHPAPI int _php_stream_copy_to_stream_ex(php_stream *src, php_stream *dest, size_t maxlen, size_t *…
473 …ine php_stream_copy_to_stream_ex(src, dest, maxlen, len) _php_stream_copy_to_stream_ex((src), (des… argument
478 PHPAPI zend_string *_php_stream_copy_to_mem(php_stream *src, size_t maxlen, int persistent STREAMS_…
[all …]
H A Dspprintf.c177 static size_t strnlen(const char *s, size_t maxlen) { in strnlen() argument
178 char *r = memchr(s, '\0', maxlen); in strnlen()
179 return r ? r-s : maxlen; in strnlen()
/PHP-8.1/main/streams/
H A Dstreams.c960 maxlen -= cpysz; in _php_stream_get_line()
1039 if (maxlen == 0) { in php_stream_get_record()
1074 stream, maxlen, in php_stream_get_record()
1472 if (maxlen == 0) { in _php_stream_copy_to_mem()
1477 maxlen = 0; in _php_stream_copy_to_mem()
1480 if (maxlen > 0) { in _php_stream_copy_to_mem()
1556 if (maxlen == 0) { in _php_stream_copy_to_stream_ex()
1562 maxlen = 0; in _php_stream_copy_to_stream_ex()
1569 size_t chunk_size = (maxlen == 0 || maxlen > PHP_STREAM_MMAP_MAX) ? PHP_STREAM_MMAP_MAX : maxlen; in _php_stream_copy_to_stream_ex()
1616 if (maxlen && (maxlen - haveread) < readchunk) { in _php_stream_copy_to_stream_ex()
[all …]
/PHP-8.1/ext/standard/tests/file/
H A Dfile_get_contents_file_put_contents_error.phpt15 echo "\n-- Testing for invalid negative maxlen values --\n";
41 -- Testing for invalid negative maxlen values --
H A Dfile_get_contents_error.phpt19 echo "\n-- Testing for invalid negative maxlen values --\n";
49 -- Testing for invalid negative maxlen values --
H A Dbug38086.phpt2 Bug #38086 (stream_copy_to_stream() returns 0 when maxlen is bigger than the actual length)
/PHP-8.1/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-8.1/sapi/phpdbg/
H A Dphpdbg_utils.c659 char *phpdbg_short_zval_print(zval *zv, int maxlen) /* {{{ */ in phpdbg_short_zval_print() argument
703 ZSTR_LEN(str) <= maxlen - 2 ? (int) ZSTR_LEN(str) : (maxlen - 3), in phpdbg_short_zval_print()
704 ZSTR_VAL(str), ZSTR_LEN(str) <= maxlen - 2 ? 0 : '+'); in phpdbg_short_zval_print()
716 ZSTR_LEN(str) <= maxlen ? (int) ZSTR_LEN(str) : maxlen - 1, in phpdbg_short_zval_print()
717 ZSTR_VAL(str), ZSTR_LEN(str) <= maxlen ? 0 : '+'); in phpdbg_short_zval_print()
H A Dphpdbg_utils.h94 char *phpdbg_short_zval_print(zval *zv, int maxlen);
/PHP-8.1/ext/standard/
H A Dhtml.c1105 size_t cursor, maxlen, len; in php_escape_html_entities_ex() local
1147 maxlen = 128; in php_escape_html_entities_ex()
1149 maxlen = zend_safe_addmult(oldlen, 2, 0, "html_entities"); in php_escape_html_entities_ex()
1152 replaced = zend_string_alloc(maxlen, 0); in php_escape_html_entities_ex()
1164 if (len > maxlen - 40) { /* maxlen can never be smaller than 128 */ in php_escape_html_entities_ex()
1165 replaced = zend_string_safe_realloc(replaced, maxlen, 1, 128, 0); in php_escape_html_entities_ex()
1166 maxlen += 128; in php_escape_html_entities_ex()
1295 if (maxlen - len < ent_len + 2 /* & and ; */) { in php_escape_html_entities_ex()
1297 replaced = zend_string_safe_realloc(replaced, maxlen, 1, ent_len + 128, 0); in php_escape_html_entities_ex()
1298 maxlen += ent_len + 128; in php_escape_html_entities_ex()
H A Dvar_unserializer.re998 size_t len, maxlen;
1002 maxlen = max - YYCURSOR;
1003 if (maxlen < len) {
1035 size_t len, maxlen;
1039 maxlen = max - YYCURSOR;
1040 if (maxlen < len) {
1102 size_t len, maxlen;
1121 maxlen = max - YYCURSOR;
1122 if (maxlen < len || len == 0) {
1333 size_t maxlen = max - YYCURSOR;
[all …]
H A Dstreamsfuncs.c444 zend_long maxlen, desiredpos = -1L; in PHP_FUNCTION() local
451 Z_PARAM_LONG_OR_NULL(maxlen, maxlen_is_null) in PHP_FUNCTION()
456 maxlen = (ssize_t) PHP_STREAM_COPY_ALL; in PHP_FUNCTION()
457 } else if (maxlen < 0 && maxlen != (ssize_t)PHP_STREAM_COPY_ALL) { in PHP_FUNCTION()
484 if ((contents = php_stream_copy_to_mem(stream, maxlen, 0))) { in PHP_FUNCTION()
497 zend_long maxlen, pos = 0; in PHP_FUNCTION() local
506 Z_PARAM_LONG_OR_NULL(maxlen, maxlen_is_null) in PHP_FUNCTION()
511 maxlen = PHP_STREAM_COPY_ALL; in PHP_FUNCTION()
522 ret = php_stream_copy_to_stream_ex(src, dest, maxlen, &len); in PHP_FUNCTION()
H A Dfile.c537 zend_long maxlen; in PHP_FUNCTION() local
550 Z_PARAM_LONG_OR_NULL(maxlen, maxlen_is_null) in PHP_FUNCTION()
554 maxlen = (ssize_t) PHP_STREAM_COPY_ALL; in PHP_FUNCTION()
555 } else if (maxlen < 0) { in PHP_FUNCTION()
575 if ((contents = php_stream_copy_to_mem(stream, maxlen, 0)) != NULL) { in PHP_FUNCTION()
1139 zend_long maxlen = 0; in PHP_FUNCTION() local
1147 Z_PARAM_LONG_OR_NULL(maxlen, maxlen_is_null) in PHP_FUNCTION()
1152 } else if (maxlen <= 0) { in PHP_FUNCTION()
1155 num_bytes = MIN((size_t) maxlen, inputlen); in PHP_FUNCTION()
/PHP-8.1/
H A D.gdbinit517 set $maxlen = $arg2
519 set $maxlen = 256
523 while $tmp < $arg1 && $tmp < $maxlen
596 set $maxlen = $arg1
598 set $maxlen = $zstr->len
601 ____print_str $zstr->val $zstr->len $maxlen
/PHP-8.1/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
/PHP-8.1/ext/phar/
H A Dfunc_interceptors.c100 zend_long maxlen; in PHAR_FUNC() local
114 …!ll!", &filename, &filename_len, &use_include_path, &zcontext, &offset, &maxlen, &maxlen_is_null) … in PHAR_FUNC()
119 maxlen = (ssize_t) PHP_STREAM_COPY_ALL; in PHAR_FUNC()
143 if (!maxlen_is_null && maxlen < 0) { in PHAR_FUNC()
212 contents = php_stream_copy_to_mem(stream, maxlen, 0); in PHAR_FUNC()
H A Dtar.c204 static size_t strnlen(const char *s, size_t maxlen) { in strnlen() argument
205 char *r = (char *)memchr(s, '\0', maxlen); in strnlen()
206 return r ? r-s : maxlen; in strnlen()
/PHP-8.1/ext/mysqli/tests/
H A Dmysqli_get_charset.phpt41 $maxlen = (isset($tmp['Maxlen'])) ? $tmp['Maxlen'] : '';
/PHP-8.1/ext/pdo_sqlite/
H A Dsqlite_statement.c249 stmt->columns[colno].maxlen = SIZE_MAX; in pdo_sqlite_stmt_describe()
/PHP-8.1/ext/pdo_oci/
H A Doci_statement.c543 col->maxlen = data_size; in oci_stmt_describe()
585 S->cols[colno].datalen = (ub4) col->maxlen * 2; /* raw characters to hex digits */ in oci_stmt_describe()
587 S->cols[colno].datalen = (ub4) (col->maxlen * S->H->max_char_width); in oci_stmt_describe()
/PHP-8.1/ext/pdo/
H A Dphp_pdo_driver.h528 size_t maxlen; member
/PHP-8.1/ext/pdo_dblib/
H A Ddblib_stmt.c253 col->maxlen = dbcollen(H->link, colno+1); in pdo_dblib_stmt_describe()
/PHP-8.1/ext/oci8/
H A Doci8_interface.c158 zend_long maxlen = -1, type = 0; in PHP_FUNCTION() local
169 Z_PARAM_LONG(maxlen) in PHP_FUNCTION()
179 if (php_oci_bind_by_name(statement, name, name_len, bind_var, maxlen, bind_type)) { in PHP_FUNCTION()
/PHP-8.1/ext/fileinfo/libmagic/
H A Dsoftmagic.c1915 file_strncmp(const char *s1, const char *s2, size_t len, size_t maxlen, in file_strncmp() argument
1928 const unsigned char *eb = b + (ws ? maxlen : len); in file_strncmp()
1989 file_strncmp16(const char *a, const char *b, size_t len, size_t maxlen, in file_strncmp16() argument
1998 return file_strncmp(a, b, len, maxlen, flags); in file_strncmp16()

Completed in 81 milliseconds

12