Searched refs:max_len (Results 1 - 20 of 20) sorted by relevance

/PHP_5_5/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_5_5/ext/mbstring/oniguruma/
H A Dregcomp.c2237 *max = en->max_len;
2241 en->max_len = *max;
4848 if (IS_ENCLOSE_MAX_FIXED(en)) max = en->max_len;
H A Dregparse.h195 OnigDistance max_len; /* max length (byte) */ member in struct:__anon265
/PHP_5_5/ext/intl/grapheme/
H A Dgrapheme_util.h47 #define OUTSIDE_STRING(offset, max_len) ( offset <= INT32_MIN || offset > INT32_MAX || (offset < 0 ? -offset > (long) max_len : offset >= (long) max_len) )
/PHP_5_5/ext/zlib/
H A Dzlib.c394 static int php_zlib_decode(const char *in_buf, size_t in_len, char **out_buf, size_t *out_len, int encoding, size_t max_len TSRMLS_DC)
410 switch (status = php_zlib_inflate_rounds(&Z, max_len, out_buf, out_len)) {
673 long max_len = 0; \
674 if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|l", &in_buf, &in_len, &max_len)) { \
677 if (max_len < 0) { \
678 php_error_docref(NULL TSRMLS_CC, E_WARNING, "length (%ld) must be greater or equal zero", max_len); \
681 if (SUCCESS != php_zlib_decode(in_buf, in_len, &out_buf, &out_len, encoding, max_len TSRMLS_CC)) { \
/PHP_5_5/main/
H A Dspprintf.c795 PHPAPI int vspprintf(char **pbuf, size_t max_len, const char *format, va_list ap) /* {{{ */ argument
801 if (max_len && xbuf.len > max_len) {
802 xbuf.len = max_len;
812 PHPAPI int spprintf(char **pbuf, size_t max_len, const char *format, ...) /* {{{ */ argument
818 cc = vspprintf(pbuf, max_len, format, ap);
H A Dspprintf.h40 PHPAPI int spprintf( char **pbuf, size_t max_len, const char *format, ...) PHP_ATTRIBUTE_FORMAT(printf, 3, 4);
42 PHPAPI int vspprintf(char **pbuf, size_t max_len, const char *format, va_list ap) PHP_ATTRIBUTE_FORMAT(printf, 3, 0);
/PHP_5_5/Zend/
H A Dzend.c56 int (*zend_vspprintf)(char **pbuf, size_t max_len, const char *format, va_list ap);
H A Dzend.h554 int (*vspprintf_function)(char **pbuf, size_t max_len, const char *format, va_list ap);
698 extern int (*zend_vspprintf)(char **pbuf, size_t max_len, const char *format, va_list ap);
H A Dzend_exceptions.h56 int zend_spprintf(char **message, int max_len, const char *format, ...);
/PHP_5_5/ext/mysqlnd/
H A Dmysqlnd_alloc.c615 PHPAPI int _mysqlnd_sprintf(char ** pbuf, size_t max_len, const char *format, ...) argument
620 len = vspprintf(pbuf, max_len, format, ap);
635 PHPAPI int _mysqlnd_vsprintf(char ** pbuf, size_t max_len, const char * format, va_list ap) argument
637 return vspprintf(pbuf, max_len, format, ap);
H A Dmysqlnd_alloc.h48 int (*m_sprintf)(char **pbuf, size_t max_len, const char *format, ...);
49 int (*m_vsprintf)(char **pbuf, size_t max_len, const char *format, va_list ap);
69 PHPAPI int _mysqlnd_sprintf(char **pbuf, size_t max_len, const char *format, ...);
71 PHPAPI int _mysqlnd_vsprintf(char **pbuf, size_t max_len, const char *format, va_list ap);
/PHP_5_5/ext/interbase/
H A Dibase_blobs.c96 int _php_ibase_blob_get(zval *return_value, ibase_blob *ib_blob, unsigned long max_len TSRMLS_DC) /* {{{ */
105 bl_data = safe_emalloc(1, max_len, 1);
107 for (cur_len = stat = 0; (stat == 0 || stat == isc_segment) && cur_len < max_len; cur_len += seg_len) {
109 unsigned short chunk_size = (max_len-cur_len) > USHRT_MAX ? USHRT_MAX
110 : (unsigned short)(max_len-cur_len);
H A Dibase_query.c1548 unsigned long max_len = 0; local
1584 max_len = isc_vax_integer(&bl_info[i+2], item_len);
1590 if (max_len == 0) {
1593 max_len TSRMLS_CC)) {
H A Dphp_ibase_includes.h177 int _php_ibase_blob_get(zval *return_value, ibase_blob *ib_blob, unsigned long max_len TSRMLS_DC);
/PHP_5_5/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_5_5/ext/ldap/
H A Dldap.c1475 static int _ldap_strlen_max(const char *str, uint max_len) argument
1479 for (i = 0; i < max_len; ++i) {
1485 return max_len;
/PHP_5_5/main/streams/
H A Dstreams.c1429 size_t len = 0, max_len; local
1468 max_len = ssbuf.sb.st_size + step;
1470 max_len = step;
1473 ptr = *buf = pemalloc_rel_orig(max_len, persistent);
1475 while((ret = php_stream_read(src, ptr, max_len - len))) {
1477 if (len + min_room >= max_len) {
1478 *buf = perealloc_rel_orig(*buf, max_len + step, persistent);
1479 max_len += step;
/PHP_5_5/ext/spl/
H A Dspl_directory.c2515 /* {{{ proto void SplFileObject::setMaxLineLen(int max_len)
2519 long max_len; local
2523 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &max_len) == FAILURE) {
2527 if (max_len < 0) {
2532 intern->u.file.max_line_len = max_len;
2936 ZEND_ARG_INFO(0, max_len)
/PHP_5_5/ext/odbc/
H A Dphp_odbc.c1479 SQLUSMALLINT max_len; local
1491 rc = SQLGetInfo(result->conn_ptr->hdbc,SQL_MAX_CURSOR_NAME_LEN, (void *)&max_len,sizeof(max_len),&len);
1496 if (max_len > 0) {
1497 cursorname = emalloc(max_len + 1);
1498 rc = SQLGetCursorName(result->stmt,cursorname,(SQLSMALLINT)max_len,&len);
1509 snprintf(cursorname, max_len+1, "php_curs_%d", (int)result->stmt);

Completed in 67 milliseconds