/php-src/ |
H A D | .gdbinit | 527 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 D | zend_operators.h | 267 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 D | streams.md | 31 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 D | libmagic.patch | 3195 return file_strncmp(a, b, len, maxlen, flags);
|
/php-src/ext/fileinfo/libmagic/ |
H A D | softmagic.c | 1993 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 D | mysqli_get_charset.phpt | 31 $maxlen = (isset($tmp['Maxlen'])) ? $tmp['Maxlen'] : '';
|
/php-src/ext/pdo/ |
H A D | pdo_stmt.c | 1688 add_assoc_long(return_value, "len", col->maxlen); /* FIXME: unsigned ? */ in PHP_METHOD()
|
H A D | php_pdo_driver.h | 528 size_t maxlen; member
|
/php-src/ext/pdo_dblib/ |
H A D | dblib_stmt.c | 252 col->maxlen = dbcollen(H->link, colno+1); in pdo_dblib_stmt_describe()
|
/php-src/ext/pdo_firebird/ |
H A D | firebird_statement.c | 247 col->maxlen = var->sqllen; in pdo_firebird_stmt_describe()
|
/php-src/ext/pdo_mysql/ |
H A D | mysql_statement.c | 662 cols[i].maxlen = S->fields[i].length; in pdo_mysql_stmt_describe()
|
/php-src/ext/pdo_odbc/ |
H A D | odbc_stmt.c | 611 col->maxlen = S->cols[colno].datalen = colsize; in odbc_stmt_describe()
|
/php-src/ext/pdo_pgsql/ |
H A D | pgsql_statement.c | 487 cols[colno].maxlen = PQfsize(S->result, colno); in pgsql_stmt_describe()
|
/php-src/ext/pdo_sqlite/ |
H A D | sqlite_statement.c | 249 stmt->columns[colno].maxlen = SIZE_MAX; in pdo_sqlite_stmt_describe()
|
/php-src/ext/phar/ |
H A D | func_interceptors.c | 165 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 D | sockets.c | 281 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 D | array.c | 6593 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 D | file.c | 397 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 D | html.c | 1105 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 D | streamsfuncs.c | 444 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 D | string.c | 2953 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 D | bug38086.phpt | 2 Bug #38086 (stream_copy_to_stream() returns 0 when maxlen is bigger than the actual length)
|
H A D | file_get_contents_error.phpt | 19 echo "\n-- Testing for invalid negative maxlen values --\n"; 49 -- Testing for invalid negative maxlen values --
|
H A D | file_get_contents_file_put_contents_error.phpt | 13 echo "\n-- Testing for invalid negative maxlen values --\n"; 36 -- Testing for invalid negative maxlen values --
|
/php-src/ext/standard/tests/streams/ |
H A D | bug60455_04.phpt | 2 Bug #60455: stream_get_line and 1-line with maxlen size followed by 0-length
|