-
Notifications
You must be signed in to change notification settings - Fork 73
Issues with running on Windows
Some people have been having trouble running this class on php installed on a Windows system. I think the problem is connected with these known issues that affect curl on windows.
Here is some information relating to this issue:
http://au2.php.net/manual/en/wrappers.php.php
http://windows.php.net/
and especially:
http://curl.haxx.se/docs/adv_20090303.html
Line 297 uses the “php://memory” stream wrapper (info on first link above). In the second link, see this text:
"
PHP 5.2.9-1 (Windows) released
10-Mar-2009
The PHP Development Team would like to announce the availability of a new Windows build of PHP – PHP 5.2.9-1
This release focuses on fixing a security flaw introduced by the cURL library (CVE-2009-0037). Please see the following for a full description:http://curl.haxx.se/docs/adv_20090303.html
Please note that the cURL related function is disabled when open_basedir or safe_mode enabled.
Note: Only the Windows packages are affected."
This seems to indicate that cURL functions may not work as expected if open_basedir or safe_mode is enabled. So that could be checked too, as well as the php version to see if it is before php 5.2.9-1 (Windows build). The third link states:
“libcurl 7.19.4 introduces a new option called CURLOPT_REDIR_PROTOCOLS, which
applications can use to tell libcurl what target protocols automatic
redirect followings are allowed to use. This will by default exclude FILE
and SCP URLs."
So, if you are running this class on a server which falls into the versions listed above, you might find that some functions don’t work correctly, and the server’s curl functions won’t be formatting the request correctly and Xero will reject the requests.
Enjoy :)