Lines Matching refs:ze_obj
1442 ze_zip_object *ze_obj; local
1449 ze_obj = Z_ZIP_P(self);
1465 if (ze_obj->za) {
1467 if (zip_close(ze_obj->za) != 0) {
1472 ze_obj->za = NULL;
1474 if (ze_obj->filename) {
1475 efree(ze_obj->filename);
1476 ze_obj->filename = NULL;
1502 ze_obj->filename = resolved_path;
1503 ze_obj->filename_len = strlen(resolved_path);
1504 ze_obj->za = intern;
1541 ze_zip_object *ze_obj; local
1550 ze_obj = Z_ZIP_P(self);
1557 zip_error_get(intern, &ze_obj->err_zip, &ze_obj->err_sys);
1563 ze_obj->err_zip = zip_error_code_zip(ziperr);
1564 ze_obj->err_sys = zip_error_code_system(ziperr);
1570 ze_obj->err_zip = 0;
1571 ze_obj->err_sys = 0;
1575 php_clear_stat_cache(1, ze_obj->filename, ze_obj->filename_len);
1577 efree(ze_obj->filename);
1578 ze_obj->filename = NULL;
1579 ze_obj->filename_len = 0;
1580 ze_obj->za = NULL;
1616 ze_zip_object *ze_obj; local
1622 ze_obj = Z_ZIP_P(self); /* not ZIP_FROM_OBJECT as we can use saved error after close */
1625 if (ze_obj->za) {
1626 zip_error_get(ze_obj->za, &zep, &syp);
1629 len = zip_error_to_str(error_string, 128, ze_obj->err_zip, ze_obj->err_sys);
1633 if (ze_obj->za) {
1636 err = zip_get_error(ze_obj->za);
1643 zip_error_set(&err, ze_obj->err_zip, ze_obj->err_sys);
1735 ze_zip_object *ze_obj; local
1737 ze_obj = Z_ZIP_P(self);
1782 if (php_zip_add_file(ze_obj, Z_STRVAL_P(zval_file), Z_STRLEN_P(zval_file),
1788 if (zip_set_file_compression(ze_obj->za, ze_obj->last_id, opts.comp_method, opts.comp_flags)) {
1795 if (zip_file_set_encryption(ze_obj->za, ze_obj->last_id, opts.enc_method, opts.enc_password)) {
1896 ze_zip_object *ze_obj; local
1908 ze_obj = Z_ZIP_P(self);
1909 if (ze_obj->buffers_cnt) {
1910 …ze_obj->buffers = (char **)safe_erealloc(ze_obj->buffers, sizeof(char *), (ze_obj->buffers_cnt+1),…
1911 pos = ze_obj->buffers_cnt++;
1913 ze_obj->buffers = (char **)emalloc(sizeof(char *));
1914 ze_obj->buffers_cnt++;
1917 ze_obj->buffers[pos] = (char *)safe_emalloc(ZSTR_LEN(buffer), 1, 1);
1918 memcpy(ze_obj->buffers[pos], ZSTR_VAL(buffer), ZSTR_LEN(buffer) + 1);
1920 zs = zip_source_buffer(intern, ze_obj->buffers[pos], ZSTR_LEN(buffer), 0);
1926 ze_obj->last_id = zip_file_add(intern, name, zs, flags);
1927 if (ze_obj->last_id == -1) {