Lines Matching refs:zr_rsrc

1114 	zip_read_rsrc *zr_rsrc = (zip_read_rsrc *) rsrc->ptr;  in php_zip_free_entry()  local
1116 if (zr_rsrc) { in php_zip_free_entry()
1117 if (zr_rsrc->zf) { in php_zip_free_entry()
1118 zip_fclose(zr_rsrc->zf); in php_zip_free_entry()
1119 zr_rsrc->zf = NULL; in php_zip_free_entry()
1121 efree(zr_rsrc); in php_zip_free_entry()
1221 zip_read_rsrc *zr_rsrc; in PHP_FUNCTION() local
1238 zr_rsrc = emalloc(sizeof(zip_read_rsrc)); in PHP_FUNCTION()
1240 ret = zip_stat_index(rsrc_int->za, rsrc_int->index_current, 0, &zr_rsrc->sb); in PHP_FUNCTION()
1243 efree(zr_rsrc); in PHP_FUNCTION()
1247 zr_rsrc->zf = zip_fopen_index(rsrc_int->za, rsrc_int->index_current, 0); in PHP_FUNCTION()
1248 if (zr_rsrc->zf) { in PHP_FUNCTION()
1250 RETURN_RES(zend_register_resource(zr_rsrc, le_zip_entry)); in PHP_FUNCTION()
1252 efree(zr_rsrc); in PHP_FUNCTION()
1270 zip_read_rsrc * zr_rsrc; in PHP_FUNCTION() local
1277 …if ((zr_rsrc = (zip_read_rsrc *)zend_fetch_resource(Z_RES_P(zip_entry), le_zip_entry_name, le_zip_… in PHP_FUNCTION()
1285 if (zr_rsrc->zf != NULL) { in PHP_FUNCTION()
1297 zip_read_rsrc * zr_rsrc; in PHP_FUNCTION() local
1303 …if ((zr_rsrc = (zip_read_rsrc *)zend_fetch_resource(Z_RES_P(zip_entry), le_zip_entry_name, le_zip_… in PHP_FUNCTION()
1317 zip_read_rsrc * zr_rsrc; in PHP_FUNCTION() local
1325 …if ((zr_rsrc = (zip_read_rsrc *)zend_fetch_resource(Z_RES_P(zip_entry), le_zip_entry_name, le_zip_… in PHP_FUNCTION()
1333 if (zr_rsrc->zf) { in PHP_FUNCTION()
1335 n = zip_fread(zr_rsrc->zf, ZSTR_VAL(buffer), ZSTR_LEN(buffer)); in PHP_FUNCTION()
1353 zip_read_rsrc * zr_rsrc; in php_zip_entry_get_info() local
1359 …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()
1363 if (!zr_rsrc->zf) { in php_zip_entry_get_info()
1369 RETURN_STRING((char *)zr_rsrc->sb.name); in php_zip_entry_get_info()
1371 RETURN_LONG((zend_long) (zr_rsrc->sb.comp_size)); in php_zip_entry_get_info()
1373 RETURN_LONG((zend_long) (zr_rsrc->sb.size)); in php_zip_entry_get_info()
1375 switch (zr_rsrc->sb.comp_method) { in php_zip_entry_get_info()