From: Greg Beaver Date: Mon, 28 Apr 2008 23:00:46 +0000 (+0000) Subject: fix segfault (now all tests pass here) X-Git-Tag: RELEASE_2_0_0b1~157 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=984ea1f4371ef6408ff8605045400a9c0df9a8f4;p=php fix segfault (now all tests pass here) --- diff --git a/ext/phar/phar_object.c b/ext/phar/phar_object.c index 67992f07f5..4921d51159 100755 --- a/ext/phar/phar_object.c +++ b/ext/phar/phar_object.c @@ -317,7 +317,7 @@ static int phar_file_action(phar_entry_data *phar, char *mime_type, int code, ch } PHAR_G(cwd_init) = 0; efree(name); - if (EG(return_value_ptr_ptr)) { + if (EG(return_value_ptr_ptr) && *EG(return_value_ptr_ptr)) { zval_ptr_dtor(EG(return_value_ptr_ptr)); } if (EG(exception)) {