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

From: Date: Fri, 14 Jun 2013 14:55:50 +0000
Subject: Bug #65040 [Nab]: No error message reported and entire script fails
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-179565@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
 Updated by:         rasmus@php.net
 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:

Then you are looking in the wrong place. These all generate errors.
Turn on display_errors in your ini to verify.


Previous Comments:
------------------------------------------------------------------------
[2013-06-14 14:06:51] gnjagi at gmail dot com

echo ddss";
This statement also returns no error and gives a blank page
same as 
echos "ddss";
test "xccc";

------------------------------------------------------------------------
[2013-06-14 13:58:59] gnjagi at gmail dot com

From my end even if i set my error reporting to E_ALL | E_STRICT  there is no error message  and
nothing on the log file

------------------------------------------------------------------------
[2013-06-14 13:51:29] gnjagi at gmail dot com

This error gives a blank screen gives no error message for

if($eta!=''){

and
if($eta!=''){$flt_type='1'}

------------------------------------------------------------------------
[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


Thread (6 messages)

« previous php.bugs (#179565) next »