Searched refs:maxlen (Results 1 - 25 of 29) sorted by relevance

12

/PHP_5_5/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);
H A Dmysql_statement.c690 cols[i].maxlen = S->fields[i].length;
/PHP_5_5/ext/mbstring/oniguruma/
H A Dregparse.c1607 scan_unsigned_hexadecimal_number(UChar** src, UChar* end, int maxlen, argument
1616 while (!PEND && maxlen-- != 0) {
1635 scan_unsigned_octal_number(UChar** src, UChar* end, int maxlen, argument
1644 while (!PEND && maxlen-- != 0) {
/PHP_5_5/ext/pdo/
H A Dpdo_stmt.c79 ZEND_ARG_INFO(0, maxlen)
87 ZEND_ARG_INFO(0, maxlen)
1659 /* {{{ proto bool PDOStatement::bindParam(mixed $paramno, mixed &$param [, int $type [, int $maxlen [, mixed $driverdata]]])
1668 /* {{{ proto bool PDOStatement::bindColumn(mixed $column, mixed &$param [, int $type [, int $maxlen [, mixed $driverdata]]])
1864 add_assoc_long(return_value, "len", col->maxlen); /* FIXME: unsigned ? */
H A Dphp_pdo_driver.h516 unsigned long maxlen; member in struct:pdo_column_data
/PHP_5_5/ext/pdo_dblib/
H A Ddblib_stmt.c208 col->maxlen = dbcollen(H->link, colno+1);
/PHP_5_5/ext/pdo_oci/
H A Doci_statement.c538 col->maxlen = data_size;
583 S->cols[colno].datalen = col->maxlen;
/PHP_5_5/ext/pdo_odbc/
H A Dodbc_stmt.c580 col->maxlen = S->cols[colno].datalen = colsize;
/PHP_5_5/ext/pdo_pgsql/
H A Dpgsql_statement.c442 cols[colno].maxlen = PQfsize(S->result, colno);
/PHP_5_5/ext/pdo_sqlite/
H A Dsqlite_statement.c232 stmt->columns[colno].maxlen = 0xffffffff;
/PHP_5_5/ext/phar/
H A Dfunc_interceptors.c103 long maxlen = PHP_STREAM_COPY_ALL; local
116 if (zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS() TSRMLS_CC, "p|br!ll", &filename, &filename_len, &use_include_path, &zcontext, &offset, &maxlen) == FAILURE) {
140 if (ZEND_NUM_ARGS() == 5 && maxlen < 0) {
205 if ((len = php_stream_copy_to_mem(stream, &contents, maxlen, 0)) > 0) {
H A Dphar_internal.h522 # define phar_stream_copy_to_stream(src, dest, maxlen, len) _php_stream_copy_to_stream_ex((src), (dest), (maxlen), (len) STREAMS_CC TSRMLS_CC)
/PHP_5_5/ext/sockets/
H A Dsockets.c489 static int php_read(php_socket *sock, void *buf, size_t maxlen, int flags) argument
510 while (*t != '\n' && *t != '\r' && n < maxlen) {
529 if (n < maxlen) {
540 if (n < maxlen) {
/PHP_5_5/ext/standard/
H A Dhtml.c1216 size_t cursor, maxlen, len; local
1258 maxlen = 128;
1260 maxlen = 2 * oldlen;
1261 if (maxlen < oldlen) {
1267 replaced = emalloc(maxlen + 1); /* adding 1 is safe: maxlen is even */
1279 if (len > maxlen - 40) { /* maxlen can never be smaller than 128 */
1280 replaced = safe_erealloc(replaced, maxlen , 1, 128 + 1);
1281 maxlen
[all...]
H A Dstreamsfuncs.c402 /* {{{ proto string stream_get_contents(resource source [, long maxlen [, long offset]])
403 Reads all remaining bytes (or up to maxlen bytes) from a stream and returns them as a string. */
408 long maxlen = PHP_STREAM_COPY_ALL, local
413 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r|ll", &zsrc, &maxlen, &desiredpos) == FAILURE) {
439 len = php_stream_copy_to_mem(stream, &contents, maxlen, 0);
449 /* {{{ proto long stream_copy_to_stream(resource source, resource dest [, long maxlen [, long pos]])
450 Reads up to maxlen bytes from source stream and writes them to dest stream. */
455 long maxlen = PHP_STREAM_COPY_ALL, pos = 0; local
459 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rr|ll", &zsrc, &zdest, &maxlen, &pos) == FAILURE) {
471 ret = php_stream_copy_to_stream_ex(src, dest, maxlen,
[all...]
H A Darray.c4282 int i, k, maxlen = 0; local
4307 if (array_len[i] > maxlen) {
4308 maxlen = array_len[i];
4324 array_init_size(return_value, maxlen);
4330 for (k = 0; k < maxlen; k++) {
H A Dvar_unserializer.c179 static char *unserialize_str(const unsigned char **p, size_t *len, size_t maxlen) argument
183 unsigned char *end = *(unsigned char **)p+maxlen;
615 size_t len, len2, len3, maxlen; local
635 maxlen = max - YYCURSOR;
636 if (maxlen < len || len == 0) {
856 size_t len, maxlen; local
860 maxlen = max - YYCURSOR;
861 if (maxlen < len) {
866 if ((str = unserialize_str(&YYCURSOR, &len, maxlen)) == NULL) {
906 size_t len, maxlen; local
[all...]
H A Dvar_unserializer.re177 static char *unserialize_str(const unsigned char **p, size_t *len, size_t maxlen)
181 unsigned char *end = *(unsigned char **)p+maxlen;
588 size_t len, maxlen;
592 maxlen = max - YYCURSOR;
593 if (maxlen < len) {
616 size_t len, maxlen;
620 maxlen = max - YYCURSOR;
621 if (maxlen < len) {
626 if ((str = unserialize_str(&YYCURSOR, &len, maxlen)) == NULL) {
673 size_t len, len2, len3, maxlen;
[all...]
H A Dfile.c513 /* {{{ proto string file_get_contents(string filename [, bool use_include_path [, resource context [, long offset [, long maxlen]]]])
524 long maxlen = PHP_STREAM_COPY_ALL; local
529 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "p|br!ll", &filename, &filename_len, &use_include_path, &zcontext, &offset, &maxlen) == FAILURE) {
533 if (ZEND_NUM_ARGS() == 5 && maxlen < 0) {
553 if ((len = php_stream_copy_to_mem(stream, &contents, maxlen, 0)) > 0) {
/PHP_5_5/main/
H A Dspprintf.c189 static size_t strnlen(const char *s, size_t maxlen) { argument
190 char *r = memchr(s, '\0', maxlen);
191 return r ? r-s : maxlen;
H A Dphp_streams.h64 #define php_stream_copy_to_mem_rel(src, buf, maxlen, persistent) _php_stream_copy_to_mem((src), (buf), (maxlen), (persistent) STREAMS_REL_CC TSRMLS_CC)
321 PHPAPI char *_php_stream_get_line(php_stream *stream, char *buf, size_t maxlen, size_t *returned_len TSRMLS_DC);
322 #define php_stream_gets(stream, buf, maxlen) _php_stream_get_line((stream), (buf), (maxlen), NULL TSRMLS_CC)
324 #define php_stream_get_line(stream, buf, maxlen, retlen) _php_stream_get_line((stream), (buf), (maxlen), (retlen) TSRMLS_CC)
325 PHPAPI char *php_stream_get_record(php_stream *stream, size_t maxlen, size_t *returned_len, char *delim, size_t delim_len TSRMLS_DC);
430 /* copy up to maxlen bytes from src to dest. If maxlen i
[all...]
/PHP_5_5/ext/mssql/
H A Dphp_mssql.c130 ZEND_ARG_INFO(0, maxlen)
2009 /* {{{ proto bool mssql_bind(resource stmt, string param_name, mixed var, int type [, bool is_output [, bool is_null [, int maxlen]]])
2016 long type = 0, maxlen = -1; local
2024 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rsZl|bbl", &stmt, &param_name, &param_name_len, &var, &type, &is_output, &is_null, &maxlen) == FAILURE) {
2029 maxlen = -1;
2039 /* modify datalen and maxlen according to dbrpcparam documentation */
2042 maxlen=0;
2056 maxlen=-1;
2103 if (dbrpcparam(mssql_ptr->link, param_name, (BYTE)status, type, maxlen, datalen, (LPBYTE)value)==FAIL) {
/PHP_5_5/ext/oci8/
H A Doci8_interface.c102 long maxlen = -1, type = 0; local
108 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rsz/|ll", &z_statement, &name, &name_len, &bind_var, &maxlen, &type) == FAILURE) {
118 if (php_oci_bind_by_name(statement, name, name_len, bind_var, maxlen, bind_type TSRMLS_CC)) {
/PHP_5_5/ext/pdo_firebird/
H A Dfirebird_statement.c199 col->maxlen = var->sqllen;
/PHP_5_5/main/streams/
H A Dstreams.c884 PHPAPI char *_php_stream_get_line(php_stream *stream, char *buf, size_t maxlen, argument
895 } else if (maxlen == 0) {
943 if (cpysz >= maxlen - 1) {
944 cpysz = maxlen - 1;
954 maxlen -= cpysz;
969 toread = maxlen - 1;
1002 size_t maxlen,
1010 seek_len = MIN(STREAM_BUFFERED_AMOUNT(stream), maxlen);
1025 PHPAPI char *php_stream_get_record(php_stream *stream, size_t maxlen, size_t *returned_len, char *delim, size_t delim_len TSRMLS_DC) argument
1033 if (maxlen
1001 _php_stream_search_delim(php_stream *stream, size_t maxlen, size_t skiplen, char *delim, size_t delim_len TSRMLS_DC) argument
1425 _php_stream_copy_to_mem(php_stream *src, char **buf, size_t maxlen, int persistent STREAMS_DC TSRMLS_DC) argument
1496 _php_stream_copy_to_stream_ex(php_stream *src, php_stream *dest, size_t maxlen, size_t *len STREAMS_DC TSRMLS_DC) argument
[all...]

Completed in 62 milliseconds

12