@@ -339,34 +339,6 @@ static inline php_stream *phar_get_entrypfp(phar_entry_info *entry)
339
339
return PHAR_G (cached_fp )[entry -> phar -> phar_pos ].fp ;
340
340
}
341
341
342
- static inline php_stream * phar_get_entrypufp (phar_entry_info * entry )
343
- {
344
- if (!entry -> is_persistent ) {
345
- return entry -> phar -> ufp ;
346
- }
347
- return PHAR_G (cached_fp )[entry -> phar -> phar_pos ].ufp ;
348
- }
349
-
350
- static inline void phar_set_entrypfp (phar_entry_info * entry , php_stream * fp )
351
- {
352
- if (!entry -> phar -> is_persistent ) {
353
- entry -> phar -> fp = fp ;
354
- return ;
355
- }
356
-
357
- PHAR_G (cached_fp )[entry -> phar -> phar_pos ].fp = fp ;
358
- }
359
-
360
- static inline void phar_set_entrypufp (phar_entry_info * entry , php_stream * fp )
361
- {
362
- if (!entry -> phar -> is_persistent ) {
363
- entry -> phar -> ufp = fp ;
364
- return ;
365
- }
366
-
367
- PHAR_G (cached_fp )[entry -> phar -> phar_pos ].ufp = fp ;
368
- }
369
-
370
342
static inline php_stream * phar_get_pharfp (phar_archive_data * phar )
371
343
{
372
344
if (!phar -> is_persistent ) {
@@ -375,48 +347,6 @@ static inline php_stream *phar_get_pharfp(phar_archive_data *phar)
375
347
return PHAR_G (cached_fp )[phar -> phar_pos ].fp ;
376
348
}
377
349
378
- static inline php_stream * phar_get_pharufp (phar_archive_data * phar )
379
- {
380
- if (!phar -> is_persistent ) {
381
- return phar -> ufp ;
382
- }
383
- return PHAR_G (cached_fp )[phar -> phar_pos ].ufp ;
384
- }
385
-
386
- static inline void phar_set_pharfp (phar_archive_data * phar , php_stream * fp )
387
- {
388
- if (!phar -> is_persistent ) {
389
- phar -> fp = fp ;
390
- return ;
391
- }
392
-
393
- PHAR_G (cached_fp )[phar -> phar_pos ].fp = fp ;
394
- }
395
-
396
- static inline void phar_set_pharufp (phar_archive_data * phar , php_stream * fp )
397
- {
398
- if (!phar -> is_persistent ) {
399
- phar -> ufp = fp ;
400
- return ;
401
- }
402
-
403
- PHAR_G (cached_fp )[phar -> phar_pos ].ufp = fp ;
404
- }
405
-
406
- static inline void phar_set_fp_type (phar_entry_info * entry , enum phar_fp_type type , zend_off_t offset )
407
- {
408
- phar_entry_fp_info * data ;
409
-
410
- if (!entry -> is_persistent ) {
411
- entry -> fp_type = type ;
412
- entry -> offset = offset ;
413
- return ;
414
- }
415
- data = & (PHAR_G (cached_fp )[entry -> phar -> phar_pos ].manifest [entry -> manifest_pos ]);
416
- data -> fp_type = type ;
417
- data -> offset = offset ;
418
- }
419
-
420
350
static inline enum phar_fp_type phar_get_fp_type (phar_entry_info * entry )
421
351
{
422
352
if (!entry -> is_persistent ) {
@@ -425,19 +355,6 @@ static inline enum phar_fp_type phar_get_fp_type(phar_entry_info *entry)
425
355
return PHAR_G (cached_fp )[entry -> phar -> phar_pos ].manifest [entry -> manifest_pos ].fp_type ;
426
356
}
427
357
428
- static inline zend_off_t phar_get_fp_offset (phar_entry_info * entry )
429
- {
430
- if (!entry -> is_persistent ) {
431
- return entry -> offset ;
432
- }
433
- if (PHAR_G (cached_fp )[entry -> phar -> phar_pos ].manifest [entry -> manifest_pos ].fp_type == PHAR_FP ) {
434
- if (!PHAR_G (cached_fp )[entry -> phar -> phar_pos ].manifest [entry -> manifest_pos ].offset ) {
435
- PHAR_G (cached_fp )[entry -> phar -> phar_pos ].manifest [entry -> manifest_pos ].offset = entry -> offset ;
436
- }
437
- }
438
- return PHAR_G (cached_fp )[entry -> phar -> phar_pos ].manifest [entry -> manifest_pos ].offset ;
439
- }
440
-
441
358
#define PHAR_MIME_PHP '\0'
442
359
#define PHAR_MIME_PHPS '\1'
443
360
#define PHAR_MIME_OTHER '\2'
0 commit comments