Searched refs:fname_len (Results 1 - 13 of 13) sorted by relevance

/PHP_TRUNK/ext/zip/lib/
H A Dzip_extra_field.c337 zip_uint16_t fname_len, ef_len;
361 fname_len = _zip_read2(&p);
368 if (fseek(za->zp, fname_len, SEEK_CUR) < 0) {
327 zip_uint16_t fname_len, ef_len; local
/PHP_TRUNK/ext/phar/
H A Dutil.c256 int arch_len, entry_len, fname_len, ret_len; local
270 fname_len = strlen(fname);
272 if (PHAR_G(last_phar) && !memcmp(fname, "phar://", 7) && fname_len - 7 >= PHAR_G(last_phar_name_len) && !memcmp(fname + 7, PHAR_G(last_phar_name), PHAR_G(last_phar_name_len))) {
279 if (fname_len < 7 || memcmp(fname, "phar://", 7) || SUCCESS != phar_split_fname(fname, strlen(fname), &arch, &arch_len, &entry, &entry_len, 1, 0 TSRMLS_CC)) {
353 int phar_get_entry_data(phar_entry_data **ret, char *fname, int fname_len, char *path, int path_len, const char *mode, char allow_dir, char **error, int security TSRMLS_DC) /* {{{ */ argument
372 if (FAILURE == phar_get_archive(&phar, fname, fname_len, NULL, 0, error TSRMLS_CC)) {
514 phar_entry_data *phar_get_or_create_entry_data(char *fname, int fname_len, char *path, int path_len, const char *mode, char allow_dir, char **error, int security TSRMLS_DC) /* {{{ */ argument
528 if (FAILURE == phar_get_archive(&phar, fname, fname_len, NULL, 0, error TSRMLS_CC)) {
532 if (FAILURE == phar_get_entry_data(&ret, fname, fname_len, path, path_len, mode, allow_dir, error, security TSRMLS_CC)) {
931 *filename_len = fd_ptr->fname_len;
961 phar_get_archive(phar_archive_data **archive, char *fname, int fname_len, char *alias, int alias_len, char **error TSRMLS_DC) argument
[all...]
H A Dfunc_interceptors.c47 int arch_len, entry_len, fname_len; local
56 fname_len = strlen(fname);
57 if (SUCCESS == phar_split_fname(fname, fname_len, &arch, &arch_len, &entry, &entry_len, 2, 0 TSRMLS_CC)) {
121 int arch_len, entry_len, fname_len; local
129 fname_len = strlen(fname);
130 if (SUCCESS == phar_split_fname(fname, fname_len, &arch, &arch_len, &entry, &entry_len, 2, 0 TSRMLS_CC)) {
246 int arch_len, entry_len, fname_len; local
255 fname_len = strlen(fname);
256 if (FAILURE == phar_split_fname(fname, fname_len, &arch, &arch_len, &entry, &entry_len, 2, 0 TSRMLS_CC)) {
342 size_t arch_len, entry_len, fname_len; local
613 int arch_len, entry_len, fname_len; local
907 int arch_len, entry_len, fname_len; local
974 int arch_len, entry_len, fname_len; local
[all...]
H A Dphar.c278 || zend_hash_str_del(&(PHAR_GLOBALS->phar_fname_map), phar->fname, phar->fname_len) != SUCCESS) {
299 if (zend_hash_str_del(&(PHAR_GLOBALS->phar_fname_map), phar->fname, phar->fname_len) != SUCCESS) {
535 int phar_open_parsed_phar(char *fname, int fname_len, char *alias, int alias_len, int is_data, int options, phar_archive_data** pphar, char **error TSRMLS_DC) /* {{{ */ argument
546 unixfname = estrndup(fname, fname_len);
547 phar_unixify_path_separators(unixfname, fname_len);
549 if (SUCCESS == phar_get_archive(&phar, unixfname, fname_len, alias, alias_len, error TSRMLS_CC)
550 && ((alias && fname_len == phar->fname_len
551 && !strncmp(unixfname, phar->fname, fname_len)) || !alias)
556 if (SUCCESS == phar_get_archive(&phar, fname, fname_len, alia
665 phar_parse_pharfile(php_stream *fp, char *fname, int fname_len, char *alias, int alias_len, zend_long halt_offset, phar_archive_data** pphar, php_uint32 compression, char **error TSRMLS_DC) argument
1247 phar_open_or_create_filename(char *fname, int fname_len, char *alias, int alias_len, int is_data, int options, phar_archive_data** pphar, char **error TSRMLS_DC) argument
1324 phar_create_or_parse_filename(char *fname, int fname_len, char *alias, int alias_len, int is_data, int options, phar_archive_data** pphar, char **error TSRMLS_DC) argument
1478 phar_open_from_filename(char *fname, int fname_len, char *alias, int alias_len, int options, phar_archive_data** pphar, char **error TSRMLS_DC) argument
1569 phar_open_from_fp(php_stream* fp, char *fname, int fname_len, char *alias, int alias_len, int options, phar_archive_data** pphar, int is_data, char **error TSRMLS_DC) argument
2305 int fname_len; local
[all...]
H A Dtar.c124 int phar_open_or_create_tar(char *fname, int fname_len, char *alias, int alias_len, int is_data, int options, phar_archive_data** pphar, char **error TSRMLS_DC) /* {{{ */ argument
127 int ret = phar_create_or_parse_filename(fname, fname_len, alias, alias_len, is_data, options, &phar, error TSRMLS_CC);
195 int phar_parse_tarfile(php_stream* fp, char *fname, int fname_len, char *alias, int alias_len, phar_archive_data** pphar, int is_data, php_uint32 compression, char **error TSRMLS_DC) /* {{{ */ argument
591 myphar->fname = pestrndup(fname, fname_len, myphar->is_persistent);
593 phar_unixify_path_separators(myphar->fname, fname_len);
595 myphar->fname_len = fname_len;
600 myphar->ext = memchr(p, '.', (myphar->fname + fname_len) - p);
602 myphar->ext = memchr(p + 1, '.', (myphar->fname + fname_len) - p - 1);
605 myphar->ext_len = (myphar->fname + fname_len)
[all...]
H A Dphar_object.c325 static void phar_do_404(phar_archive_data *phar, char *fname, int fname_len, char *f404, size_t f404_len, char *entry, size_t entry_len TSRMLS_DC) /* {{{ */ argument
353 static void phar_postprocess_ru_web(char *fname, int fname_len, char **entry, int *entry_len, char **ru, int *ru_len TSRMLS_DC) /* {{{ */ argument
360 pphar = zend_hash_str_find_ptr(&(PHAR_GLOBALS->phar_fname_map), fname, fname_len);
363 pphar = zend_hash_str_find_ptr(&cached_phars, fname, fname_len);
421 int fname_len, arch_len, entry_len; local
429 fname_len = strlen(fname);
431 if (fname_len > 7 && !memcmp(fname, "phar://", 7) && SUCCESS == phar_split_fname(fname, fname_len, &arch, &arch_len, &entry, &entry_len, 2, 0 TSRMLS_CC)) {
458 int fname_len, arch_len, entry_len; local
467 fname_len
552 size_t fname_len, index_php_len = 0; local
974 size_t fname_len, alias_len = 0; local
1052 size_t fname_len; local
1297 size_t fname_len; local
1397 uint str_key_len, base_len = p_obj->l, fname_len; local
2562 size_t fname_len; local
3482 size_t fname_len; local
3519 size_t fname_len; local
3663 size_t fname_len, cont_len; local
3702 size_t fname_len; local
3777 size_t fname_len, localname_len = 0; local
4336 size_t fname_len; local
[all...]
H A Dzip.c166 int phar_parse_zipfile(php_stream *fp, char *fname, int fname_len, char *alias, int alias_len, phar_archive_data** pphar, char **error TSRMLS_DC) /* {{{ */ argument
262 mydata->fname = pestrndup(fname, fname_len, mydata->is_persistent);
264 phar_unixify_path_separators(mydata->fname, fname_len);
267 mydata->fname_len = fname_len;
271 mydata->ext = memchr(ext, '.', (mydata->fname + fname_len) - ext);
273 mydata->ext = memchr(ext + 1, '.', (mydata->fname + fname_len) - ext - 1);
276 mydata->ext_len = (mydata->fname + fname_len) - mydata->ext;
672 zend_hash_str_add_ptr(&(PHAR_GLOBALS->phar_fname_map), mydata->fname, fname_len, mydata);
682 zend_hash_str_del(&(PHAR_GLOBALS->phar_fname_map), mydata->fname, fname_len);
742 phar_open_or_create_zip(char *fname, int fname_len, char *alias, int alias_len, int is_data, int options, phar_archive_data** pphar, char **error TSRMLS_DC) argument
[all...]
H A Dphar_internal.h290 int fname_len; member in struct:_phar_archive_data
530 tmp_len = entry->filename_len + entry->phar->fname_len;
531 memcpy(tmp, entry->phar->fname, entry->phar->fname_len);
532 memcpy(tmp + entry->phar->fname_len, entry->filename, entry->filename_len);
544 int phar_open_from_filename(char *fname, int fname_len, char *alias, int alias_len, int options, phar_archive_data** pphar, char **error TSRMLS_DC);
545 int phar_open_or_create_filename(char *fname, int fname_len, char *alias, int alias_len, int is_data, int options, phar_archive_data** pphar, char **error TSRMLS_DC);
546 int phar_create_or_parse_filename(char *fname, int fname_len, char *alias, int alias_len, int is_data, int options, phar_archive_data** pphar, char **error TSRMLS_DC);
549 int phar_get_archive(phar_archive_data **archive, char *fname, int fname_len, char *alias, int alias_len, char **error TSRMLS_DC);
550 int phar_open_parsed_phar(char *fname, int fname_len, char *alias, int alias_len, int is_data, int options, phar_archive_data** pphar, char **error TSRMLS_DC);
579 int phar_parse_tarfile(php_stream* fp, char *fname, int fname_len, cha
[all...]
/PHP_TRUNK/ext/curl/
H A Dcurl_file.c35 size_t fname_len, mime_len, postname_len; local
38 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|ss", &fname, &fname_len, &mime, &mime_len, &postname, &postname_len) == FAILURE) {
/PHP_TRUNK/ext/odbc/
H A Dphp_odbc.c2871 size_t i, field_ind, fname_len; local
2875 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rs", &pv_res, &fname, &fname_len) == FAILURE) {
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg_utils.c173 size_t fname_len = strlen(fname); local
174 char *lcname = zend_str_tolower_dup(fname, fname_len);
185 zend_hash_find(&(*ce)->function_table, lcname, fname_len+1,
189 zend_hash_find(EG(function_table), lcname, fname_len+1, local
/PHP_TRUNK/ext/spl/
H A Dspl_array.c1479 static void spl_array_method(INTERNAL_FUNCTION_PARAMETERS, char *fname, int fname_len, int use_arg) /* {{{ */ argument
1493 zend_call_method(NULL, NULL, NULL, fname, fname_len, &retval, 1, &tmp, NULL TSRMLS_CC);
1502 zend_call_method(NULL, NULL, NULL, fname, fname_len, &retval, arg? 2 : 1, &tmp, arg TSRMLS_CC);
1511 zend_call_method(NULL, NULL, NULL, fname, fname_len, &retval, 2, &tmp, arg TSRMLS_CC);
/PHP_TRUNK/Zend/
H A Dzend_API.c2171 int fname_len; local
2199 fname_len = strlen(ptr->fname);
2201 internal_function->function_name = zend_new_interned_string(zend_string_init(ptr->fname, fname_len, 1) TSRMLS_CC);
2267 lowercase_name = zend_string_alloc(fname_len, 1);
2268 zend_str_tolower_copy(lowercase_name->val, ptr->fname, fname_len);
2296 if ((fname_len == class_name_len) && !ctor && !memcmp(lowercase_name->val, lc_class_name, class_name_len+1)) {
2339 fname_len = strlen(ptr->fname);
2340 lowercase_name = zend_string_alloc(fname_len, 0);
2341 zend_str_tolower_copy(lowercase_name->val, ptr->fname, fname_len);
2446 int fname_len; local
[all...]

Completed in 33 milliseconds