do not allocate envelope header zval a second time
fix memleak in header parsing