Exchange-Web-Services-for-PHP
Exchange-Web-Services-for-PHP copied to clipboard
Creating default object from empty value in.. multiple lines.
Hey, thanks for the great software. Sadly I encountered a problem. I used the advanced installation and the demo you have on the <>code page.
I filled in the blind-text as my real mailserver (mail.domain.tld), used my outlook/domain login in the code-snippet and executed the code.
This is the error:
➜ Exchange-Web-Services-for-PHP git:(master) ✗ php outlooktest.php
PHP Warning: Creating default object from empty value in /var/www/html/Exchange-Web-Services-for-PHP/lib/ExchangeClient.php on line 349
PHP Warning: Creating default object from empty value in /var/www/html/Exchange-Web-Services-for-PHP/lib/ExchangeClient.php on line 355
PHP Warning: Creating default object from empty value in /var/www/html/Exchange-Web-Services-for-PHP/lib/ExchangeClient.php on line 357
PHP Warning: Creating default object from empty value in /var/www/html/Exchange-Web-Services-for-PHP/lib/ExchangeClient.php on line 370
All the files are there and are modified as the advanced installation requires.
➜ lib git:(master) ✗ ls
ExchangeClient.php ExchangeNTLMStream.php messages.xsd NTLMSoapClient.php NTLMStream.php Services.wsdl types.xsd
Maybe you can help me with that! Thanks a lot!
Did you manage to fix that error @perskes ?
This issue has been resolved:
https://github.com/rileydutton/Exchange-Web-Services-for-PHP/commit/95d941af42261cba7962a9df87a407a840b0cc52 Bugs & warnings corrected for proper operation (7 Apr 2017)
Lines 349, 355, 357 and 370 assigned properties to objects without object initialization. Commit 95d941a resolved this.