fix: use of $IP in function scope needs global
Merge pull request #3 from scolytus/master

fix: use of $IP in function scope needs global