Lines Matching refs:phar

25 void phar_dostat(phar_archive_data *phar, phar_entry_info *data, php_stream_statbuf *ssb, zend_bool…
310 phar_archive_data *phar; in phar_wrapper_open_dir() local
341 if (FAILURE == phar_get_archive(&phar, resource->host, host_len, NULL, 0, &error)) { in phar_wrapper_open_dir()
359 ret = phar_make_dirstream(internal_file, &phar->manifest); in phar_wrapper_open_dir()
364 if (!phar->manifest.u.flags) { in phar_wrapper_open_dir()
369 …if (NULL != (entry = zend_hash_str_find_ptr(&phar->manifest, internal_file, strlen(internal_file))… in phar_wrapper_open_dir()
379 return phar_make_dirstream(internal_file, &phar->manifest); in phar_wrapper_open_dir()
384 zend_hash_internal_pointer_reset(&phar->manifest); in phar_wrapper_open_dir()
385 while (FAILURE != zend_hash_has_more_elements(&phar->manifest)) { in phar_wrapper_open_dir()
387 zend_hash_get_current_key(&phar->manifest, &str_key, &unused)) { in phar_wrapper_open_dir()
393 return phar_make_dirstream(internal_file, &phar->manifest); in phar_wrapper_open_dir()
397 if (SUCCESS != zend_hash_move_forward(&phar->manifest)) { in phar_wrapper_open_dir()
414 phar_archive_data *phar = NULL; in phar_wrapper_mkdir() local
426 if (FAILURE == phar_get_archive(&phar, arch, arch_len, NULL, 0, NULL)) { in phar_wrapper_mkdir()
427 phar = NULL; in phar_wrapper_mkdir()
433 if (PHAR_G(readonly) && (!phar || !phar->is_data)) { in phar_wrapper_mkdir()
457 if (FAILURE == phar_get_archive(&phar, resource->host, host_len, NULL, 0, &error)) { in phar_wrapper_mkdir()
464 …if ((e = phar_get_entry_info_dir(phar, resource->path + 1, strlen(resource->path + 1), 2, &error, … in phar_wrapper_mkdir()
482 if (phar_get_entry_info_dir(phar, resource->path + 1, strlen(resource->path + 1), 0, &error, 1)) { in phar_wrapper_mkdir()
499 if (phar->is_zip) { in phar_wrapper_mkdir()
505 if (phar->is_tar) { in phar_wrapper_mkdir()
513 entry.phar = phar; in phar_wrapper_mkdir()
519 …if (NULL == zend_hash_str_add_mem(&phar->manifest, entry.filename, entry.filename_len, (void*)&ent… in phar_wrapper_mkdir()
520 …t create directory \"%s\" in phar \"%s\", adding to manifest failed", entry.filename, phar->fname); in phar_wrapper_mkdir()
526 phar_flush(phar, 0, 0, 0, &error); in phar_wrapper_mkdir()
529 …har error: cannot create directory \"%s\" in phar \"%s\", %s", entry.filename, phar->fname, error); in phar_wrapper_mkdir()
530 zend_hash_str_del(&phar->manifest, entry.filename, entry.filename_len); in phar_wrapper_mkdir()
535 phar_add_virtual_dirs(phar, entry.filename, entry.filename_len); in phar_wrapper_mkdir()
546 phar_archive_data *phar = NULL; in phar_wrapper_rmdir() local
561 if (FAILURE == phar_get_archive(&phar, arch, arch_len, NULL, 0, NULL)) { in phar_wrapper_rmdir()
562 phar = NULL; in phar_wrapper_rmdir()
568 if (PHAR_G(readonly) && (!phar || !phar->is_data)) { in phar_wrapper_rmdir()
592 if (FAILURE == phar_get_archive(&phar, resource->host, host_len, NULL, 0, &error)) { in phar_wrapper_rmdir()
601 if (!(entry = phar_get_entry_info_dir(phar, resource->path + 1, path_len, 2, &error, 1))) { in phar_wrapper_rmdir()
613 for (zend_hash_internal_pointer_reset(&phar->manifest); in phar_wrapper_rmdir()
614 HASH_KEY_NON_EXISTENT != zend_hash_get_current_key(&phar->manifest, &str_key, &unused); in phar_wrapper_rmdir()
615 zend_hash_move_forward(&phar->manifest) in phar_wrapper_rmdir()
630 for (zend_hash_internal_pointer_reset(&phar->virtual_dirs); in phar_wrapper_rmdir()
631 HASH_KEY_NON_EXISTENT != zend_hash_get_current_key(&phar->virtual_dirs, &str_key, &unused); in phar_wrapper_rmdir()
632 zend_hash_move_forward(&phar->virtual_dirs)) { in phar_wrapper_rmdir()
649 zend_hash_str_del(&phar->virtual_dirs, resource->path+1, path_len); in phar_wrapper_rmdir()
655 phar_flush(phar, 0, 0, 0, &error); in phar_wrapper_rmdir()
658 …ar error: cannot remove directory \"%s\" in phar \"%s\", %s", entry->filename, phar->fname, error); in phar_wrapper_rmdir()