Check if used globals are defined in PhpDataSource. (Fixes #4)