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

12

/PHP_5_3/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);
/PHP_5_3/ext/mssql/
H A Dphp_mssql.c130 ZEND_ARG_INFO(0, maxlen)
2014 /* {{{ proto bool mssql_bind(resource stmt, string param_name, mixed var, int type [, bool is_output [, bool is_null [, int maxlen]]])
2021 long type = 0, maxlen = -1; local
2029 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) {
2034 maxlen = -1;
2044 /* modify datalen and maxlen according to dbrpcparam documentation */
2047 maxlen=0;
2061 maxlen=-1;
2108 if (dbrpcparam(mssql_ptr->link, param_name, (BYTE)status, type, maxlen, datalen, (LPBYTE)value)==FAIL) {
/PHP_5_3/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_3/ext/pdo/
H A Dphp_pdo_driver.h518 unsigned long maxlen; member in struct:pdo_column_data
/PHP_5_3/ext/pdo_dblib/
H A Ddblib_stmt.c137 S->cols[i].maxlen = dbcollen(H->link, i+1);
261 col->maxlen = S->cols[colno].maxlen;
H A Dphp_pdo_dblib_int.h119 int maxlen; member in struct:__anon129
/PHP_5_3/ext/pdo_oci/
H A Doci_statement.c532 col->maxlen = data_size;
577 S->cols[colno].datalen = col->maxlen;
/PHP_5_3/ext/pdo_odbc/
H A Dodbc_stmt.c574 col->maxlen = S->cols[colno].datalen = colsize;
/PHP_5_3/ext/pdo_pgsql/
H A Dpgsql_statement.c442 cols[colno].maxlen = PQfsize(S->result, colno);
/PHP_5_3/ext/pdo_sqlite/
H A Dsqlite_statement.c226 stmt->columns[colno].maxlen = 0xffffffff;
/PHP_5_3/ext/sockets/
H A Dphp_sockets.h104 static int php_read(php_socket *sock, void *buf, size_t maxlen, int flags);
H A Dsockets.c420 static int php_read(php_socket *sock, void *buf, size_t maxlen, int flags) argument
441 while (*t != '\n' && *t != '\r' && n < maxlen) {
460 if (n < maxlen) {
471 if (n < maxlen) {
/PHP_5_3/ext/sqlite/
H A Dpdo_sqlite2.c183 stmt->columns[colno].maxlen = 0xffffffff;
/PHP_5_3/ext/standard/
H A Darray.c4237 int i, k, maxlen = 0; local
4262 if (array_len[i] > maxlen) {
4263 maxlen = array_len[i];
4279 array_init_size(return_value, maxlen);
4285 for (k = 0; k < maxlen; k++) {
H A Dvar_unserializer.c143 static char *unserialize_str(const unsigned char **p, size_t *len, size_t maxlen) argument
147 unsigned char *end = *(unsigned char **)p+maxlen;
549 size_t len, len2, len3, maxlen; local
569 maxlen = max - YYCURSOR;
570 if (maxlen < len || len == 0) {
761 size_t len, maxlen; local
765 maxlen = max - YYCURSOR;
766 if (maxlen < len) {
771 if ((str = unserialize_str(&YYCURSOR, &len, maxlen)) == NULL) {
811 size_t len, maxlen; local
[all...]
H A Dvar_unserializer.re141 static char *unserialize_str(const unsigned char **p, size_t *len, size_t maxlen)
145 unsigned char *end = *(unsigned char **)p+maxlen;
522 size_t len, maxlen;
526 maxlen = max - YYCURSOR;
527 if (maxlen < len) {
550 size_t len, maxlen;
554 maxlen = max - YYCURSOR;
555 if (maxlen < len) {
560 if ((str = unserialize_str(&YYCURSOR, &len, maxlen)) == NULL) {
607 size_t len, len2, len3, maxlen;
[all...]
H A Dstring.c2703 int maxlen = 0, pos, len, found; local
2720 if (len > maxlen) {
2721 maxlen = len;
2737 if (len > maxlen) {
2738 maxlen = len;
2748 key = emalloc(maxlen+1);
2752 if ((pos + maxlen) > slen) {
2753 maxlen = slen - pos;
2757 memcpy(key, str+pos, maxlen);
2759 for (len = maxlen; le
[all...]
H A Dfile.c527 /* {{{ proto string file_get_contents(string filename [, bool use_include_path [, resource context [, long offset [, long maxlen]]]])
538 long maxlen = PHP_STREAM_COPY_ALL; local
543 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|br!ll", &filename, &filename_len, &use_include_path, &zcontext, &offset, &maxlen) == FAILURE) {
551 if (ZEND_NUM_ARGS() == 5 && maxlen < 0) {
571 if ((len = php_stream_copy_to_mem(stream, &contents, maxlen, 0)) > 0) {
H A Dstreamsfuncs.c408 /* {{{ proto string stream_get_contents(resource source [, long maxlen [, long offset]])
409 Reads all remaining bytes (or up to maxlen bytes) from a stream and returns them as a string. */
414 long maxlen = PHP_STREAM_COPY_ALL, local
420 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r|ll", &zsrc, &maxlen, &desiredpos) == FAILURE) {
446 len = php_stream_copy_to_mem(stream, &contents, maxlen, 0);
460 /* {{{ proto long stream_copy_to_stream(resource source, resource dest [, long maxlen [, long pos]])
461 Reads up to maxlen bytes from source stream and writes them to dest stream. */
466 long maxlen = PHP_STREAM_COPY_ALL, pos = 0; local
470 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rr|ll", &zsrc, &zdest, &maxlen, &pos) == FAILURE) {
482 ret = php_stream_copy_to_stream_ex(src, dest, maxlen,
[all...]
/PHP_5_3/main/
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)
316 PHPAPI char *_php_stream_get_line(php_stream *stream, char *buf, size_t maxlen, size_t *returned_len TSRMLS_DC);
317 #define php_stream_gets(stream, buf, maxlen) _php_stream_get_line((stream), (buf), (maxlen), NULL TSRMLS_CC)
319 #define php_stream_get_line(stream, buf, maxlen, retlen) _php_stream_get_line((stream), (buf), (maxlen), (retlen) TSRMLS_CC)
320 PHPAPI char *php_stream_get_record(php_stream *stream, size_t maxlen, size_t *returned_len, char *delim, size_t delim_len TSRMLS_DC);
424 /* copy up to maxlen bytes from src to dest. If maxlen i
[all...]
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;
/PHP_5_3/main/streams/
H A Dstreams.c814 PHPAPI char *_php_stream_get_line(php_stream *stream, char *buf, size_t maxlen, argument
825 } else if (maxlen == 0) {
873 if (cpysz >= maxlen - 1) {
874 cpysz = maxlen - 1;
884 maxlen -= cpysz;
899 toread = maxlen - 1;
932 size_t maxlen,
940 seek_len = MIN(STREAM_BUFFERED_AMOUNT(stream), maxlen);
955 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
963 if (maxlen
931 _php_stream_search_delim(php_stream *stream, size_t maxlen, size_t skiplen, char *delim, size_t delim_len TSRMLS_DC) argument
1350 _php_stream_copy_to_mem(php_stream *src, char **buf, size_t maxlen, int persistent STREAMS_DC TSRMLS_DC) argument
1421 _php_stream_copy_to_stream_ex(php_stream *src, php_stream *dest, size_t maxlen, size_t *len STREAMS_DC TSRMLS_DC) argument
[all...]
/PHP_5_3/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, "s|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.h525 static inline size_t phar_stream_copy_to_stream(php_stream *src, php_stream *dest, size_t maxlen, size_t *len STREAMS_DC TSRMLS_DC) argument
527 size_t ret = php_stream_copy_to_stream(src, dest, maxlen);
537 # 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_3/ext/pdo_firebird/
H A Dfirebird_statement.c201 col->maxlen = var->sqllen;

Completed in 58 milliseconds

12