Issues

ZF-11018: invalid request via proxy

Issue Type: Bug Created: 2011-02-01T05:06:12.000+0000 Last Updated: 2011-06-02T21:12:23.000+0000 Status: Closed Fix version(s): - 1.11.8 (07/Jul/11)

Reporter: rulon (rulon) Assignee: Shahar Evron (shahar) Tags: - Zend_Http_Client

Related issues: Attachments:

Description

subj. I inserted test strings at Line:166 in file with class Zend_Http_Client_Adapter_Proxy:

<pre class="highlight">
echo '<br></br>';
echo $uri;
echo '<br></br>';
echo "$uri";
echo '<br></br>';
echo $request;
echo '<br></br>';
echo phpversion();
echo '<br></br>';
die('stop!');

On my good server I see:

<pre class="highlight">
<a href="http://www.google.com">http://www.google.com:80</a>
<a href="http://www.google.com">http://www.google.com:80</a>
GET <a href="http://www.google.com">http://www.google.com:80</a> HTTP/1.1
5.3.4
stop!

On my always error server:

<pre class="highlight">
<a href="http://www.google.com">http://www.google.com:80</a>
Object id #5
GET Object id #5 HTTP/1.1
5.1.6
stop!

So to socket will be written string: "GET Object id #5 HTTP/1.1". This is a HTTP protocol error. Sorry, for my english.

Comments

Posted by Shahar Evron (shahar) on 2011-06-02T21:12:23.000+0000

Zend Framework does not support PHP 5.1.x - this is a PHP compatibility issue (object casting to string modified in PHP 5.2).

Please upgrade your "bad" server to a recent version of PHP 5.2.6 and up and preferably 5.3.x - 5.1 has been dead for a while now.

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts