Lines Matching refs:zr_rsrc

1202 	zip_read_rsrc *zr_rsrc = (zip_read_rsrc *) rsrc->ptr;  in php_zip_free_entry()  local
1204 if (zr_rsrc) { in php_zip_free_entry()
1205 if (zr_rsrc->zf) { in php_zip_free_entry()
1206 zip_fclose(zr_rsrc->zf); in php_zip_free_entry()
1207 zr_rsrc->zf = NULL; in php_zip_free_entry()
1209 efree(zr_rsrc); in php_zip_free_entry()
1310 zip_read_rsrc *zr_rsrc; in PHP_NAMED_FUNCTION() local
1324 zr_rsrc = emalloc(sizeof(zip_read_rsrc)); in PHP_NAMED_FUNCTION()
1326 ret = zip_stat_index(rsrc_int->za, rsrc_int->index_current, 0, &zr_rsrc->sb); in PHP_NAMED_FUNCTION()
1329 efree(zr_rsrc); in PHP_NAMED_FUNCTION()
1333 zr_rsrc->zf = zip_fopen_index(rsrc_int->za, rsrc_int->index_current, 0); in PHP_NAMED_FUNCTION()
1334 if (zr_rsrc->zf) { in PHP_NAMED_FUNCTION()
1336 ZEND_REGISTER_RESOURCE(return_value, zr_rsrc, le_zip_entry); in PHP_NAMED_FUNCTION()
1338 efree(zr_rsrc); in PHP_NAMED_FUNCTION()
1357 zip_read_rsrc * zr_rsrc; in PHP_NAMED_FUNCTION() local
1364 ZEND_FETCH_RESOURCE(zr_rsrc, zip_read_rsrc *, &zip_entry, -1, le_zip_entry_name, le_zip_entry); in PHP_NAMED_FUNCTION()
1367 if (zr_rsrc->zf != NULL) { in PHP_NAMED_FUNCTION()
1380 zip_read_rsrc * zr_rsrc; in PHP_NAMED_FUNCTION() local
1386 ZEND_FETCH_RESOURCE(zr_rsrc, zip_read_rsrc *, &zip_entry, -1, le_zip_entry_name, le_zip_entry); in PHP_NAMED_FUNCTION()
1398 zip_read_rsrc * zr_rsrc; in PHP_NAMED_FUNCTION() local
1406 ZEND_FETCH_RESOURCE(zr_rsrc, zip_read_rsrc *, &zip_entry, -1, le_zip_entry_name, le_zip_entry); in PHP_NAMED_FUNCTION()
1412 if (zr_rsrc->zf) { in PHP_NAMED_FUNCTION()
1414 n = zip_fread(zr_rsrc->zf, buffer, len); in PHP_NAMED_FUNCTION()
1431 zip_read_rsrc * zr_rsrc; in php_zip_entry_get_info() local
1437 ZEND_FETCH_RESOURCE(zr_rsrc, zip_read_rsrc *, &zip_entry, -1, le_zip_entry_name, le_zip_entry); in php_zip_entry_get_info()
1439 if (!zr_rsrc->zf) { in php_zip_entry_get_info()
1445 RETURN_STRING((char *)zr_rsrc->sb.name, 1); in php_zip_entry_get_info()
1448 RETURN_LONG((long) (zr_rsrc->sb.comp_size)); in php_zip_entry_get_info()
1451 RETURN_LONG((long) (zr_rsrc->sb.size)); in php_zip_entry_get_info()
1454 switch (zr_rsrc->sb.comp_method) { in php_zip_entry_get_info()
1485 RETURN_LONG((long) (zr_rsrc->sb.comp_method)); in php_zip_entry_get_info()