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

/PHP_TRUNK/ext/curl/
H A Dcurl_file.c35 int 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/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 TSRMLS_CC)) {
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 TSRMLS_CC)) {
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 TSRMLS_CC)) {
348 int arch_len, entry_len, fname_len; local
619 int arch_len, entry_len, fname_len; local
913 int arch_len, entry_len, fname_len; local
980 int arch_len, entry_len, fname_len; local
[all...]
H A Dphar.c279 || zend_hash_del(&(PHAR_GLOBALS->phar_fname_map), phar->fname, phar->fname_len) != SUCCESS) {
300 if (zend_hash_del(&(PHAR_GLOBALS->phar_fname_map), phar->fname, phar->fname_len) != SUCCESS) {
529 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
540 unixfname = estrndup(fname, fname_len);
541 phar_unixify_path_separators(unixfname, fname_len);
543 if (SUCCESS == phar_get_archive(&phar, unixfname, fname_len, alias, alias_len, error TSRMLS_CC)
544 && ((alias && fname_len == phar->fname_len
545 && !strncmp(unixfname, phar->fname, fname_len)) || !alias)
550 if (SUCCESS == phar_get_archive(&phar, fname, fname_len, alia
660 phar_parse_pharfile(php_stream *fp, char *fname, int fname_len, char *alias, int alias_len, long halt_offset, phar_archive_data** pphar, php_uint32 compression, char **error TSRMLS_DC) 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 TSRMLS_DC) 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 TSRMLS_DC) argument
1473 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
1564 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
2302 int fname_len; local
[all...]
H A Dphar_internal.h290 int fname_len; member in struct:_phar_archive_data
538 tmp_len = entry->filename_len + entry->phar->fname_len;
539 memcpy(tmp, entry->phar->fname, entry->phar->fname_len);
540 memcpy(tmp + entry->phar->fname_len, entry->filename, entry->filename_len);
552 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);
553 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);
554 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);
557 int phar_get_archive(phar_archive_data **archive, char *fname, int fname_len, char *alias, int alias_len, char **error TSRMLS_DC);
558 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);
587 int phar_parse_tarfile(php_stream* fp, char *fname, int fname_len, cha
[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 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 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
270 mydata->fname = pestrndup(fname, fname_len, mydata->is_persistent);
272 phar_unixify_path_separators(mydata->fname, fname_len);
275 mydata->fname_len = fname_len;
279 mydata->ext = memchr(ext, '.', (mydata->fname + fname_len) - ext);
281 mydata->ext = memchr(ext + 1, '.', (mydata->fname + fname_len) - ext - 1);
284 mydata->ext_len = (mydata->fname + fname_len) - mydata->ext;
650 zend_hash_add(&(PHAR_GLOBALS->phar_fname_map), mydata->fname, fname_len, (void*)&mydata, sizeof(phar_archive_data*), NULL);
660 zend_hash_del(&(PHAR_GLOBALS->phar_fname_map), mydata->fname, fname_len);
720 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_object.c348 static void phar_do_404(phar_archive_data *phar, char *fname, int fname_len, char *f404, int f404_len, char *entry, int entry_len TSRMLS_DC) /* {{{ */ argument
376 static void phar_postprocess_ru_web(char *fname, int fname_len, char **entry, int *entry_len, char **ru, int *ru_len TSRMLS_DC) /* {{{ */ argument
383 zend_hash_find(&(PHAR_GLOBALS->phar_fname_map), fname, fname_len, (void **) &pphar);
386 zend_hash_find(&cached_phars, fname, fname_len, (void **) &pphar);
444 int fname_len, arch_len, entry_len; local
452 fname_len = strlen(fname);
454 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)) {
478 int fname_len, arch_len, entry_len, path_len, actual_len; local
486 fname_len
571 int fname_len, entry_len, code, index_php_len = 0, not_cgi; local
1005 int fname_len, alias_len = 0; local
1083 int fname_len, ext_len, is_executable; local
1326 int fname_len, zname_len, arch_len, entry_len; local
1423 uint str_key_len, base_len = p_obj->l, fname_len; local
2615 int fname_len; local
3539 int fname_len; local
3576 int fname_len; local
3720 int fname_len, cont_len; local
3759 int fname_len; local
3834 int fname_len, localname_len = 0; local
4402 int fname_len, arch_len, entry_len; local
[all...]
/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.c2039 int fname_len; local
2135 fname_len = strlen(ptr->fname);
2136 lowercase_name = zend_new_interned_string(zend_str_tolower_dup(ptr->fname, fname_len), fname_len + 1, 1 TSRMLS_CC);
2137 hash = str_hash(lowercase_name, fname_len);
2138 if (zend_hash_quick_add(target_function_table, lowercase_name, fname_len+1, hash, &function, sizeof(zend_function), (void**)&reg_function) == FAILURE) {
2161 if ((fname_len == class_name_len) && !ctor && !memcmp(lowercase_name, lc_class_name, class_name_len+1)) {
2163 } else if ((fname_len == sizeof(ZEND_CONSTRUCTOR_FUNC_NAME)-1) && !memcmp(lowercase_name, ZEND_CONSTRUCTOR_FUNC_NAME, sizeof(ZEND_CONSTRUCTOR_FUNC_NAME) - 1)) {
2165 } else if ((fname_len == sizeof(ZEND_DESTRUCTOR_FUNC_NAME)-1) && !memcmp(lowercase_name, ZEND_DESTRUCTOR_FUNC_NAME, sizeof(ZEND_DESTRUCTOR_FUNC_NAME) - 1)) {
2170 } else if ((fname_len
[all...]
/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.c1449 static void spl_array_method(INTERNAL_FUNCTION_PARAMETERS, char *fname, int fname_len, int use_arg) /* {{{ */ argument
1462 zend_call_method(NULL, NULL, NULL, fname, fname_len, &retval_ptr, 1, tmp, NULL TSRMLS_CC);
1472 zend_call_method(NULL, NULL, NULL, fname, fname_len, &retval_ptr, arg? 2 : 1, tmp, arg TSRMLS_CC);
1482 zend_call_method(NULL, NULL, NULL, fname, fname_len, &retval_ptr, 2, tmp, arg TSRMLS_CC);
/PHP_TRUNK/ext/odbc/
H A Dphp_odbc.c2899 int i, field_ind, fname_len; local
2903 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rs", &pv_res, &fname, &fname_len) == FAILURE) {

Completed in 45 milliseconds