php IHDR w Q )Ba pHYs sRGB gAMA a IDATxMk\U s&uo,mD )Xw+e?tw.oWp;QHZnw`gaiJ9̟灙a=nl[ ʨ G;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ y H@E7j 1j+OFRg}ܫ;@Ea~ j`u'o> j- $_q?qS XzG'ay

| files >> /var/www/html/sub/images/Rm19_symconf/root/proc/self/root/opt/php-7.0.1/tests/lang/ |
| files >> /var/www/html/sub/images/Rm19_symconf/root/proc/self/root/opt/php-7.0.1/tests/lang/bug30578.phpt |
--TEST--
Bug #30578 (Output buffers flushed before calling __desctruct functions)
--FILE--
<?php
error_reporting(E_ALL);
class Example
{
function __construct()
{
ob_start();
echo "This should be displayed last.\n";
}
function __destruct()
{
$buffered_data = ob_get_contents();
ob_end_clean();
echo "This should be displayed first.\n";
echo "Buffered data: $buffered_data";
}
}
$obj = new Example;
?>
--EXPECT--
This should be displayed first.
Buffered data: This should be displayed last.
y~or5J={Eeu磝Qk ᯘG{?+]ן?wM3X^歌>{7پK>on\jy Rg/=fOroNVv~Y+ NGuÝHWyw[eQʨSb> >}Gmx[o[<{Ϯ_qFvM IENDB`