Bug #65040 [Com]: No error message reported and entire script fails

From: Date: Fri, 14 Jun 2013 13:51:29 +0000
Subject: Bug #65040 [Com]: No error message reported and entire script fails
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-179562@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=65040&edit=1 ID: 65040 Comment by: gnjagi at gmail dot com Reported by: gnjagi at gmail dot com Summary: No error message reported and entire script fails Status: Not a bug Type: Bug Package: *General Issues Operating System: windows PHP Version: Irrelevant Block user comment: N Private report: N New Comment: This error gives a blank screen gives no error message for if($eta!=''){ and if($eta!=''){$flt_type='1'} Previous Comments: ------------------------------------------------------------------------ [2013-06-14 13:28:53] rasmus@php.net 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 3 ------------------------------------------------------------------------ [2013-06-14 13:24:37] 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 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=65040&edit=1

« previous php.bugs (#179562) next »