Home
last modified time | relevance | path

Searched refs:maxlen (Results 1 – 25 of 30) sorted by path

12

/php-src/
H A D.gdbinit527 set $maxlen = $arg2
529 set $maxlen = 256
533 while $tmp < $arg1 && $tmp < $maxlen
606 set $maxlen = $arg1
608 set $maxlen = $zstr->len
611 ____print_str (char*)$zstr->val $zstr->len $maxlen
/php-src/Zend/
H A Dzend_operators.h267 static zend_always_inline size_t zend_strnlen(const char* s, size_t maxlen) in zend_strnlen() argument
270 return strnlen(s, maxlen); in zend_strnlen()
272 const char *p = (const char *)memchr(s, '\0', maxlen); in zend_strnlen()
273 return p ? p-s : maxlen; in zend_strnlen()
/php-src/docs-old/
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-src/ext/fileinfo/
H A Dlibmagic.patch3195 return file_strncmp(a, b, len, maxlen, flags);
/php-src/ext/fileinfo/libmagic/
H A Dsoftmagic.c1993 file_strncmp(const char *s1, const char *s2, size_t len, size_t maxlen, in file_strncmp() argument
2006 const unsigned char *eb = b + (ws ? maxlen : len); in file_strncmp()
2072 file_strncmp16(const char *a, const char *b, size_t len, size_t maxlen, in file_strncmp16() argument
2081 return file_strncmp(a, b, len, maxlen, flags); in file_strncmp16()
/php-src/ext/mysqli/tests/
H A Dmysqli_get_charset.phpt31 $maxlen = (isset($tmp['Maxlen'])) ? $tmp['Maxlen'] : '';
/php-src/ext/pdo/
H A Dpdo_stmt.c1688 add_assoc_long(return_value, "len", col->maxlen); /* FIXME: unsigned ? */ in PHP_METHOD()
H A Dphp_pdo_driver.h528 size_t maxlen; member
/php-src/ext/pdo_dblib/
H A Ddblib_stmt.c252 col->maxlen = dbcollen(H->link, colno+1); in pdo_dblib_stmt_describe()
/php-src/ext/pdo_firebird/
H A Dfirebird_statement.c247 col->maxlen = var->sqllen; in pdo_firebird_stmt_describe()
/php-src/ext/pdo_mysql/
H A Dmysql_statement.c662 cols[i].maxlen = S->fields[i].length; in pdo_mysql_stmt_describe()
/php-src/ext/pdo_odbc/
H A Dodbc_stmt.c611 col->maxlen = S->cols[colno].datalen = colsize; in odbc_stmt_describe()
/php-src/ext/pdo_pgsql/
H A Dpgsql_statement.c487 cols[colno].maxlen = PQfsize(S->result, colno); in pgsql_stmt_describe()
/php-src/ext/pdo_sqlite/
H A Dsqlite_statement.c249 stmt->columns[colno].maxlen = SIZE_MAX; in pdo_sqlite_stmt_describe()
/php-src/ext/phar/
H A Dfunc_interceptors.c165 zend_long maxlen; in PHAR_FUNC() local
179 …M_ARGS(), "P|br!ll!", &filename, &use_include_path, &zcontext, &offset, &maxlen, &maxlen_is_null) … in PHAR_FUNC()
184 maxlen = (ssize_t) PHP_STREAM_COPY_ALL; in PHAR_FUNC()
185 } else if (maxlen < 0) { in PHAR_FUNC()
217 contents = php_stream_copy_to_mem(stream, maxlen, 0); in PHAR_FUNC()
/php-src/ext/sockets/
H A Dsockets.c281 static int php_read(php_socket *sock, void *buf, size_t maxlen, int flags) argument
302 while (*t != '\n' && *t != '\r' && n < maxlen) {
321 if (n < maxlen) {
332 if (n < maxlen) {
/php-src/ext/standard/
H A Darray.c6593 uint32_t k, maxlen = 0; local
6610 maxlen = zend_hash_num_elements(Z_ARRVAL(arrays[0]));
6613 if (!ZEND_FCI_INITIALIZED(fci) || !maxlen) {
6618 array_init_size(return_value, maxlen);
6648 if (zend_hash_num_elements(Z_ARRVAL(arrays[i])) > maxlen) {
6649 maxlen = zend_hash_num_elements(Z_ARRVAL(arrays[i]));
6653 array_init_size(return_value, maxlen);
6659 for (k = 0; k < maxlen; k++) {
6703 for (k = 0; k < maxlen; k++) {
H A Dfile.c397 zend_long maxlen; in PHP_FUNCTION() local
410 Z_PARAM_LONG_OR_NULL(maxlen, maxlen_is_null) in PHP_FUNCTION()
414 maxlen = (ssize_t) PHP_STREAM_COPY_ALL; in PHP_FUNCTION()
415 } else if (maxlen < 0) { in PHP_FUNCTION()
441 if ((contents = php_stream_copy_to_mem(stream, maxlen, 0)) != NULL) { in PHP_FUNCTION()
1005 zend_long maxlen = 0; in PHP_FUNCTION() local
1013 Z_PARAM_LONG_OR_NULL(maxlen, maxlen_is_null) in PHP_FUNCTION()
1018 } else if (maxlen <= 0) { in PHP_FUNCTION()
1021 num_bytes = MIN((size_t) maxlen, inputlen); in PHP_FUNCTION()
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 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 Dstring.c2953 size_t maxlen = 0; local
2978 if (len > maxlen) {
2979 maxlen = len;
3003 if (len > maxlen) {
3004 maxlen = len;
3028 if (UNEXPECTED(minlen > maxlen)) {
3041 len = maxlen;
/php-src/ext/standard/tests/file/
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_error.phpt19 echo "\n-- Testing for invalid negative maxlen values --\n";
49 -- Testing for invalid negative maxlen values --
H A Dfile_get_contents_file_put_contents_error.phpt13 echo "\n-- Testing for invalid negative maxlen values --\n";
36 -- Testing for invalid negative maxlen values --
/php-src/ext/standard/tests/streams/
H A Dbug60455_04.phpt2 Bug #60455: stream_get_line and 1-line with maxlen size followed by 0-length

Completed in 112 milliseconds

12