Lines Matching refs:zr_rsrc

1110 	zip_read_rsrc *zr_rsrc = (zip_read_rsrc *) rsrc->ptr;  in php_zip_free_entry()  local
1112 if (zr_rsrc) { in php_zip_free_entry()
1113 if (zr_rsrc->zf) { in php_zip_free_entry()
1114 zip_fclose(zr_rsrc->zf); in php_zip_free_entry()
1115 zr_rsrc->zf = NULL; in php_zip_free_entry()
1117 efree(zr_rsrc); in php_zip_free_entry()
1217 zip_read_rsrc *zr_rsrc; in PHP_FUNCTION() local
1234 zr_rsrc = emalloc(sizeof(zip_read_rsrc)); in PHP_FUNCTION()
1236 ret = zip_stat_index(rsrc_int->za, rsrc_int->index_current, 0, &zr_rsrc->sb); in PHP_FUNCTION()
1239 efree(zr_rsrc); in PHP_FUNCTION()
1243 zr_rsrc->zf = zip_fopen_index(rsrc_int->za, rsrc_int->index_current, 0); in PHP_FUNCTION()
1244 if (zr_rsrc->zf) { in PHP_FUNCTION()
1246 RETURN_RES(zend_register_resource(zr_rsrc, le_zip_entry)); in PHP_FUNCTION()
1248 efree(zr_rsrc); in PHP_FUNCTION()
1266 zip_read_rsrc * zr_rsrc; in PHP_FUNCTION() local
1273 …if ((zr_rsrc = (zip_read_rsrc *)zend_fetch_resource(Z_RES_P(zip_entry), le_zip_entry_name, le_zip_… in PHP_FUNCTION()
1281 if (zr_rsrc->zf != NULL) { in PHP_FUNCTION()
1293 zip_read_rsrc * zr_rsrc; in PHP_FUNCTION() local
1299 …if ((zr_rsrc = (zip_read_rsrc *)zend_fetch_resource(Z_RES_P(zip_entry), le_zip_entry_name, le_zip_… in PHP_FUNCTION()
1313 zip_read_rsrc * zr_rsrc; in PHP_FUNCTION() local
1321 …if ((zr_rsrc = (zip_read_rsrc *)zend_fetch_resource(Z_RES_P(zip_entry), le_zip_entry_name, le_zip_… in PHP_FUNCTION()
1329 if (zr_rsrc->zf) { in PHP_FUNCTION()
1331 n = zip_fread(zr_rsrc->zf, ZSTR_VAL(buffer), ZSTR_LEN(buffer)); in PHP_FUNCTION()
1349 zip_read_rsrc * zr_rsrc; in php_zip_entry_get_info() local
1355 …if ((zr_rsrc = (zip_read_rsrc *)zend_fetch_resource(Z_RES_P(zip_entry), le_zip_entry_name, le_zip_… in php_zip_entry_get_info()
1359 if (!zr_rsrc->zf) { in php_zip_entry_get_info()
1365 RETURN_STRING((char *)zr_rsrc->sb.name); in php_zip_entry_get_info()
1367 RETURN_LONG((zend_long) (zr_rsrc->sb.comp_size)); in php_zip_entry_get_info()
1369 RETURN_LONG((zend_long) (zr_rsrc->sb.size)); in php_zip_entry_get_info()
1371 switch (zr_rsrc->sb.comp_method) { in php_zip_entry_get_info()