amazonwebservices/aws-sdk-for-php — pull request #49 by internetstaff (2012-11-29 23:02:44+00:00)
Title: Fix proxy support header parsing problem

As referenced here:

https://forums.aws.amazon.com/thread.jspa?messageID=227413

This patch fixes a problem parsing the proxy header. Otherwise, the tail of the header ends up in the $body and it throws parse errors such as:

Warning: SimpleXMLElement::__construct(): Entity: line 1: parser error : Start tag expected, '<' not found in /usr/share/pear/AWSSDKforPHP/sdk.class.php on line 1275

Warning: SimpleXMLElement::__construct(): 012 22:53:43 GMT in /usr/share/pear/AWSSDKforPHP/sdk.class.php on line 1275

Warning: SimpleXMLElement::__construct(): ^ in /usr/share/pear/AWSSDKforPHP/sdk.class.php on line 1275

Fatal error: Uncaught exception 'Parser_Exception' with message 'String could not be parsed as XML' in /usr/share/pear/AWSSDKforPHP/sdk.class.php:1279
Stack trace:
#0 /usr/share/pear/AWSSDKforPHP/sdk.class.php(1048): CFRuntime->parse_callback('012 22:53:43 GM...')
#1 /usr/share/pear/AWSSDKforPHP/services/ec2.class.php(3425): CFRuntime->authenticate('DescribeVolumes', Array)