views:

117

answers:

0

I have a script to be run by a job I set up in Zend Platform, and that script needs to make use of the Zend Framework.

I can run the script from a browser or command line with no problem, but when I set a job to run it in ZP, the script errors out because none of the required Zend library files can be found. Echo tests using get_include_path() showed that when running from a job queue, the script starts with ".:" as the include path. From the browser/command line, the script correctly uses the include_path value from php.ini. The "PHP Configuration" section in Zend Platform also shows the correct value for include_path.

Is there some reason why the php.ini would be ignored or overridden by the job queue?

I do not want to specify the path to the Zend library in the job script itself if I can help it, since the path contains the Zend Framework version currently in use and I'd rather not have to change that every time we upgrade.