php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #65848 output from php error
Submitted: 2013-10-07 04:06 UTC Modified: 2013-12-05 16:58 UTC
From: wisans at gmail dot com Assigned:
Status: Duplicate Package: *General Issues
PHP Version: 5.5.4 OS: Linux 2.6.32-279.el6.x86_64
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: wisans at gmail dot com
New email:
PHP Version: OS:

 

 [2013-10-07 04:06 UTC] wisans at gmail dot com
Description:
------------
this error it happen random. 
i attach file you can see image output and some my source code in zip file.
now i use ob_start to prevent this error  

i share file in 

https://www.dropbox.com/sh/3hckbmog2y1mtem/aM_6FkbqpC

please help me



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-10-07 12:48 UTC] johannes@php.net
-Status: Open +Status: Feedback
 [2013-10-07 12:48 UTC] johannes@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc. If the script requires a 
database to demonstrate the issue, please make sure it creates 
all necessary tables, stored procedures etc.

Please avoid embedding huge scripts into the report.

I do not understand to which error you are referring. Please provide a simple reproducible script and a clear error description.
 [2013-10-07 14:27 UTC] wisans at gmail dot com
-Status: Feedback +Status: Open
 [2013-10-07 14:27 UTC] wisans at gmail dot com
Error random happen in sometime. i capture  some error into file outputError01.htm and outputError02.htm
you can get setChartAccountFrame.php

https://www.dropbox.com/sh/gaxjefvab208ohs/wA1GtAdJIb

or here my code

<?php
function html($s){
   return $s;
}

$aD = array();
for($i=0; $i<=470; $i++){
  $a = array
        (
            "accCodeId" => "441",
            "code" => "5-12-25-00-00",
            "name" => "",
            "nameE" => "",
            "refAccCodeId" => 487,
            "drCr" => "",
            "active" => "",
            "rowOrder" => "",
            "accTypeName" => "",
            "accTypeId" => 5,
            "pcAccCodeRefName" => "", 
            "deep" => 2
        );
    $aD[] = $a;
}
?>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874" />
</head>
<body topmargin="0" leftmargin="0" scroll="no" class="popSubDetail">
<div style="width:100%; height:100%; overflow-y:scroll;">
<?=date("Y-m-d H:i:s")?>
<table width="100%" border="0" cellspacing="0" cellpadding="0" id="tbList">
   <?php
   $line = 0;
   foreach($aD as $v){
      $line++;
   ?>
      <tr class="txtBlack" onMouseOver="" onMouseOut="" style="padding-left:3; cursor:pointer;">
         <td width="8%" height="25" class="tdGreenDetail" >
         <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr class="txtBlack">
               <td align="center"> </td>
               <td align="center" width="60%"><input type="hidden" name="accCodeId" value="<?=($v["accCodeId"])?>"><input type="hidden" name="refAccCodeId" value="<?=($v["refAccCodeId"])?>"><span id="runNo"><?=$line?></span><span id="spanMark"></span></td>
            </tr>
         </table></td>
         <td width="21%" class="tdGreenDetail" id="code"><?=str_repeat("&nbsp;", $v["deep"]*4).($v["code"])?></td>
         <td width="25%" class="tdGreenDetail" id="name" onClick="addItem(this.parentNode)"><?=($v["name"])?>&nbsp;</td>
         <td width="8%" class="tdGreenDetail"  id="nameE" onClick="addItem(this.parentNode)"><?=($v["nameE"])?>&nbsp;</td>
         <td class="tdGreenDetail"  id="accTypeName" onClick="addItem(this.parentNode)"><?=($v["accTypeName"])?>&nbsp;</td>
         <td width="4%" class="tdGreenDetail" align="center" id="rowOrder" onClick="addItem(this.parentNode)"><?=($v["rowOrder"])?>&nbsp;</td>
         <td width="5%" class="tdGreenDetail" align="center" id="drCr" onClick="addItem(this.parentNode)"><?=($v["drCr"])?>&nbsp;</td>
         <td width="14%" class="tdGreenDetail" id="pcAccCodeRefName" onClick="addItem(this.parentNode)"><?=($v["pcAccCodeRefName"])?>&nbsp;</td>
         <td width="5%" class="tdGreenDetail" align="center" id="activeName" onClick="addItem(this.parentNode)"><?=($v["active"]=="T" ? "Active" : "Cancel")?>&nbsp;</td>
      </tr>
      <?php
   }
      ?>
   </table></div>
</body>
</html>
 [2013-10-07 15:39 UTC] wisans at gmail dot com
if i set php.ini output_buffering = On error not happen
if i set php.ini output_buffering = Off error happen
 [2013-12-05 16:58 UTC] mike@php.net
-Status: Open +Status: Duplicate
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 14:01:29 2024 UTC