]> granicus.if.org Git - php/commitdiff
MFB: disable mysterious segfault on PHP 5.3 (5.2 not affected)
authorGreg Beaver <cellog@php.net>
Mon, 4 May 2009 04:30:50 +0000 (04:30 +0000)
committerGreg Beaver <cellog@php.net>
Mon, 4 May 2009 04:30:50 +0000 (04:30 +0000)
ext/phar/phar_object.c

index 3cc681752bbfbe9ee0a21db13b08b90c4ad6a9af..f163f99b7b594b8198a5fb825a0c588ce6bb888e 100755 (executable)
@@ -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));