Home
last modified time | relevance | path

Searched refs:max_len (Results 1 – 21 of 21) sorted by relevance

/PHP-7.3/ext/intl/grapheme/
H A Dgrapheme_util.h42 …NG(offset, max_len) ( offset <= INT32_MIN || offset > INT32_MAX || (offset < 0 ? -offset > (zend_l… argument
/PHP-7.3/ext/mysqli/tests/
H A Dmysqli_insert_packet_overflow.phpt11 $max_len = pow(2, 24);
39 $max_len = pow(2, 24);
40 if ($org_max_allowed_packet < $max_len) {
41 if (!mysqli_query($link, "SET GLOBAL max_allowed_packet = " . ($max_len + 100))) {
69 $max_len = pow(2, 24);
70 if ($max_allowed_packet < $max_len) {
83 $blob = str_repeat('a', $max_len - $com_query_len - $query_len);
/PHP-7.3/ext/interbase/tests/
H A Dinterbase.inc78 function rand_binstr($max_len)
80 $len = rand() % $max_len;
88 function rand_str($max_len)
90 $len = rand() % $max_len;
/PHP-7.3/ext/spl/internal/
H A Dsplfileobject.inc27 private $max_len = 0;
67 $buf = fgets($this->fp, $this->max_len);
91 return fgetcsv($this->fp, $this->max_len, $delimiter, $enclosure);
232 * @param $max_len set the maximum line length read
234 function setMaxLineLen($max_len)
236 $this->max_len = $max_len;
244 return $this->max_len;
327 $this->line = fgets($this->fp, $this->max_len);
/PHP-7.3/Zend/
H A Dzend.h228 ZEND_API size_t zend_vspprintf(char **pbuf, size_t max_len, const char *format, va_list ap);
229 ZEND_API size_t zend_spprintf(char **message, size_t max_len, const char *format, ...) ZEND_ATTRIBU…
230 ZEND_API zend_string *zend_vstrpprintf(size_t max_len, const char *format, va_list ap);
231 ZEND_API zend_string *zend_strpprintf(size_t max_len, const char *format, ...) ZEND_ATTRIBUTE_FORMA…
235 ZEND_API size_t zend_spprintf_unchecked(char **message, size_t max_len, const char *format, ...);
236 ZEND_API zend_string *zend_strpprintf_unchecked(size_t max_len, const char *format, ...);
H A Dzend.c186 if (max_len && buf.len > max_len) { in ZEND_INI_END()
187 buf.len = max_len; in ZEND_INI_END()
202 ZEND_API size_t zend_spprintf(char **message, size_t max_len, const char *format, ...) /* {{{ */ in zend_spprintf() argument
208 len = zend_vspprintf(message, max_len, format, arg); in zend_spprintf()
220 len = zend_vspprintf(message, max_len, format, arg); in zend_spprintf_unchecked()
226 ZEND_API zend_string *zend_vstrpprintf(size_t max_len, const char *format, va_list ap) /* {{{ */ in zend_vstrpprintf() argument
236 if (max_len && ZSTR_LEN(buf.s) > max_len) { in zend_vstrpprintf()
237 ZSTR_LEN(buf.s) = max_len; in zend_vstrpprintf()
245 ZEND_API zend_string *zend_strpprintf(size_t max_len, const char *format, ...) /* {{{ */ in zend_strpprintf() argument
251 str = zend_vstrpprintf(max_len, format, arg); in zend_strpprintf()
[all …]
/PHP-7.3/ext/interbase/
H A Dibase_blobs.c109 int _php_ibase_blob_get(zval *return_value, ibase_blob *ib_blob, zend_ulong max_len) /* {{{ */ in _php_ibase_blob_get() argument
118 bl_data = zend_string_safe_alloc(1, max_len, 0, 0); in _php_ibase_blob_get()
120 …for (cur_len = stat = 0; (stat == 0 || stat == isc_segment) && cur_len < max_len; cur_len += seg_l… in _php_ibase_blob_get()
122 unsigned short chunk_size = (max_len-cur_len) > USHRT_MAX ? USHRT_MAX in _php_ibase_blob_get()
123 : (unsigned short)(max_len-cur_len); in _php_ibase_blob_get()
H A Dphp_ibase_includes.h179 int _php_ibase_blob_get(zval *return_value, ibase_blob *ib_blob, zend_ulong max_len);
H A Dibase_query.c1545 zend_ulong max_len = 0; in _php_ibase_fetch_hash() local
1581 max_len = isc_vax_integer(&bl_info[i+2], item_len); in _php_ibase_fetch_hash()
1587 if (max_len == 0) { in _php_ibase_fetch_hash()
1590 max_len)) { in _php_ibase_fetch_hash()
/PHP-7.3/ext/mysqlnd/
H A Dmysqlnd_alloc.h45 int (*m_sprintf)(char **pbuf, size_t max_len, const char *format, ...);
46 int (*m_vsprintf)(char **pbuf, size_t max_len, const char *format, va_list ap);
H A Dmysqlnd_alloc.c661 static int _mysqlnd_sprintf(char ** pbuf, size_t max_len, const char *format, ...) in _mysqlnd_sprintf() argument
666 len = vspprintf(pbuf, max_len, format, ap); in _mysqlnd_sprintf()
673 static int _mysqlnd_vsprintf(char ** pbuf, size_t max_len, const char * format, va_list ap) in _mysqlnd_vsprintf() argument
675 return vspprintf(pbuf, max_len, format, ap); in _mysqlnd_vsprintf()
/PHP-7.3/ext/zlib/
H A Dzlib.c422 …e(const char *in_buf, size_t in_len, char **out_buf, size_t *out_len, int encoding, size_t max_len) in php_zlib_decode() argument
438 switch (status = php_zlib_inflate_rounds(&Z, max_len, out_buf, out_len)) { in php_zlib_decode()
698 zend_long max_len = 0; \
699 if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS(), "s|l", &in_buf, &in_len, &max_len)) { \
702 if (max_len < 0) { \
703 …ror_docref(NULL, E_WARNING, "length (" ZEND_LONG_FMT ") must be greater or equal zero", max_len); \
706 if (SUCCESS != php_zlib_decode(in_buf, in_len, &out_buf, &out_len, encoding, max_len)) { \
/PHP-7.3/sapi/litespeed/
H A Dlscriu.c321 static char *LSCRIU_Error_File_Name(char *pchFile, int max_len) in LSCRIU_Error_File_Name() argument
325 snprintf(pchFile, max_len, "%s%s", pchDefaultSocketPath, in LSCRIU_Error_File_Name()
H A Dlsapilib.c3851 static int lsapi_check_path(const char *p, char *final, int max_len) in lsapi_check_path() argument
3858 if (getcwd(final, max_len) == NULL) in lsapi_check_path()
/PHP-7.3/main/streams/
H A Dstreams.c1405 size_t len = 0, max_len; in _php_stream_copy_to_mem() local
1452 max_len = ssbuf.sb.st_size + step; in _php_stream_copy_to_mem()
1454 max_len = step; in _php_stream_copy_to_mem()
1457 result = zend_string_alloc(max_len, persistent); in _php_stream_copy_to_mem()
1460 while ((ret = php_stream_read(src, ptr, max_len - len))) { in _php_stream_copy_to_mem()
1462 if (len + min_room >= max_len) { in _php_stream_copy_to_mem()
1463 result = zend_string_extend(result, max_len + step, persistent); in _php_stream_copy_to_mem()
1464 max_len += step; in _php_stream_copy_to_mem()
/PHP-7.3/ext/mbstring/oniguruma/src/
H A Dregparse.h141 OnigLen max_len; /* max length (byte) */ member
H A Dregcomp.c3203 len = en->max_len; in tree_max_len()
3212 en->max_len = len; in tree_max_len()
4343 int r, n, one_len, min_len, max_len, in_look_behind; in unravel_case_fold_string() local
4384 get_min_max_byte_len_case_fold_items(n, items, &min_len, &max_len); in unravel_case_fold_string()
4385 q = p + max_len; in unravel_case_fold_string()
4386 if (one_len == max_len && min_len == max_len) { in unravel_case_fold_string()
4387 r = unravel_cf_string_alt_or_cc_add(&list, n, items, max_len, enc, in unravel_case_fold_string()
6197 if (NODE_IS_MAX_FIXED(node)) max = en->max_len; in optimize_nodes()
/PHP-7.3/ext/odbc/
H A Dphp_odbc.c1514 SQLUSMALLINT max_len; in PHP_FUNCTION() local
1528 …rc = SQLGetInfo(result->conn_ptr->hdbc,SQL_MAX_CURSOR_NAME_LEN, (void *)&max_len,sizeof(max_len),&… in PHP_FUNCTION()
1533 if (max_len > 0) { in PHP_FUNCTION()
1534 cursorname = emalloc(max_len + 1); in PHP_FUNCTION()
1535 rc = SQLGetCursorName(result->stmt,cursorname,(SQLSMALLINT)max_len,&len); in PHP_FUNCTION()
1546 snprintf(cursorname, max_len+1, "php_curs_" ZEND_ULONG_FMT, (zend_ulong)result->stmt); in PHP_FUNCTION()
/PHP-7.3/ext/openssl/
H A Dxp_ssl.c964 static char *php_openssl_cipher_get_version(const SSL_CIPHER *c, char *buffer, size_t max_len) /* {… in php_openssl_cipher_get_version() argument
968 strncpy(buffer, version, max_len); in php_openssl_cipher_get_version()
969 if (max_len <= strlen(version)) { in php_openssl_cipher_get_version()
970 buffer[max_len - 1] = 0; in php_openssl_cipher_get_version()
/PHP-7.3/ext/spl/
H A Dspl_directory.c2513 zend_long max_len; in SPL_METHOD() local
2517 if (zend_parse_parameters(ZEND_NUM_ARGS(), "l", &max_len) == FAILURE) { in SPL_METHOD()
2521 if (max_len < 0) { in SPL_METHOD()
2526 intern->u.file.max_line_len = max_len; in SPL_METHOD()
3005 ZEND_ARG_INFO(0, max_len)
/PHP-7.3/ext/ldap/
H A Dldap.c2568 static size_t _ldap_strlen_max(const char *str, size_t max_len) in _ldap_strlen_max() argument
2572 for (i = 0; i < max_len; ++i) { in _ldap_strlen_max()
2578 return max_len; in _ldap_strlen_max()

Completed in 107 milliseconds