# 5.2.10 - odd behavior- page outputed twice

- Thread: https://externals.io/message/45417
- Original archive: https://news-web.php.net/php.internals/45417
- Started by andre.huebner@gmx.de on 2009-08-27T08:15:43+00:00
- Messages: 3
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #45417 — andre.huebner@gmx.de — 2009-08-27T08:15:43+00:00

URL: https://externals.io/message/45417#45417

Hello,

i am confronted with odd behavior of php 5.2.10. I compiled and packaged the 
same way like other prior versions.
If i install 5.2.10 and reload page (sefrengo cms) the page is outputed 
completely twice.when scrolling down i see same page again incl. <doctype 
<html> </html> etc.
Downgrading to 5.2.9 solves problem and page looks like intended.
somebody has already heard of problems like this? i do not really know in 
which direction to look, current buglist contains no fitting descriptions..
i guessed a relation to bug #48994 but was not confirmed, also current 
5.2.11rc2 showed odd behavior.

Any ideas?

Thanks,
Andre

---

## #45419 — Alexey Zakhlestin — 2009-08-27T09:28:06+00:00

URL: https://externals.io/message/45417#45419 · In reply to: #45417

> Hello,
>
> i am confronted with odd behavior of php 5.2.10. I compiled and packaged the
> same way like other prior versions.
> If i install 5.2.10 and reload page (sefrengo cms) the page is outputed
> completely twice.when scrolling down i see same page again incl. <doctype
> <html> </html> etc.
> Downgrading to 5.2.9 solves problem and page looks like intended.
> somebody has already heard of problems like this? i do not really know in
> which direction to look, current buglist contains no fitting descriptions..
> i guessed a relation to bug #48994 but was not confirmed, also current
> 5.2.11rc2 showed odd behavior.
>
> Any ideas?

Is it reproducible with simple page? something like:
<?php
echo "Hello, world!\n";
?>

If it isn't, you'll need to find minimal script which shows the problem.

Also, you can ask your CMS's authors if they know about this problem

-- 
Alexey Zakhlestin
http://www.milkfarmsoft.com/
Sent from St Petersburg, Russian Federation

---

## #45421 — andre.huebner@gmx.de — 2009-08-27T13:57:53+00:00

URL: https://externals.io/message/45417#45421 · In reply to: #45419

> > […]
i tried some situations but in my case all works fine. on other machine same 
cms with same page shows up correctly. (same rpms installed)
problem seems to be outputbuffering: index.php of sefrengo does in line 37 
 `ob_start()`
if i deactivate this line page works correctly.

next is line 433 in index.php of sefrengo, there is a eval();
if ob_start in line 37 is active but this line gets deactivated the page 
also works ok.
the eval in this case evaluates an "echo $output". $output contains a 
html-div, some text etc. which is modifying main-html
in 5.2.10 complete page is outputed twice, returning to 5.2.9 page is ok

> > […]
i think problem is unknown but will ask there.
maybe we succeed to isolate problem.

Thanks,
Andre
