Lines Matching refs:rsrc_int
1215 zip_rsrc *rsrc_int; in PHP_NAMED_FUNCTION() local
1235 rsrc_int = (zip_rsrc *)emalloc(sizeof(zip_rsrc)); in PHP_NAMED_FUNCTION()
1237 rsrc_int->za = zip_open(resolved_path, 0, &err); in PHP_NAMED_FUNCTION()
1238 if (rsrc_int->za == NULL) { in PHP_NAMED_FUNCTION()
1239 efree(rsrc_int); in PHP_NAMED_FUNCTION()
1243 rsrc_int->index_current = 0; in PHP_NAMED_FUNCTION()
1244 rsrc_int->num_files = zip_get_num_files(rsrc_int->za); in PHP_NAMED_FUNCTION()
1246 ZEND_REGISTER_RESOURCE(return_value, rsrc_int, le_zip_dir); in PHP_NAMED_FUNCTION()
1274 zip_rsrc *rsrc_int; in PHP_NAMED_FUNCTION() local
1279 ZEND_FETCH_RESOURCE(rsrc_int, zip_rsrc *, &zip_dp, -1, le_zip_dir_name, le_zip_dir); in PHP_NAMED_FUNCTION()
1281 if (rsrc_int && rsrc_int->za) { in PHP_NAMED_FUNCTION()
1282 if (rsrc_int->index_current >= rsrc_int->num_files) { in PHP_NAMED_FUNCTION()
1288 ret = zip_stat_index(rsrc_int->za, rsrc_int->index_current, 0, &zr_rsrc->sb); in PHP_NAMED_FUNCTION()
1295 zr_rsrc->zf = zip_fopen_index(rsrc_int->za, rsrc_int->index_current, 0); in PHP_NAMED_FUNCTION()
1297 rsrc_int->index_current++; in PHP_NAMED_FUNCTION()