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

/PHP_TRUNK/ext/zip/lib/
H A Dzip_extra_field.c327 zip_uint16_t fname_len, ef_len; local
351 fname_len = _zip_read2(&p);
358 if (fseek(za->zp, fname_len, SEEK_CUR) < 0) {
/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(), "s|ss", &fname, &fname_len, &mime, &mime_len, &postname, &postname_len) == FAILURE) {
/PHP_TRUNK/ext/phar/
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)) {
122 int arch_len, entry_len, fname_len; local
130 fname_len = strlen(fname);
131 if (SUCCESS == phar_split_fname(fname, fname_len, &arch, &arch_len, &entry, &entry_len, 2, 0)) {
252 int arch_len, entry_len, fname_len; local
261 fname_len = strlen(fname);
262 if (FAILURE == phar_split_fname(fname, fname_len, &arch, &arch_len, &entry, &entry_len, 2, 0)) {
353 int arch_len, entry_len, fname_len; local
628 int arch_len, entry_len, fname_len; local
922 int arch_len, entry_len, fname_len; local
989 int arch_len, entry_len, fname_len; local
[all...]
H A Dphar.c278 || zend_hash_str_del(&(PHAR_G(phar_fname_map)), phar->fname, phar->fname_len) != SUCCESS) {
299 if (zend_hash_str_del(&(PHAR_G(phar_fname_map)), phar->fname, phar->fname_len) != SUCCESS) {
532 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) /* {{{ */ argument
543 unixfname = estrndup(fname, fname_len);
544 phar_unixify_path_separators(unixfname, fname_len);
546 if (SUCCESS == phar_get_archive(&phar, unixfname, fname_len, alias, alias_len, error)
547 && ((alias && fname_len == phar->fname_len
548 && !strncmp(unixfname, phar->fname, fname_len)) || !alias)
553 if (SUCCESS == phar_get_archive(&phar, fname, fname_len, alia
662 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) argument
1244 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) argument
1321 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) argument
1476 phar_open_from_filename(char *fname, int fname_len, char *alias, int alias_len, int options, phar_archive_data** pphar, char **error) argument
1567 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) argument
2255 int fname_len; local
[all...]
H A Dutil.c257 int arch_len, entry_len, fname_len; local
271 fname_len = strlen(fname);
273 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))) {
280 if (fname_len < 7 || memcmp(fname, "phar://", 7) || SUCCESS != phar_split_fname(fname, strlen(fname), &arch, &arch_len, &entry, &entry_len, 1, 0)) {
352 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) /* {{{ */ argument
371 if (FAILURE == phar_get_archive(&phar, fname, fname_len, NULL, 0, error)) {
513 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) /* {{{ */ argument
527 if (FAILURE == phar_get_archive(&phar, fname, fname_len, NULL, 0, error)) {
531 if (FAILURE == phar_get_entry_data(&ret, fname, fname_len, path, path_len, mode, allow_dir, error, security)) {
930 *filename_len = fd_ptr->fname_len;
960 phar_get_archive(phar_archive_data **archive, char *fname, int fname_len, char *alias, int alias_len, char **error) argument
[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) /* {{{ */ 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_G(phar_fname_map)), mydata->fname, fname_len, mydata);
682 zend_hash_str_del(&(PHAR_G(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) argument
[all...]
H A Dphar_internal.h293 int fname_len; member in struct:_phar_archive_data
533 tmp_len = entry->filename_len + entry->phar->fname_len;
534 memcpy(tmp, entry->phar->fname, entry->phar->fname_len);
535 memcpy(tmp + entry->phar->fname_len, entry->filename, entry->filename_len);
547 int phar_open_from_filename(char *fname, int fname_len, char *alias, int alias_len, int options, phar_archive_data** pphar, char **error);
548 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);
549 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);
552 int phar_get_archive(phar_archive_data **archive, char *fname, int fname_len, char *alias, int alias_len, char **error);
553 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);
582 int phar_parse_tarfile(php_stream* fp, char *fname, int fname_len, cha
[all...]
H A Dtar.c127 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) /* {{{ */ argument
130 int ret = phar_create_or_parse_filename(fname, fname_len, alias, alias_len, is_data, options, &phar, error);
198 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) /* {{{ */ argument
608 myphar->fname = pestrndup(fname, fname_len, myphar->is_persistent);
610 phar_unixify_path_separators(myphar->fname, fname_len);
612 myphar->fname_len = fname_len;
617 myphar->ext = memchr(p, '.', (myphar->fname + fname_len) - p);
619 myphar->ext = memchr(p + 1, '.', (myphar->fname + fname_len) - p - 1);
622 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) /* {{{ */ argument
353 static void phar_postprocess_ru_web(char *fname, int fname_len, char **entry, int *entry_len, char **ru, int *ru_len) /* {{{ */ argument
360 pphar = zend_hash_str_find_ptr(&(PHAR_G(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)) {
458 int fname_len, arch_len, entry_len; local
467 fname_len
553 size_t fname_len, index_php_len = 0; local
985 size_t fname_len, alias_len = 0; local
1063 size_t fname_len; local
1308 size_t fname_len; local
1408 uint str_key_len, base_len = p_obj->l, fname_len; local
2574 size_t fname_len; local
3494 size_t fname_len; local
3531 size_t fname_len; local
3675 size_t fname_len, cont_len; local
3714 size_t fname_len; local
3789 size_t fname_len, localname_len = 0; local
4347 size_t fname_len; local
[all...]
/PHP_TRUNK/ext/spl/
H A Dspl_array.c1473 static void spl_array_method(INTERNAL_FUNCTION_PARAMETERS, char *fname, int fname_len, int use_arg) /* {{{ */ argument
1489 zend_call_method(NULL, NULL, NULL, fname, fname_len, &retval, 1, &tmp, NULL);
1498 zend_call_method(NULL, NULL, NULL, fname, fname_len, &retval, arg? 2 : 1, &tmp, arg);
1507 zend_call_method(NULL, NULL, NULL, fname, fname_len, &retval, 2, &tmp, arg);
/PHP_TRUNK/Zend/
H A Dzend_API.c2124 size_t fname_len; local
2152 fname_len = strlen(ptr->fname);
2154 internal_function->function_name = zend_new_interned_string(zend_string_init(ptr->fname, fname_len, 1));
2232 lowercase_name = zend_string_alloc(fname_len, 1);
2233 zend_str_tolower_copy(lowercase_name->val, ptr->fname, fname_len);
2261 if ((fname_len == class_name_len) && !ctor && !memcmp(lowercase_name->val, lc_class_name, class_name_len+1)) {
2308 fname_len = strlen(ptr->fname);
2309 lowercase_name = zend_string_alloc(fname_len, 0);
2310 zend_str_tolower_copy(lowercase_name->val, ptr->fname, fname_len);
2427 size_t fname_len; local
[all...]
/PHP_TRUNK/ext/odbc/
H A Dphp_odbc.c2919 size_t i, field_ind, fname_len; local
2923 if (zend_parse_parameters(ZEND_NUM_ARGS(), "rs", &pv_res, &fname, &fname_len) == FAILURE) {

Completed in 45 milliseconds