Searched defs:max_len (Results 1 - 11 of 11) sorted by relevance

/PHP_TRUNK/ext/mbstring/oniguruma/
H A Dregparse.h195 OnigDistance max_len; /* max length (byte) */ member in struct:__anon265
/PHP_TRUNK/Zend/
H A Dzend_exceptions.c557 size_t zend_spprintf(char **message, size_t max_len, const char *format, ...) /* {{{ */ argument
563 len = zend_vspprintf(message, max_len, format, arg);
569 zend_string *zend_strpprintf(size_t max_len, const char *format, ...) /* {{{ */ argument
575 str = zend_vstrpprintf(max_len, format, arg);
/PHP_TRUNK/ext/interbase/
H A Dibase_blobs.c96 int _php_ibase_blob_get(zval *return_value, ibase_blob *ib_blob, unsigned long max_len) /* {{{ */ argument
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)) {
/PHP_TRUNK/ext/ldap/
H A Dldap.c1495 static int _ldap_strlen_max(const char *str, uint max_len) argument
1499 for (i = 0; i < max_len; ++i) {
1505 return max_len;
/PHP_TRUNK/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);
/PHP_TRUNK/ext/odbc/
H A Dphp_odbc.c1459 SQLUSMALLINT max_len; local
1471 rc = SQLGetInfo(result->conn_ptr->hdbc,SQL_MAX_CURSOR_NAME_LEN, (void *)&max_len,sizeof(max_len),&len);
1476 if (max_len > 0) {
1477 cursorname = emalloc(max_len + 1);
1478 rc = SQLGetCursorName(result->stmt,cursorname,(SQLSMALLINT)max_len,&len);
1489 snprintf(cursorname, max_len+1, "php_curs_%d", (int)result->stmt);
/PHP_TRUNK/ext/zlib/
H A Dzlib.c405 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) argument
421 switch (status = php_zlib_inflate_rounds(&Z, max_len, out_buf, out_len)) {
681 zend_long max_len = 0; \
682 if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS(), "s|l", &in_buf, &in_len, &max_len)) { \
685 if (max_len < 0) { \
686 php_error_docref(NULL, E_WARNING, "length (%pd) must be greater or equal zero", max_len); \
689 if (SUCCESS != php_zlib_decode(in_buf, in_len, &out_buf, &out_len, encoding, max_len)) { \
/PHP_TRUNK/main/
H A Dspprintf.c838 PHPAPI size_t vspprintf(char **pbuf, size_t max_len, const char *format, va_list ap) /* {{{ */ argument
845 if (max_len && buf.len > max_len) {
846 buf.len = max_len;
863 PHPAPI size_t spprintf(char **pbuf, size_t max_len, const char *format, ...) /* {{{ */ argument
869 cc = vspprintf(pbuf, max_len, format, ap);
875 PHPAPI zend_string *vstrpprintf(size_t max_len, const char *format, va_list ap) /* {{{ */ argument
881 if (max_len && buf.s && buf.s->len > max_len) {
882 buf.s->len = max_len;
890 strpprintf(size_t max_len, const char *format, ...) argument
[all...]
/PHP_TRUNK/main/streams/
H A Dstreams.c1434 size_t len = 0, max_len; local
1476 max_len = ssbuf.sb.st_size + step;
1478 max_len = step;
1481 result = zend_string_alloc(max_len, persistent);
1484 while ((ret = php_stream_read(src, ptr, max_len - len))) {
1486 if (len + min_room >= max_len) {
1487 result = zend_string_realloc(result, max_len + step, persistent);
1488 max_len += step;
/PHP_TRUNK/ext/spl/
H A Dspl_directory.c2510 /* {{{ proto void SplFileObject::setMaxLineLen(int max_len)
2514 zend_long max_len; local
2518 if (zend_parse_parameters(ZEND_NUM_ARGS(), "l", &max_len) == FAILURE) {
2522 if (max_len < 0) {
2527 intern->u.file.max_line_len = max_len;
3003 ZEND_ARG_INFO(0, max_len)

Completed in 33 milliseconds