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

/PHP_5_4/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_4/ext/mbstring/oniguruma/
H A Dregparse.c1582 scan_unsigned_hexadecimal_number(UChar** src, UChar* end, int maxlen, argument
1591 while (!PEND && maxlen-- != 0) {
1610 scan_unsigned_octal_number(UChar** src, UChar* end, int maxlen, argument
1619 while (!PEND && maxlen-- != 0) {
/PHP_5_4/ext/pdo/
H A Dphp_pdo_driver.h516 unsigned long maxlen; member in struct:pdo_column_data
/PHP_5_4/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.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_4/ext/sockets/
H A Dsockets.c498 static int php_read(php_socket *sock, void *buf, size_t maxlen, int flags) argument
519 while (*t != '\n' && *t != '\r' && n < maxlen) {
538 if (n < maxlen) {
549 if (n < maxlen) {
/PHP_5_4/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 Dfile.c512 /* {{{ proto string file_get_contents(string filename [, bool use_include_path [, resource context [, long offset [, long maxlen]]]])
523 long maxlen = PHP_STREAM_COPY_ALL; local
528 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "p|br!ll", &filename, &filename_len, &use_include_path, &zcontext, &offset, &maxlen) == FAILURE) {
532 if (ZEND_NUM_ARGS() == 5 && maxlen < 0) {
552 if ((len = php_stream_copy_to_mem(stream, &contents, maxlen, 0)) > 0) {
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);
453 /* {{{ proto long stream_copy_to_stream(resource source, resource dest [, long maxlen [, long pos]])
454 Reads up to maxlen bytes from source stream and writes them to dest stream. */
459 long maxlen = PHP_STREAM_COPY_ALL, pos = 0; local
463 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rr|ll", &zsrc, &zdest, &maxlen, &pos) == FAILURE) {
475 ret = php_stream_copy_to_stream_ex(src, dest, maxlen,
[all...]
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.c180 static char *unserialize_str(const unsigned char **p, size_t *len, size_t maxlen) argument
184 unsigned char *end = *(unsigned char **)p+maxlen;
620 size_t len, len2, len3, maxlen; local
640 maxlen = max - YYCURSOR;
641 if (maxlen < len || len == 0) {
861 size_t len, maxlen; local
865 maxlen = max - YYCURSOR;
866 if (maxlen < len) {
871 if ((str = unserialize_str(&YYCURSOR, &len, maxlen)) == NULL) {
911 size_t len, maxlen; local
[all...]
/PHP_5_4/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_5_4/ext/mssql/
H A Dphp_mssql.c130 ZEND_ARG_INFO(0, maxlen)
2004 /* {{{ proto bool mssql_bind(resource stmt, string param_name, mixed var, int type [, bool is_output [, bool is_null [, int maxlen]]])
2011 long type = 0, maxlen = -1; local
2019 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) {
2024 maxlen = -1;
2034 /* modify datalen and maxlen according to dbrpcparam documentation */
2037 maxlen=0;
2051 maxlen=-1;
2098 if (dbrpcparam(mssql_ptr->link, param_name, (BYTE)status, type, maxlen, datalen, (LPBYTE)value)==FAIL) {
/PHP_5_4/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_4/Zend/
H A Dzend_compile.c5042 static int zend_strnlen(const char* s, int maxlen) /* {{{ */ argument
5045 while (*s++ && maxlen--) len++;
/PHP_5_4/main/streams/
H A Dstreams.c889 PHPAPI char *_php_stream_get_line(php_stream *stream, char *buf, size_t maxlen, argument
900 } else if (maxlen == 0) {
948 if (cpysz >= maxlen - 1) {
949 cpysz = maxlen - 1;
959 maxlen -= cpysz;
974 toread = maxlen - 1;
1007 size_t maxlen,
1015 seek_len = MIN(STREAM_BUFFERED_AMOUNT(stream), maxlen);
1030 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
1038 if (maxlen
1006 _php_stream_search_delim(php_stream *stream, size_t maxlen, size_t skiplen, char *delim, size_t delim_len TSRMLS_DC) argument
1430 _php_stream_copy_to_mem(php_stream *src, char **buf, size_t maxlen, int persistent STREAMS_DC TSRMLS_DC) argument
1501 _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_4/ext/exif/
H A Dexif.c293 static size_t php_strnlen(char* str, size_t maxlen) { argument
296 if (str && maxlen && *str) {
299 } while (--maxlen && *(++str));

Completed in 87 milliseconds