From: Greg Beaver Date: Mon, 4 May 2009 04:30:50 +0000 (+0000) Subject: MFB: disable mysterious segfault on PHP 5.3 (5.2 not affected) X-Git-Tag: php-5.4.0alpha1~191^2~3768 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=60ed68485243d28dc3b611411521817d1e154328;p=php MFB: disable mysterious segfault on PHP 5.3 (5.2 not affected) --- diff --git a/ext/phar/phar_object.c b/ext/phar/phar_object.c index 3cc681752b..f163f99b7b 100755 --- a/ext/phar/phar_object.c +++ b/ext/phar/phar_object.c @@ -310,9 +310,11 @@ static int phar_file_action(phar_archive_data *phar, phar_entry_info *info, char efree(new_op_array); +#if PHP_VERSION_ID < 50300 if (EG(return_value_ptr_ptr) && *EG(return_value_ptr_ptr)) { zval_ptr_dtor(EG(return_value_ptr_ptr)); } +#endif } zend_catch { if (PHAR_G(cwd)) { efree(PHAR_G(cwd));