|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2008-07-28 13:58 UTC] sergey89 at gmail dot com
Description:
------------
I evaluate broken script with eval function. If display_errors is On i get status 200 in http response, but if is Off i get status 500. It is normal behaviour? error.log is empty.
Reproduce code:
---------------
<?php
ini_set('log_errors', 1);
ini_set('display_errors', 0);
eval('some)broken-code|');
Expected result:
----------------
HTTP/1.x 200 Ok
Actual result:
--------------
HTTP/1.x 500 Internal Server Error
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 14:00:01 2025 UTC |
Where is the logic? --- <?php print 123; ob_flush(); ini_set('display_errors', 0); eval('aa|bb/cc'); Out: 123 and status 200 --- <?php print 123; ini_set('display_errors', 0); eval('aa|bb/cc'); Out: 123 and status 500