Adds listener functions for PhpExecutor