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

/PHP_TRUNK/ext/zip/lib/
H A Dzip_extra_field.c352 zip_uint16_t fname_len, ef_len; local
378 fname_len = _zip_buffer_get_16(buffer);
393 if (zip_source_seek(za->src, fname_len, SEEK_CUR) < 0) {
/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
616 int arch_len, entry_len, fname_len; local
910 int arch_len, entry_len, fname_len; local
977 int arch_len, entry_len, fname_len; local
[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
606 myphar->fname = pestrndup(fname, fname_len, myphar->is_persistent);
608 phar_unixify_path_separators(myphar->fname, fname_len);
610 myphar->fname_len = fname_len;
615 myphar->ext = memchr(p, '.', (myphar->fname + fname_len) - p);
617 myphar->ext = memchr(p + 1, '.', (myphar->fname + fname_len) - p - 1);
620 myphar->ext_len = (myphar->fname + fname_len)
[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.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
652 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
1242 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
1319 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
1474 phar_open_from_filename(char *fname, int fname_len, char *alias, int alias_len, int options, phar_archive_data** pphar, char **error) argument
1565 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
2259 int fname_len; local
[all...]
H A Dphar_internal.h288 int fname_len; member in struct:_phar_archive_data
529 tmp_len = MIN(MAXPATHLEN, entry->filename_len + entry->phar->fname_len);
531 len1 = MIN(entry->phar->fname_len, tmp_len);
548 int phar_open_from_filename(char *fname, int fname_len, char *alias, int alias_len, int options, phar_archive_data** pphar, char **error);
549 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);
550 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);
553 int phar_get_archive(phar_archive_data **archive, char *fname, int fname_len, char *alias, int alias_len, char **error);
554 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);
583 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);
584 int phar_open_or_create_tar(char *fname, int fname_len, cha
[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
983 size_t fname_len, alias_len = 0; local
1061 size_t fname_len; local
1306 size_t fname_len; local
1406 uint str_key_len, base_len = p_obj->l, fname_len; local
2578 size_t fname_len; local
3498 size_t fname_len; local
3535 size_t fname_len; local
3679 size_t fname_len, cont_len; local
3718 size_t fname_len; local
3793 size_t fname_len, localname_len = 0; local
4392 size_t fname_len; local
[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(), "s|ss", &fname, &fname_len, &mime, &mime_len, &postname, &postname_len) == FAILURE) {
/PHP_TRUNK/ext/odbc/
H A Dphp_odbc.c2948 size_t i, field_ind, fname_len; local
2952 if (zend_parse_parameters(ZEND_NUM_ARGS(), "rs", &pv_res, &fname, &fname_len) == FAILURE) {
/PHP_TRUNK/ext/spl/
H A Dspl_array.c1407 static void spl_array_method(INTERNAL_FUNCTION_PARAMETERS, char *fname, int fname_len, int use_arg) /* {{{ */ argument
1414 ZVAL_STRINGL(&function_name, fname, fname_len);
/PHP_TRUNK/Zend/
H A Dzend_API.c2139 size_t fname_len; local
2167 fname_len = strlen(ptr->fname);
2169 internal_function->function_name = zend_new_interned_string(zend_string_init(ptr->fname, fname_len, 1));
2248 lowercase_name = zend_string_alloc(fname_len, 1);
2249 zend_str_tolower_copy(ZSTR_VAL(lowercase_name), ptr->fname, fname_len); local
2277 if ((fname_len == class_name_len) && !ctor && !memcmp(ZSTR_VAL(lowercase_name), lc_class_name, class_name_len+1)) {
2324 fname_len = strlen(ptr->fname);
2325 lowercase_name = zend_string_alloc(fname_len, 0);
2326 zend_str_tolower_copy(ZSTR_VAL(lowercase_name), ptr->fname, fname_len); local
2443 size_t fname_len; local
2454 zend_str_tolower_copy(ZSTR_VAL(lowercase_name), ptr->fname, fname_len); local
[all...]

Completed in 31 milliseconds