Searched defs:maxlen (Results 1 - 17 of 17) sorted by relevance

/PHP_TRUNK/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_TRUNK/ext/mbstring/oniguruma/
H A Dregparse.c1615 scan_unsigned_hexadecimal_number(UChar** src, UChar* end, int maxlen, argument
1624 while (!PEND && maxlen-- != 0) {
1643 scan_unsigned_octal_number(UChar** src, UChar* end, int maxlen, argument
1652 while (!PEND && maxlen-- != 0) {
/PHP_TRUNK/ext/oci8/
H A Doci8_interface.c103 zend_long maxlen = -1, type = 0; local
109 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rsz/|ll", &z_statement, &name, &name_len, &bind_var, &maxlen, &type) == FAILURE) {
119 if (php_oci_bind_by_name(statement, name, name_len, bind_var, maxlen, bind_type TSRMLS_CC)) {
/PHP_TRUNK/ext/pdo/
H A Dphp_pdo_driver.h531 zend_ulong maxlen; member in struct:pdo_column_data
/PHP_TRUNK/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_TRUNK/ext/exif/
H A Dexif.c283 static size_t php_strnlen(char* str, size_t maxlen) { argument
286 if (str && maxlen && *str) {
289 } while (--maxlen && *(++str));
/PHP_TRUNK/ext/standard/
H A Dhtml.c1227 size_t cursor, maxlen, len; local
1269 maxlen = 128;
1271 maxlen = 2 * oldlen;
1272 if (maxlen < oldlen) {
1278 replaced = zend_string_alloc(maxlen, 0);
1290 if (len > maxlen - 40) { /* maxlen can never be smaller than 128 */
1291 replaced = zend_string_safe_realloc(replaced, maxlen, 1, 128, 0);
1292 maxlen += 128;
1420 /* at this point maxlen
[all...]
H A Dstreamsfuncs.c395 /* {{{ proto string stream_get_contents(resource source [, long maxlen [, long offset]])
396 Reads all remaining bytes (or up to maxlen bytes) from a stream and returns them as a string. */
401 zend_long maxlen = PHP_STREAM_COPY_ALL, local
405 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r|ll", &zsrc, &maxlen, &desiredpos) == FAILURE) {
431 if (maxlen > INT_MAX) {
432 php_error_docref(NULL TSRMLS_CC, E_WARNING, "maxlen truncated from %pd to %d bytes", maxlen, INT_MAX);
433 maxlen = INT_MAX;
435 if ((contents = php_stream_copy_to_mem(stream, maxlen, 0))) {
443 /* {{{ proto long stream_copy_to_stream(resource source, resource dest [, long maxlen [, lon
449 zend_long maxlen = PHP_STREAM_COPY_ALL, pos = 0; local
[all...]
H A Darray.c4470 uint32_t k, maxlen = 0; local
4494 maxlen = zend_hash_num_elements(Z_ARRVAL(arrays[0]));
4502 array_init_size(return_value, maxlen);
4535 if (zend_hash_num_elements(Z_ARRVAL(arrays[i])) > maxlen) {
4536 maxlen = zend_hash_num_elements(Z_ARRVAL(arrays[i]));
4540 array_init_size(return_value, maxlen);
4546 for (k = 0; k < maxlen; k++) {
4577 for (k = 0; k < maxlen; k++) {
H A Dfile.c521 /* {{{ proto string file_get_contents(string filename [, bool use_include_path [, resource context [, long offset [, long maxlen]]]])
530 zend_long maxlen = PHP_STREAM_COPY_ALL; local
536 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "p|br!ll", &filename, &filename_len, &use_include_path, &zcontext, &offset, &maxlen) == FAILURE) {
540 if (ZEND_NUM_ARGS() == 5 && maxlen < 0) {
560 if (maxlen > INT_MAX) {
561 php_error_docref(NULL TSRMLS_CC, E_WARNING, "maxlen truncated from %pd to %d bytes", maxlen, INT_MAX);
562 maxlen = INT_MAX;
564 if ((contents = php_stream_copy_to_mem(stream, maxlen, 0)) != NULL) {
1201 zend_long maxlen local
[all...]
H A Dstring.c2804 size_t maxlen = 0; local
2826 if (len > maxlen) {
2827 maxlen = len;
2851 if (len > maxlen) {
2852 maxlen = len;
2874 if (UNEXPECTED(minlen > maxlen)) {
2885 if ((maxlen - (minlen - 1) - len > 0) &&
2914 if (maxlen > slen - pos) {
2915 maxlen = slen - pos;
2919 for (len = maxlen; le
[all...]
H A Dvar_unserializer.c186 static zend_string *unserialize_str(const unsigned char **p, size_t len, size_t maxlen) argument
190 unsigned char *end = *(unsigned char **)p+maxlen;
656 size_t len, len2, len3, maxlen; local
675 maxlen = max - YYCURSOR;
676 if (maxlen < len || len == 0) {
897 size_t len, maxlen; local
901 maxlen = max - YYCURSOR;
902 if (maxlen < len) {
907 if ((str = unserialize_str(&YYCURSOR, len, maxlen)) == NULL) {
946 size_t len, maxlen; local
[all...]
/PHP_TRUNK/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;
/PHP_TRUNK/main/streams/
H A Dstreams.c888 PHPAPI char *_php_stream_get_line(php_stream *stream, char *buf, size_t maxlen, argument
899 } else if (maxlen == 0) {
947 if (cpysz >= maxlen - 1) {
948 cpysz = maxlen - 1;
958 maxlen -= cpysz;
973 toread = maxlen - 1;
1006 size_t maxlen,
1014 seek_len = MIN(STREAM_BUFFERED_AMOUNT(stream), maxlen);
1029 PHPAPI zend_string *php_stream_get_record(php_stream *stream, size_t maxlen, const char *delim, size_t delim_len TSRMLS_DC) argument
1037 if (maxlen
1005 _php_stream_search_delim(php_stream *stream, size_t maxlen, size_t skiplen, const char *delim, size_t delim_len TSRMLS_DC) argument
1430 _php_stream_copy_to_mem(php_stream *src, size_t maxlen, int persistent STREAMS_DC TSRMLS_DC) argument
1506 _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_TRUNK/ext/phar/
H A Dfunc_interceptors.c102 zend_long maxlen = PHP_STREAM_COPY_ALL; local
115 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) {
139 if (ZEND_NUM_ARGS() == 5 && maxlen < 0) {
204 contents = php_stream_copy_to_mem(stream, maxlen, 0);
/PHP_TRUNK/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_TRUNK/Zend/
H A Dzend_compile.c1111 static size_t zend_strnlen(const char* s, size_t maxlen) /* {{{ */ argument
1114 while (*s++ && maxlen--) len++;

Completed in 74 milliseconds