[xdebug-dev] Bug 0000126: turn off html output when html_errors = 0

From: <xdebug-dev[@]lists.xdebug.org>
Date: Sun, 8 Oct 2006 21:31:49 +0200

The following bug has been CLOSED
======================================================================
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000126
======================================================================
Reporter: alexhayes
Handler:
======================================================================
Project: Xdebug
Bug ID: 126
Category: Feature/Change request
Reproducibility: always
Severity: trivial
Priority: normal
Status: closed
Operating System: fedora core 3
PHP Version: 4.3.11
Xdebug Version: 2.0.0beta2
======================================================================
Date Submitted: 2005-05-27 06:30 CEST
Last Modified: 2006-10-08 21:31 CEST
======================================================================
Summary: turn off html output when html_errors = 0
Description:
I had a search for this, but couldn't find a bug of this.

When html_errors is set to 0, it would be nice if no html was printed upon
error.

Then seems to function correctly upon the command line, however there are
some instances over http where you need to turn off html output, ie, when
your bug testing a soap server.

Thanks
======================================================================

----------------------------------------------------------------------
 alexhayes - 2005-05-27 06:32 CEST
----------------------------------------------------------------------
sorry, I think that should of been filed under "feature change/request".

----------------------------------------------------------------------
 derick - 2005-05-27 09:32 CEST
----------------------------------------------------------------------
Classified as Feature/Request.
Which exact function exhibits this behavior BTW?

----------------------------------------------------------------------
 alexhayes - 2005-05-27 09:41 CEST
----------------------------------------------------------------------
Not sure exactly. But I can explain how it occurs.

When there is an error, it dumps out a stack trace of the information to
the screen.

Say for example i have the following php file:

<?php eho "balh"; ?>

the following is outputed (html and all, sorry...)

<font size='1'><table border='1' cellspacing='0'>
<tr><th bgcolor='#ee5555' colspan="3">Parse error: <i>parse error,
unexpected T_CONSTANT_ENCAPSED_STRING</i> in
<i>/var/www/vhost/virtual/site19/jail/var/www/html/balh.php</i> on line
<i>1</i></th></tr>

So, im not too sure why this is occuring, or how... but it would be nice
if html_errors was set to 0 that html errors were not outputed.

Note, that for this example, i did try setting the html_errors value in a
.htaccess and not set it using an ini_set (which for this example would not
work, i believe as it is a parse error)

----------------------------------------------------------------------
 derick - 2006-10-08 21:31 CEST
----------------------------------------------------------------------
The code in CVS now listens to the php.ini setting "html_errors".

Bug History
Date Modified Username Field Change
======================================================================
2005-05-27 06:30alexhayes New Bug
2005-05-27 06:30alexhayes Bug Monitored: alexhayes
2005-05-27 06:32alexhayes Bugnote Added: 0000256
2005-05-27 09:32derick Bugnote Added: 0000257
2005-05-27 09:32derick Category Debug client (console) => Feature/Change request
2005-05-27 09:41alexhayes Bugnote Added: 0000258
2006-02-04 17:06derick PHP Version 5.0.3-dev => 4.3.11
2006-02-04 17:06derick Status new => acknowledged
2006-10-08 21:31derick Bugnote Added: 0000471
2006-10-08 21:31derick Status acknowledged => closed
======================================================================
Received on Sun Oct 08 2006 - 21:31:50 BST

This archive was generated by hypermail 2.2.0 : Sun Jun 24 2018 - 04:00:03 BST