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

/PHP_TRUNK/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_TRUNK/ext/mbstring/oniguruma/
H A Dregparse.h195 OnigDistance max_len; /* max length (byte) */ member in struct:__anon265
H A Dregcomp.c2237 *max = en->max_len;
2241 en->max_len = *max;
4847 if (IS_ENCLOSE_MAX_FIXED(en)) max = en->max_len;
/PHP_TRUNK/ext/mysqlnd/
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);
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);
/PHP_TRUNK/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_TRUNK/Zend/
H A Dzend_exceptions.h56 int zend_spprintf(char **message, int max_len, const char *format, ...);
57 zend_string *zend_strpprintf(int max_len, const char *format, ...);
H A Dzend.c57 zend_size_t (*zend_vspprintf)(char **pbuf, zend_size_t max_len, const char *format, va_list ap);
58 zend_string *(*zend_vstrpprintf)(size_t max_len, const char *format, va_list ap);
H A Dzend.h547 zend_size_t (*vspprintf_function)(char **pbuf, size_t max_len, const char *format, va_list ap);
548 zend_string *(*vstrpprintf_function)(size_t max_len, const char *format, va_list ap);
658 extern zend_size_t (*zend_vspprintf)(char **pbuf, zend_size_t max_len, const char *format, va_list ap);
659 extern zend_string *(*zend_vstrpprintf)(zend_size_t max_len, const char *format, va_list ap);
/PHP_TRUNK/ext/interbase/
H A Dphp_ibase_includes.h178 int _php_ibase_blob_get(zval *return_value, ibase_blob *ib_blob, unsigned long max_len TSRMLS_DC);
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.c1546 unsigned long max_len = 0; local
1582 max_len = isc_vax_integer(&bl_info[i+2], item_len);
1588 if (max_len == 0) {
1591 max_len TSRMLS_CC)) {
/PHP_TRUNK/ext/intl/grapheme/
H A Dgrapheme_util.h47 #define OUTSIDE_STRING(offset, max_len) ( offset <= INT32_MIN || offset > INT32_MAX || (offset < 0 ? -offset > (php_int_t) max_len : offset >= (php_int_t) max_len) )
/PHP_TRUNK/ext/ldap/
H A Dldap.c1472 static int _ldap_strlen_max(const char *str, uint max_len) argument
1476 for (i = 0; i < max_len; ++i) {
1482 return max_len;
/PHP_TRUNK/ext/odbc/
H A Dphp_odbc.c1464 SQLUSMALLINT max_len; local
1476 rc = SQLGetInfo(result->conn_ptr->hdbc,SQL_MAX_CURSOR_NAME_LEN, (void *)&max_len,sizeof(max_len),&len);
1481 if (max_len > 0) {
1482 cursorname = emalloc(max_len + 1);
1483 rc = SQLGetCursorName(result->stmt,cursorname,(SQLSMALLINT)max_len,&len);
1494 snprintf(cursorname, max_len+1, "php_curs_%d", (int)result->stmt);
/PHP_TRUNK/ext/spl/
H A Dspl_directory.c2510 /* {{{ proto void SplFileObject::setMaxLineLen(int max_len)
2514 php_int_t max_len; local
2518 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "i", &max_len) == FAILURE) {
2522 if (max_len < 0) {
2527 intern->u.file.max_line_len = max_len;
2990 ZEND_ARG_INFO(0, max_len)
/PHP_TRUNK/ext/zlib/
H A Dzlib.c393 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)
409 switch (status = php_zlib_inflate_rounds(&Z, max_len, out_buf, out_len)) {
670 php_int_t max_len = 0; \
671 if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|i", &in_buf, &in_len, &max_len)) { \
674 if (max_len < 0) { \
675 php_error_docref(NULL TSRMLS_CC, E_WARNING, "length (%pd) must be greater or equal zero", max_len); \
678 if (SUCCESS != php_zlib_decode(in_buf, in_len, &out_buf, &out_len, encoding, max_len TSRMLS_CC)) { \
/PHP_TRUNK/main/
H A Dspprintf.c822 PHPAPI php_size_t vspprintf(char **pbuf, size_t max_len, const char *format, va_list ap) /* {{{ */ argument
829 if (max_len && buf.len > max_len) {
830 buf.len = max_len;
847 PHPAPI php_size_t spprintf(char **pbuf, size_t max_len, const char *format, ...) /* {{{ */ argument
853 cc = vspprintf(pbuf, max_len, format, ap);
859 PHPAPI zend_string *vstrpprintf(size_t max_len, const char *format, va_list ap) /* {{{ */ argument
865 if (max_len && buf.s && buf.s->len > max_len) {
866 buf.s->len = max_len;
874 strpprintf(size_t max_len, const char *format, ...) argument
[all...]
H A Dspprintf.h40 PHPAPI php_size_t spprintf( char **pbuf, size_t max_len, const char *format, ...) PHP_ATTRIBUTE_FORMAT(printf, 3, 4);
42 PHPAPI php_size_t vspprintf(char **pbuf, size_t max_len, const char *format, va_list ap) PHP_ATTRIBUTE_FORMAT(printf, 3, 0);
44 PHPAPI zend_string *vstrpprintf(size_t max_len, const char *format, va_list ap);
46 PHPAPI zend_string *strpprintf(size_t max_len, const char *format, ...);
/PHP_TRUNK/main/streams/
H A Dstreams.c1433 size_t len = 0, max_len; local
1475 max_len = ssbuf.sb.st_size + step;
1477 max_len = step;
1480 result = STR_ALLOC(max_len, persistent);
1483 while ((ret = php_stream_read(src, ptr, max_len - len))) {
1485 if (len + min_room >= max_len) {
1486 result = STR_REALLOC(result, max_len + step, persistent);
1487 max_len += step;

Completed in 47 milliseconds