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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Fri May 09 15:01:27 2025 UTC