Searched refs:fname_len (Results 1 - 12 of 12) 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/Zend/
H A Dzend_API.c2148 size_t fname_len; local
2176 fname_len = strlen(ptr->fname);
2178 internal_function->function_name = zend_new_interned_string(zend_string_init(ptr->fname, fname_len, 1));
2244 lowercase_name = zend_string_alloc(fname_len, 1);
2245 zend_str_tolower_copy(lowercase_name->val, ptr->fname, fname_len);
2273 if ((fname_len == class_name_len) && !ctor && !memcmp(lowercase_name->val, lc_class_name, class_name_len+1)) {
2316 fname_len = strlen(ptr->fname);
2317 lowercase_name = zend_string_alloc(fname_len, 0);
2318 zend_str_tolower_copy(lowercase_name->val, ptr->fname, fname_len);
2423 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.c2866 size_t i, field_ind, fname_len; local
2870 if (zend_parse_parameters(ZEND_NUM_ARGS(), "rs", &pv_res, &fname, &fname_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)) {
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)) {
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)) {
342 int 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) {
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
1475 phar_open_from_filename(char *fname, int fname_len, char *alias, int alias_len, int options, phar_archive_data** pphar, char **error) argument
1566 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
2254 int fname_len; local
[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 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_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)) {
458 int fname_len, arch_len, entry_len; local
467 fname_len
553 size_t fname_len, index_php_len = 0; local
975 size_t fname_len, alias_len = 0; local
1053 size_t fname_len; local
1298 size_t fname_len; local
1398 uint str_key_len, base_len = p_obj->l, fname_len; local
2563 size_t fname_len; local
3483 size_t fname_len; local
3520 size_t fname_len; local
3664 size_t fname_len, cont_len; local
3703 size_t fname_len; local
3778 size_t fname_len, localname_len = 0; local
4337 size_t 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) /* {{{ */ argument
127 int ret = phar_create_or_parse_filename(fname, fname_len, alias, alias_len, is_data, options, &phar, error);
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) /* {{{ */ 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 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)) {
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) /* {{{ */ argument
372 if (FAILURE == phar_get_archive(&phar, fname, fname_len, NULL, 0, error)) {
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) /* {{{ */ argument
528 if (FAILURE == phar_get_archive(&phar, fname, fname_len, NULL, 0, error)) {
532 if (FAILURE == phar_get_entry_data(&ret, fname, fname_len, path, path_len, mode, allow_dir, error, security)) {
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) 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_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) argument
[all...]
/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);
1502 zend_call_method(NULL, NULL, NULL, fname, fname_len, &retval, arg? 2 : 1, &tmp, arg);
1511 zend_call_method(NULL, NULL, NULL, fname, fname_len, &retval, 2, &tmp, arg);

Completed in 30 milliseconds