|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2013-06-14 13:24 UTC] gnjagi at gmail dot com
Description:
------------
if($eta!=''){$flt_type='1'} else {$flt_type='2'}
when the semicolons r missing on $flt_type='1' and $flt_type='2'
the script gives no error message no matter the error reporting setting
the page simply displays a blank page
Test script:
---------------
if($eta!=''){$flt_type='1'} else {$flt_type='2'}
Expected result:
----------------
missing semicolons
Actual result:
--------------
blank page
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 08:00:01 2025 UTC |
You need to check where your errors are being logged to. This definitely generates an error. eg. <?php error_reporting(-1); if($eta!=''){$flt_type='1'} else {$flt_type='2'} Parse error: syntax error, unexpected '}' in test on line 3This error gives a blank screen gives no error message for if($eta!=''){ and if($eta!=''){$flt_type='1'}