Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP Notices when run by a daemon #98

Open
ubellavance opened this issue Jul 10, 2017 · 2 comments
Open

PHP Notices when run by a daemon #98

ubellavance opened this issue Jul 10, 2017 · 2 comments
Assignees

Comments

@ubellavance
Copy link

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?

@slaff slaff self-assigned this Jul 10, 2017
@elmic11111
Copy link

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
`

@slaff
Copy link
Contributor

slaff commented Oct 20, 2023

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants