From 044f39293b4806ef954e7b5625621866d2b64d5e Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Mon, 17 Mar 2008 08:55:56 +0000 Subject: [PATCH] fix 5_3 ZTS build --- ext/phar/phar_object.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ext/phar/phar_object.c b/ext/phar/phar_object.c index 1f912bed8c..be5c763fed 100755 --- a/ext/phar/phar_object.c +++ b/ext/phar/phar_object.c @@ -297,7 +297,11 @@ static int phar_file_action(phar_entry_data *phar, char *mime_type, int code, ch zend_destroy_file_handle(&file_handle TSRMLS_CC); } else { new_op_array = NULL; +#if PHP_VERSION_ID >= 50300 + zend_file_handle_dtor(&file_handle TSRMLS_CC); +#else zend_file_handle_dtor(&file_handle); +#endif } #ifdef PHP_WIN32 efree(arch); -- 2.40.0