D
D
dontagr2015-04-09 11:30:01
Zend Framework
dontagr, 2015-04-09 11:30:01

Zend appends header incorrectly, why?

Good afternoon, I encountered an error, the server gives the header:

4d28d3e2c8bc2e9ce5224538e153eb1348d109c9b15a9410edd14f6d05480d54576ff1c41f6544b496fe4ef5e8459539a98013e1d4cf9ba4bdada2b0cc2877a7HTTP/1.1 200 OK
Date: Thu, 09 Apr 2015 08:14:12 GMT
Server: Apache/2.4.7 (Win32) PHP/5.5.7
X-Powered-By: PHP/5.5.7
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Keep-Alive: timeout=5, max=95
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/html; charset=UTF-8

bf66
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru" lang="ru" dir="ltr">
<head>
  <base href="//socialengine/"/>

I further cut off the code there are no problems.
As a result, the page looks like text. Moreover, this error appears chaotically on different pages of the dependency could not be installed. The string that goes before HTTP/1.1 200 OK is a cookie...
I can't find the error, I'm sinning on Zend. Any ideas what could be the reason or catch this error? (it's difficult to walk around the project with debugging, firstly the project is big and secondly the error does not always appear)
How can you insert a cookie/text over the header into the response body??

Answer the question

In order to leave comments, you need to log in

2 answer(s)
F
FanatPHP, 2015-04-09
@dontagr

stackoverflow.com/questions/22121282/php-inserts-h...

A
Alexander, 2015-04-09
@disc

Turn on error display at the E_ALL level and see what it says. In general, it is not supposed to display anything before headers, usually php swears at this with Warnings.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question