Error message regarding headers_sent not shown anymore

A place to report and discuss bugs - please mention CMSimple-version, server, platform and browser version
Post Reply
cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Error message regarding headers_sent not shown anymore

Post by cmb » Fri Mar 06, 2015 1:03 pm

Hello Community,

since CMSimple_XH 1.6 an explicit error message is displayed, when HTTP headers were sent early, displaying the respective file and line number. Due to a regression bug in CMSimple_XH 1.6.5 (r1457) this valuable error message is now suppressed. The problem is, that I had replaced exit with XH_exit() for unit testing purposes, but XH_exit() does ignore the $status parameter. The simple solution would be to add an optional $status parameter to XH_exit() and pass that on to exit. I don't expect any BC breaks.

I have committed the bug fix against the trunk (r1496) and the 1.6 branch (r1497).
Christoph M. Becker – Plugins for CMSimple_XH

Post Reply