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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Wed Apr 23 22:01:29 2025 UTC