php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #65040 No error message reported and entire script fails
Submitted: 2013-06-14 13:24 UTC Modified: 2013-06-14 14:55 UTC
From: gnjagi at gmail dot com Assigned:
Status: Not a bug Package: *General Issues
PHP Version: Irrelevant OS: windows
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: gnjagi at gmail dot com
New email:
PHP Version: OS:

 

 [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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-06-14 13:28 UTC] rasmus@php.net
-Status: Open +Status: Not a bug
 [2013-06-14 13:28 UTC] 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:51 UTC] 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:58 UTC] 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 14:06 UTC] 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 14:55 UTC] rasmus@php.net
Then you are looking in the wrong place. These all generate errors.
Turn on display_errors in your ini to verify.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 27 12:01:33 2024 UTC