Home
last modified time | relevance | path

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

123

/PHP-5.6/ext/pdo_mysql/
H A Dget_error_codes.php3 $maxlen = 0; variable
10 $maxlen = max($maxlen, strlen($matches[1])); variable
22 printf(" case %-{$maxlen}s: return \"%s\";\n", $code, $state);
/PHP-5.6/main/
H A Dphp_streams.h64 …define php_stream_copy_to_mem_rel(src, buf, maxlen, persistent) _php_stream_copy_to_mem((src), (bu… argument
324 PHPAPI char *_php_stream_get_line(php_stream *stream, char *buf, size_t maxlen, size_t *returned_le…
325 #define php_stream_gets(stream, buf, maxlen) _php_stream_get_line((stream), (buf), (maxlen), NULL T… argument
327 #define php_stream_get_line(stream, buf, maxlen, retlen) _php_stream_get_line((stream), (buf), (max… argument
328 PHPAPI char *php_stream_get_record(php_stream *stream, size_t maxlen, size_t *returned_len, const c…
439 PHPAPI size_t _php_stream_copy_to_stream(php_stream *src, php_stream *dest, size_t maxlen STREAMS_D…
440 #define php_stream_copy_to_stream(src, dest, maxlen) _php_stream_copy_to_stream((src), (dest), (max… argument
441 PHPAPI int _php_stream_copy_to_stream_ex(php_stream *src, php_stream *dest, size_t maxlen, size_t *…
442 …ine php_stream_copy_to_stream_ex(src, dest, maxlen, len) _php_stream_copy_to_stream_ex((src), (des… argument
447 PHPAPI size_t _php_stream_copy_to_mem(php_stream *src, char **buf, size_t maxlen,
[all …]
H A Dspprintf.c194 static size_t strnlen(const char *s, size_t maxlen) { in strnlen() argument
195 char *r = memchr(s, '\0', maxlen); in strnlen()
196 return r ? r-s : maxlen; in strnlen()
/PHP-5.6/main/streams/
H A Dstreams.c944 cpysz = maxlen - 1; in _php_stream_get_line()
954 maxlen -= cpysz; in _php_stream_get_line()
969 toread = maxlen - 1; in _php_stream_get_line()
1033 if (maxlen == 0) { in php_stream_get_record()
1068 stream, maxlen, in php_stream_get_record()
1434 if (maxlen == 0) { in _php_stream_copy_to_mem()
1439 maxlen = 0; in _php_stream_copy_to_mem()
1442 if (maxlen > 0) { in _php_stream_copy_to_mem()
1509 if (maxlen == 0) { in _php_stream_copy_to_stream_ex()
1515 maxlen = 0; in _php_stream_copy_to_stream_ex()
[all …]
/PHP-5.6/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_variation6.phpt7 …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 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.phpt7 * resource $context[, int $offset[, int $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.phpt13 …nts(string filename [, bool use_include_path [, resource context [, long offset [, long maxlen]]]])
H A Dfile_get_contents_variation8.phpt13 …nts(string filename [, bool use_include_path [, resource context [, long offset [, long maxlen]]]])
H A Dfile_get_contents_variation9.phpt12 …nts(string filename [, bool use_include_path [, resource context [, long offset [, long maxlen]]]])
/PHP-5.6/ext/standard/
H A Dvar_unserializer.c237 unsigned char *end = *(unsigned char **)p+maxlen; in unserialize_str()
674 size_t len, len2, len3, maxlen; in php_var_unserialize() local
695 maxlen = max - YYCURSOR; in php_var_unserialize()
696 if (maxlen < len || len == 0) { in php_var_unserialize()
929 size_t len, maxlen; in php_var_unserialize() local
933 maxlen = max - YYCURSOR; in php_var_unserialize()
934 if (maxlen < len) { in php_var_unserialize()
939 if ((str = unserialize_str(&YYCURSOR, &len, maxlen)) == NULL) { in php_var_unserialize()
985 size_t len, maxlen; in php_var_unserialize() local
989 maxlen = max - YYCURSOR; in php_var_unserialize()
[all …]
H A Dvar_unserializer.re235 unsigned char *end = *(unsigned char **)p+maxlen;
647 size_t len, maxlen;
651 maxlen = max - YYCURSOR;
652 if (maxlen < len) {
680 size_t len, maxlen;
684 maxlen = max - YYCURSOR;
685 if (maxlen < len) {
690 if ((str = unserialize_str(&YYCURSOR, &len, maxlen)) == NULL) {
749 size_t len, len2, len3, maxlen;
770 maxlen = max - YYCURSOR;
[all …]
H A Dhtml.c1228 size_t cursor, maxlen, len; in php_escape_html_entities_ex() local
1270 maxlen = 128; in php_escape_html_entities_ex()
1272 maxlen = 2 * oldlen; in php_escape_html_entities_ex()
1273 if (maxlen < oldlen) { in php_escape_html_entities_ex()
1279 replaced = emalloc(maxlen + 1); /* adding 1 is safe: maxlen is even */ in php_escape_html_entities_ex()
1291 if (len > maxlen - 40) { /* maxlen can never be smaller than 128 */ in php_escape_html_entities_ex()
1292 replaced = safe_erealloc(replaced, maxlen , 1, 128 + 1); in php_escape_html_entities_ex()
1293 maxlen += 128; in php_escape_html_entities_ex()
1423 if (maxlen - len < ent_len + 2 /* & and ; */) { in php_escape_html_entities_ex()
1425 replaced = safe_erealloc(replaced, maxlen, 1, ent_len + 128 + 1); in php_escape_html_entities_ex()
[all …]
H A Dstreamsfuncs.c410 long maxlen = PHP_STREAM_COPY_ALL, in PHP_FUNCTION() local
415 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r|ll", &zsrc, &maxlen, &desiredpos) == FAILU… in PHP_FUNCTION()
441 len = php_stream_copy_to_mem(stream, &contents, maxlen, 0); in PHP_FUNCTION()
461 long maxlen = PHP_STREAM_COPY_ALL, pos = 0; in PHP_FUNCTION() local
465 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rr|ll", &zsrc, &zdest, &maxlen, &pos) == FAI… in PHP_FUNCTION()
477 ret = php_stream_copy_to_stream_ex(src, dest, maxlen, &len); in PHP_FUNCTION()
/PHP-5.6/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-5.6/
H A DREADME.STREAMS35 PHPAPI char *php_stream_gets(php_stream * stream, char *buf, size_t maxlen);
107 php_stream *dest, size_t maxlen);
110 PHP_STREAM_COPY_ALL as the maxlen parameter, otherwise maxlen indicates the
119 size_t maxlen, int persistent);
122 which will be maxlen bytes in length, or will be the entire length of the
123 data remaining on the stream if you set maxlen to PHP_STREAM_COPY_ALL.
/PHP-5.6/ext/mssql/
H A Dphp_mssql.c130 ZEND_ARG_INFO(0, maxlen)
2016 long type = 0, maxlen = -1; local
2024 …bl", &stmt, &param_name, &param_name_len, &var, &type, &is_output, &is_null, &maxlen) == FAILURE) {
2029 maxlen = -1;
2042 maxlen=0;
2056 maxlen=-1;
2103 …if (dbrpcparam(mssql_ptr->link, param_name, (BYTE)status, type, maxlen, datalen, (LPBYTE)value)==F…

Completed in 45 milliseconds

123