fix dumper
authorMichael Wallner <mike@php.net>
Mon, 18 Jan 2016 13:52:03 +0000 (14:52 +0100)
committerMichael Wallner <mike@php.net>
Mon, 18 Jan 2016 13:52:03 +0000 (14:52 +0100)
src/context.c

index 3f94d422e8f00848bac0bdca970c71c10729fe3b..0c87feea0d4b90b13509230131e7fbc4f5bd050e 100644 (file)
@@ -1243,7 +1243,7 @@ static inline void dump_impl_set_value(int fd, set_value *set, unsigned level) {
                dprintf(fd, ", ");
                dump_num_exp(fd, set->num);
        }
-       if (set->inner) {
+       if (set->inner && set->func->type != PSI_T_ELLIPSIS) {
                dprintf(fd, ",\n");
                for (i = 0; i < set->count; ++i) {
                        dump_impl_set_value(fd, set->inner[i], level+1);
@@ -1391,6 +1391,9 @@ void PSI_ContextDump(PSI_Context *C, int fd)
                                                        dprintf(fd, "%s($%s)", let->val->data.func->name,
                                                                        let->val->data.func->var->name);
                                                        break;
+                                               case PSI_LET_NUMEXP:
+                                                       dump_num_exp(fd, let->val->data.num);
+                                                       break;
 
                                                EMPTY_SWITCH_DEFAULT_CASE();
                                                }