From 8cd58822c31a36ce9729dbd7aed56afcfe6e1898 Mon Sep 17 00:00:00 2001 From: Greg Beaver Date: Mon, 11 Feb 2008 06:58:56 +0000 Subject: [PATCH] fix TSRM and 5.2 build --- ext/phar/phar_object.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/phar/phar_object.c b/ext/phar/phar_object.c index bd06a67383..8d635601d7 100755 --- a/ext/phar/phar_object.c +++ b/ext/phar/phar_object.c @@ -1061,7 +1061,7 @@ PHP_METHOD(Phar, __construct) return; } - if (SUCCESS == phar_split_fname(fname, fname_len, &arch, &arch_len, &entry, &entry_len)) { + if (SUCCESS == phar_split_fname(fname, fname_len, &arch, &arch_len, &entry, &entry_len TSRMLS_CC)) { /* use arch for fname instead of fname */ /* this allows support for RecursiveDirectoryIterator of subdirectories */ save_fname = fname; @@ -1588,7 +1588,7 @@ static void phar_convert_to_other(phar_archive_data *source, int convert, php_ui *newentry.metadata = *t; zval_copy_ctor(newentry.metadata); #if PHP_VERSION_ID < 50300 - newentry.metadata.refcount = 1; + newentry.metadata->refcount = 1; #else Z_SET_REFCOUNT_P(newentry.metadata, 1); #endif -- 2.50.1