php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29513 no error reporting if error in code block
Submitted: 2004-08-03 23:55 UTC Modified: 2004-08-22 01:00 UTC
From: drmaples at gmail dot com Assigned:
Status: No Feedback Package: Scripting Engine problem
PHP Version: 5.0.0 OS: linux
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: drmaples at gmail dot com
New email:
PHP Version: OS:

 

 [2004-08-03 23:55 UTC] drmaples at gmail dot com
Description:
------------
no errors are reported even though explicitly stated to report errors.  removing the 2nd echo statement allows the error to be reported.


'./configure' '--with-mysql=/usr/local/mysql' '--with-apxs2=/usr/local/apache2/bin/apxs' '--enable-wddx' '--with-xmlrpc' '--enable-exif' '--with-oci8=/usr/lib/oracle/10.1.0.2/client' '--enable-sigchild' '--with-gd' '--with-zlib-dir=/usr/include' '--with-jpeg-dir=/usr/include' '--enable-gd-native-ttf' '--with-ttf=/usr/include/freetype' '--with-freetype-dir=/usr/include/freetype2' '--enable-sockets'

Reproduce code:
---------------
<?php
	error_reporting(E_STRICT | E_ALL);
	echo $is_this 
	echo $an_error
?>

Expected result:
----------------
have an error reported that a semicolon is expected

Actual result:
--------------
nothing prints to screen at all

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-08-04 07:54 UTC] derick@php.net
Works fine for me:
derick@kossu:~$ php

<?php
        error_reporting(E_STRICT | E_ALL);
        echo $is_this
        echo $an_error
?>

Parse error: syntax error, unexpected T_ECHO, expecting ',' or ';' in - on line 4

 [2004-08-22 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 07:01:29 2024 UTC