Working with GLOBALS will not work when using multiple listeners in one thread.
https://github.com/mookofe/tail/blob/master/src/Listener.php#L72
Better approach would be to store these information in the class instance or at least use a unique key as separator in the GLOBALS.