/PHP-7.3/ext/pdo_mysql/ |
H A D | get_error_codes.php | 3 $maxlen = 0; variable 10 $maxlen = max($maxlen, strlen($matches[1])); variable 22 printf(" case %-{$maxlen}s: return \"%s\";\n", $code, $state);
|
/PHP-7.3/main/ |
H A D | php_streams.h | 64 #define php_stream_copy_to_mem_rel(src, maxlen, persistent) _php_stream_copy_to_mem((src), (buf), (… argument 335 PHPAPI char *_php_stream_get_line(php_stream *stream, char *buf, size_t maxlen, size_t *returned_le… 336 #define php_stream_gets(stream, buf, maxlen) _php_stream_get_line((stream), (buf), (maxlen), NULL) argument 338 #define php_stream_get_line(stream, buf, maxlen, retlen) _php_stream_get_line((stream), (buf), (max… argument 339 PHPAPI zend_string *php_stream_get_record(php_stream *stream, size_t maxlen, const char *delim, siz… 453 PHPAPI size_t _php_stream_copy_to_stream(php_stream *src, php_stream *dest, size_t maxlen STREAMS_D… 454 #define php_stream_copy_to_stream(src, dest, maxlen) _php_stream_copy_to_stream((src), (dest), (max… argument 455 PHPAPI int _php_stream_copy_to_stream_ex(php_stream *src, php_stream *dest, size_t maxlen, size_t *… 456 …ine php_stream_copy_to_stream_ex(src, dest, maxlen, len) _php_stream_copy_to_stream_ex((src), (des… argument 461 PHPAPI zend_string *_php_stream_copy_to_mem(php_stream *src, size_t maxlen, int persistent STREAMS_… [all …]
|
H A D | spprintf.c | 187 static size_t strnlen(const char *s, size_t maxlen) { in strnlen() argument 188 char *r = memchr(s, '\0', maxlen); in strnlen() 189 return r ? r-s : maxlen; in strnlen()
|
/PHP-7.3/main/streams/ |
H A D | streams.c | 909 cpysz = maxlen - 1; in _php_stream_get_line() 919 maxlen -= cpysz; in _php_stream_get_line() 934 toread = maxlen - 1; in _php_stream_get_line() 998 if (maxlen == 0) { in php_stream_get_record() 1033 stream, maxlen, in php_stream_get_record() 1411 if (maxlen == 0) { in _php_stream_copy_to_mem() 1416 maxlen = 0; in _php_stream_copy_to_mem() 1419 if (maxlen > 0) { in _php_stream_copy_to_mem() 1495 if (maxlen == 0) { in _php_stream_copy_to_stream_ex() 1501 maxlen = 0; in _php_stream_copy_to_stream_ex() [all …]
|
/PHP-7.3/ext/standard/tests/file/ |
H A D | file_get_contents_error.phpt | 8 * resource $context[, int $offset[, int $maxlen]]]] ) 29 echo "\n-- Testing for invalid negative maxlen values --"; 63 -- Testing for invalid negative maxlen values --
|
H A D | file_get_contents_file_put_contents_error.phpt | 6 * resource $context[, int $offset[, int $maxlen]]]] ) 31 echo "\n-- Testing for invalid negative maxlen values --"; 67 -- Testing for invalid negative maxlen values --
|
H A D | file_get_contents_basic.phpt | 9 * resource $context[, int $offset[, int $maxlen]]]] )
|
H A D | file_get_contents_variation1.phpt | 7 …nts(string filename [, bool use_include_path [, resource context [, long offset [, long maxlen]]]])
|
H A D | file_get_contents_variation2.phpt | 7 …nts(string filename [, bool use_include_path [, resource context [, long offset [, long maxlen]]]])
|
H A D | file_get_contents_file_put_contents_basic.phpt | 7 * resource $context[, int $offset[, int $maxlen]]]] )
|
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_variation6.phpt | 7 …nts(string filename [, bool use_include_path [, resource context [, long offset [, long maxlen]]]]) 107 // loop through each element of the array for maxlen
|
H A D | file_get_contents_variation7.phpt | 7 …nts(string filename [, bool use_include_path [, resource context [, long offset [, long maxlen]]]])
|
H A D | file_get_contents_file_put_contents_variation2.phpt | 6 * resource $context[, int $offset[, int $maxlen]]]] )
|
H A D | file_get_contents_variation7-win32-mb.phpt | 12 …nts(string filename [, bool use_include_path [, resource context [, long offset [, long maxlen]]]])
|
/PHP-7.3/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
|
/PHP-7.3/ext/standard/ |
H A D | var_unserializer.c | 250 unsigned char *end = *(unsigned char **)p+maxlen; in unserialize_str() 1179 size_t len, len2, len3, maxlen; in php_var_unserialize_internal() local 1198 maxlen = max - YYCURSOR; in php_var_unserialize_internal() 1199 if (maxlen < len || len == 0) { in php_var_unserialize_internal() 1334 size_t len, maxlen; in php_var_unserialize_internal() local 1338 maxlen = max - YYCURSOR; in php_var_unserialize_internal() 1339 if (maxlen < len) { in php_var_unserialize_internal() 1344 if ((str = unserialize_str(&YYCURSOR, len, maxlen)) == NULL) { in php_var_unserialize_internal() 1437 size_t len, maxlen; in php_var_unserialize_internal() local 1441 maxlen = max - YYCURSOR; in php_var_unserialize_internal() [all …]
|
H A D | var_unserializer.re | 248 unsigned char *end = *(unsigned char **)p+maxlen; 801 size_t len, maxlen; 805 maxlen = max - YYCURSOR; 806 if (maxlen < len) { 841 size_t len, maxlen; 845 maxlen = max - YYCURSOR; 846 if (maxlen < len) { 851 if ((str = unserialize_str(&YYCURSOR, len, maxlen)) == NULL) { 919 size_t len, len2, len3, maxlen; 938 maxlen = max - YYCURSOR; [all …]
|
H A D | html.c | 1222 size_t cursor, maxlen, len; in php_escape_html_entities_ex() local 1264 maxlen = 128; in php_escape_html_entities_ex() 1266 maxlen = zend_safe_addmult(oldlen, 2, 0, "html_entities"); in php_escape_html_entities_ex() 1269 replaced = zend_string_alloc(maxlen, 0); in php_escape_html_entities_ex() 1281 if (len > maxlen - 40) { /* maxlen can never be smaller than 128 */ in php_escape_html_entities_ex() 1282 replaced = zend_string_safe_realloc(replaced, maxlen, 1, 128, 0); in php_escape_html_entities_ex() 1283 maxlen += 128; in php_escape_html_entities_ex() 1412 if (maxlen - len < ent_len + 2 /* & and ; */) { in php_escape_html_entities_ex() 1414 replaced = zend_string_safe_realloc(replaced, maxlen, 1, ent_len + 128, 0); in php_escape_html_entities_ex() 1415 maxlen += ent_len + 128; in php_escape_html_entities_ex()
|
H A D | streamsfuncs.c | 434 zend_long maxlen = (ssize_t) PHP_STREAM_COPY_ALL, in PHP_FUNCTION() local 441 Z_PARAM_LONG(maxlen) in PHP_FUNCTION() 445 if (maxlen < 0 && maxlen != (ssize_t)PHP_STREAM_COPY_ALL) { in PHP_FUNCTION() 472 if (maxlen > INT_MAX) { in PHP_FUNCTION() 473 …php_error_docref(NULL, E_WARNING, "maxlen truncated from " ZEND_LONG_FMT " to %d bytes", maxlen, I… in PHP_FUNCTION() 474 maxlen = INT_MAX; in PHP_FUNCTION() 476 if ((contents = php_stream_copy_to_mem(stream, maxlen, 0))) { in PHP_FUNCTION() 490 zend_long maxlen = PHP_STREAM_COPY_ALL, pos = 0; in PHP_FUNCTION() local 498 Z_PARAM_LONG(maxlen) in PHP_FUNCTION() 510 ret = php_stream_copy_to_stream_ex(src, dest, maxlen, &len); in PHP_FUNCTION()
|
H A D | file.c | 530 zend_long maxlen = (ssize_t) PHP_STREAM_COPY_ALL; in PHP_FUNCTION() local 542 Z_PARAM_LONG(maxlen) in PHP_FUNCTION() 545 if (ZEND_NUM_ARGS() == 5 && maxlen < 0) { in PHP_FUNCTION() 565 if (maxlen > INT_MAX) { in PHP_FUNCTION() 566 …php_error_docref(NULL, E_WARNING, "maxlen truncated from " ZEND_LONG_FMT " to %d bytes", maxlen, I… in PHP_FUNCTION() 567 maxlen = INT_MAX; in PHP_FUNCTION() 569 if ((contents = php_stream_copy_to_mem(stream, maxlen, 0)) != NULL) { in PHP_FUNCTION() 1194 zend_long maxlen = 0; in PHP_FUNCTION() local 1201 Z_PARAM_LONG(maxlen) in PHP_FUNCTION() 1206 } else if (maxlen <= 0) { in PHP_FUNCTION() [all …]
|
/PHP-7.3/sapi/phpdbg/ |
H A D | phpdbg_utils.c | 790 char *phpdbg_short_zval_print(zval *zv, int maxlen) /* {{{ */ in phpdbg_short_zval_print() argument 834 ZSTR_LEN(str) <= maxlen - 2 ? (int) ZSTR_LEN(str) : (maxlen - 3), in phpdbg_short_zval_print() 835 ZSTR_VAL(str), ZSTR_LEN(str) <= maxlen - 2 ? 0 : '+'); in phpdbg_short_zval_print() 847 ZSTR_LEN(str) <= maxlen ? (int) ZSTR_LEN(str) : maxlen - 1, in phpdbg_short_zval_print() 848 ZSTR_VAL(str), ZSTR_LEN(str) <= maxlen ? 0 : '+'); in phpdbg_short_zval_print()
|
H A D | phpdbg_utils.h | 98 char *phpdbg_short_zval_print(zval *zv, int maxlen);
|
/PHP-7.3/ |
H A D | .gdbinit | 519 set $maxlen = $arg2 521 set $maxlen = 256 525 while $tmp < $arg1 && $tmp < $maxlen 598 set $maxlen = $arg1 600 set $maxlen = $zstr->len 603 ____print_str $zstr->val $zstr->len $maxlen
|
H A D | README.STREAMS | 34 PHPAPI char *php_stream_gets(php_stream * stream, char *buf, size_t maxlen); 106 php_stream *dest, size_t maxlen); 109 PHP_STREAM_COPY_ALL as the maxlen parameter, otherwise maxlen indicates the 118 size_t maxlen, int persistent); 121 which will be maxlen bytes in length, or will be the entire length of the 122 data remaining on the stream if you set maxlen to PHP_STREAM_COPY_ALL.
|