]> granicus.if.org Git - php/commitdiff
fix 5_3 ZTS build
authorAntony Dovgal <tony2001@php.net>
Mon, 17 Mar 2008 08:55:56 +0000 (08:55 +0000)
committerAntony Dovgal <tony2001@php.net>
Mon, 17 Mar 2008 08:55:56 +0000 (08:55 +0000)
ext/phar/phar_object.c

index 1f912bed8c95887b5eef5cc8be269352b8f3a7cb..be5c763fed1cea213e7a4d3a15603284bc3374e2 100755 (executable)
@@ -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);