Searched defs:len (Results 1 - 25 of 252) sorted by relevance

1234567891011

/PHP_5_4/ext/ereg/regex/
H A Dregerror.c72 register size_t len; local
97 len = strlen(s) + 1;
99 if (errbuf_size > len)
107 return(len);
/PHP_5_4/ext/xmlrpc/libxmlrpc/
H A Dsimplestring.h53 int len; /* length of string/buf */ member in struct:_simplestring
/PHP_5_4/ext/intl/formatter/
H A Dformatter_attr.c214 int len; local
219 &object, NumberFormatter_ce_ptr, &attribute, &value, &len ) == FAILURE)
231 intl_convert_utf8_to_utf16(&svalue, &slength, value, len, &INTL_DATA_ERROR_CODE(nfo));
/PHP_5_4/ext/mbstring/libmbfl/filters/
H A Dmbfilter_base64.c118 int status, cache, len; local
122 len = (filter->status & 0xff00) >> 8;
128 if (len > 72){
/PHP_5_4/ext/mbstring/libmbfl/mbfl/
H A Dmbfl_string.h45 unsigned int len; member in struct:_mbfl_string
/PHP_5_4/ext/skeleton/
H A Dskeleton.c140 int arg_len, len; local
147 len = spprintf(&strg, 0, "Congratulations! You have successfully modified ext/%.78s/config.m4. Module %.78s is now compiled into PHP.", "extname", arg);
148 RETURN_STRINGL(strg, len, 0);
/PHP_5_4/ext/zip/lib/
H A Dzip_add_dir.c50 int len;
66 len = strlen(name);
68 if (name[len-1] != '/') {
69 if ((s=(char *)malloc(len+2)) == NULL) {
74 s[len] = '/';
75 s[len+1] = '\0';
48 int len; local
H A Dzip_error_to_str.c48 zip_error_to_str(char *buf, zip_uint64_t len, int ze, int se)
53 return snprintf(buf, len, "Unknown error %d", ze);
70 return snprintf(buf, len, "%s%s%s",
46 zip_error_to_str(char *buf, zip_uint64_t len, int ze, int se) argument
H A Dzip_filerange_crc.c47 _zip_filerange_crc(FILE *fp, off_t start, off_t len, uLong *crcp,
60 while (len > 0) {
61 n = len > BUFSIZE ? BUFSIZE : len;
69 len-= n;
45 _zip_filerange_crc(FILE *fp, off_t start, off_t len, uLong *crcp, struct zip_error *errp) argument
H A Dzip_memdup.c2 zip_memdup.c -- internal zip function, "strdup" with len
43 _zip_memdup(const void *mem, size_t len, struct zip_error *error)
47 ret = malloc(len);
53 memcpy(ret, mem, len);
42 _zip_memdup(const void *mem, size_t len, struct zip_error *error) argument
H A Dzip_set_archive_comment.c45 zip_set_archive_comment(struct zip *za, const char *comment, int len)
49 if (len < 0 || len > MAXCOMLEN
50 || (len > 0 && comment == NULL)) {
60 if (len > 0) {
61 if ((tmpcom=(char *)_zip_memdup(comment, len, &za->error)) == NULL)
69 za->ch_comment_len = len;
43 zip_set_archive_comment(struct zip *za, const char *comment, int len) argument
H A Dzip_set_file_comment.c46 const char *comment, int len)
51 || len < 0 || len > MAXCOMLEN
52 || (len > 0 && comment == NULL)) {
62 if (len > 0) {
63 if ((tmpcom=(char *)_zip_memdup(comment, len, &za->error)) == NULL)
71 za->entry[idx].ch_comment_len = len;
43 zip_set_file_comment(struct zip *za, zip_uint64_t idx, const char *comment, int len) argument
H A Dzip_set_file_extra.c44 const char *extra, int len)
49 || len < 0 || len > MAXEXTLEN
50 || (len > 0 && extra == NULL)) {
60 if (len > 0) {
61 if ((tmpext=(char *)_zip_memdup(extra, len, &za->error)) == NULL)
69 za->entry[idx].ch_extra_len = len;
43 zip_set_file_extra(struct zip *za, zip_uint64_t idx, const char *extra, int len) argument
H A Dzip_source_buffer.c54 zip_source_buffer(struct zip *za, const void *data, zip_uint64_t len, int freep)
62 if (data == NULL && len > 0) {
73 f->end = ((const char *)data)+len;
89 read_data(void *state, void *data, zip_uint64_t len, enum zip_source_cmd cmd)
104 /* XXX: return error if (len > ZIP_INT64_MAX) */
107 if (n > len)
108 n = len;
124 if (len < sizeof(*st))
145 if (len < sizeof(int)*2)
52 zip_source_buffer(struct zip *za, const void *data, zip_uint64_t len, int freep) argument
86 read_data(void *state, void *data, zip_uint64_t len, enum zip_source_cmd cmd) argument
H A Dzip_source_crc.c81 zip_uint64_t len, enum zip_source_cmd cmd)
97 if (ctx->eof || len == 0)
100 if ((n=zip_source_read(src, data, len)) < 0)
77 crc_read(struct zip_source *src, void *_ctx, void *data, zip_uint64_t len, enum zip_source_cmd cmd) argument
H A Dzip_source_file.c47 zip_int64_t len)
52 if (fname == NULL || len < -1) {
57 return _zip_source_file_or_p(za, fname, NULL, start, len, 1, NULL);
44 zip_source_file(struct zip *za, const char *fname, zip_uint64_t start, zip_int64_t len) argument
/PHP_5_4/ext/mbstring/oniguruma/
H A Dregposerr.c70 size_t len; local
83 len = strlen(s) + 1; /* use strlen() because s is ascii encoding. */
89 return len;
/PHP_5_4/ext/phar/
H A Dstub.h21 static inline void phar_get_stub(const char *index_php, const char *web, size_t *len, char **stub, const int name_len, const int web_len TSRMLS_DC) argument
28 static const char newstub3_1[] = "ART;\n}\n}\n\nstatic function tmpdir()\n{\nif (strpos(PHP_OS, 'WIN') !== false) {\nif ($var = getenv('TMP') ? getenv('TMP') : getenv('TEMP')) {\nreturn $var;\n}\nif (is_dir('/temp') || mkdir('/temp')) {\nreturn realpath('/temp');\n}\nreturn false;\n}\nif ($var = getenv('TMPDIR')) {\nreturn $var;\n}\nreturn realpath('/tmp');\n}\n\nstatic function _unpack($m)\n{\n$info = unpack('V', substr($m, 0, 4));\n $l = unpack('V', substr($m, 10, 4));\n$m = substr($m, 14 + $l[1]);\n$s = unpack('V', substr($m, 0, 4));\n$o = 0;\n$start = 4 + $s[1];\n$ret['c'] = 0;\n\nfor ($i = 0; $i < $info[1]; $i++) {\n $len = unpack('V', substr($m, $start, 4));\n$start += 4;\n $savepath = substr($m, $start, $len[1]);\n$start += $len[1];\n $ret['m'][$savepath] = array_values(unpack('Va/Vb/Vc/Vd/Ve/Vf', substr($m, $start, 24)));\n$ret['m'][$savepath][3] = sprintf('%u', $ret['m'][$savepath][3]\n& 0xffffffff);\n$ret['m'][$savepath][7] = $o;\n$o += $ret['m'][$savepath][2];\n$start += 24 + $ret['m'][$savepath][5];\n$ret['c'] |= $ret['m'][$savepath][4] & self::MASK;\n}\nreturn $ret;\n}\n\nstatic function extractFile($path, $entry, $fp)\n{\n$data = '';\n$c = $entry[2];\n\nwhile ($c) {\nif ($c < 8192) {\n$data .= @fread($fp, $c);\n$c = 0;\n} else {\n$c -= 8192;\n$data .= @fread($fp, 8192);\n}\n}\n\nif ($entry[4] & self::GZ) {\n$data = gzinflate($data);\n} elseif ($entry[4] & self::BZ2) {\n$data = bzdecompress($data);\n}\n\nif (strlen($data) != $entry[0]) {\ndie(\"Invalid internal .phar file (size error \" . strlen($data) . \" != \" .\n$stat[7] . \")\");\n}\n\nif ($entry[3] != sprintf(\"%u\", crc32((binary)$data) & 0xffffffff)) {\ndie(\"Invalid internal .phar file (checksum error)\");\n}\n\nreturn $data;\n}\n\nstatic function _removeTmpFiles($temp, $origdir)\n{\nchdir($temp);\n\nforeach (glob('*') as $f) {\nif (file_exists($f)) {\nis_dir($f) ? @rmdir($f) : @unlink($f);\nif (file_exists($f) && is_dir($f)) {\nself::_removeTmpFiles($f, getcwd());\n}\n}\n}\n\n@rmdir($temp);\nclearstatcache();\nchdir($origdir);\n}\n}\n\nExtract_Phar::go();\n__HALT_COMPIL";
33 *len = spprintf(stub, name_len + web_len + newstub_len, "%s%s%s%s%s%s%d%s%s%s", newstub0, web, newstub1_0, newstub1_1, index_php, newstub2, name_len + web_len + newstub_len, newstub3_0, newstub3_1, newstub3_2);
H A Dphar_path_check.c25 phar_path_check_result phar_path_check(char **s, int *len, const char **error) argument
30 if (*len == 1 && *p == '.') {
33 } else if (*len == 2 && p[0] == '.' && p[1] == '.') {
40 #define YYLIMIT p+*len
138 *len = (p - (const unsigned char*)*s) -1;
205 (*len)--;
207 if ((p - (const unsigned char*)*s) - 1 != *len)
/PHP_5_4/ext/standard/
H A Dcrc32.c30 int len, nr; local
39 for (len =+nr; nr--; ++p) {
H A Dlink.c127 size_t len; local
139 len = php_dirname(dirname, strlen(dirname));
141 if (!expand_filepath_ex(topath, dest_p, dirname, len TSRMLS_CC)) {
H A Dphp_smart_str_public.h28 size_t len; member in struct:__anon258
/PHP_5_4/ext/hash/
H A Dhash_adler32.c30 PHP_HASH_API void PHP_ADLER32Update(PHP_ADLER32_CTX *context, const unsigned char *input, size_t len) argument
36 for (i = 0; i < len; ++i) {
H A Dhash_crc32.c31 PHP_HASH_API void PHP_CRC32Update(PHP_CRC32_CTX *context, const unsigned char *input, size_t len) argument
35 for (i = 0; i < len; ++i) {
40 PHP_HASH_API void PHP_CRC32BUpdate(PHP_CRC32_CTX *context, const unsigned char *input, size_t len) argument
44 for (i = 0; i < len; ++i) {
H A Dhash_joaat.c68 * len - length of buffer in octets
74 joaat_buf(void *buf, size_t len, php_hash_uint32 hval) argument
79 for (i = 0; i < len; i++) {

Completed in 36 milliseconds

1234567891011