]> granicus.if.org Git - php/commitdiff
fix segfault (now all tests pass here)
authorGreg Beaver <cellog@php.net>
Mon, 28 Apr 2008 23:00:46 +0000 (23:00 +0000)
committerGreg Beaver <cellog@php.net>
Mon, 28 Apr 2008 23:00:46 +0000 (23:00 +0000)
ext/phar/phar_object.c

index 67992f07f5c9ace60c517d9e589c652bd91db25b..4921d51159b339af45879fccb914488ce4e09215 100755 (executable)
@@ -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)) {