ZendServerSDK icon indicating copy to clipboard operation
ZendServerSDK copied to clipboard

PHP Notices when run by a daemon

Open ubellavance opened this issue 8 years ago • 2 comments

When run by puppet as a daemon, a call to the phar sends a PHP Notice:

Jul 10 09:07:01 atqz9staging1 start-puppet-agent: PHP Notice:  Undefined index: HOMEDRIVE in phar:///usr/local/zend/var/libraries/ZendServerSDK/1.1.1a/library/zs-client.phar/module/Client/config/module.config.php on line 2
Jul 10 09:07:01 atqz9staging1 start-puppet-agent: PHP Notice:  Undefined index: HOMEPATH in phar:///usr/local/zend/var/libraries/ZendServerSDK/1.1.1a/library/zs-client.phar/module/Client/config/module.config.php on line 2

It caused problems when I was trying to create facts using the API, but that's behind me. However, these Notices show in /var/log/messsages(syslog on debian/ubuntu I guess). Would it be possible to set HOMEDRIVE to / if not defined and HOMEDRIVE to something that makes sense?

ubellavance avatar Jul 10 '17 13:07 ubellavance

I'm encountering this also on a Linus system when I bootstrapSingleServer.

` Notice: Undefined index: HOMEDRIVE in phar:///usr/local/zend/share/sdk/zs-client.phar/module/Client/config/module.config.php on line 2

Notice: Undefined index: HOMEPATH in phar:///usr/local/zend/share/sdk/zs-client.phar/module/Client/config/module.config.php on line 2

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in phar:///usr/local/zend/share/sdk/zs-client.phar/vendor/zendframework/zend-stdlib/src/ArrayObject.php on line 2 `

elmic11111 avatar Sep 30 '23 13:09 elmic11111

@elmic11111 try to replace this file /usr/local/zend/share/sdk/zs-client.phar with the latest version of the tool. The latest version can be downloaded from here: https://github.com/zend-patterns/ZendServerSDK/raw/master/bin/zs-client.phar

slaff avatar Oct 20 '23 13:10 slaff