Fix issue krakjoe/phpdbg#99
register function has the same behavior as run