php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29498 E_STRICT doesn't work
Submitted: 2004-08-02 21:15 UTC Modified: 2004-08-02 21:22 UTC
From: php at cybertinus dot nl Assigned:
Status: Not a bug Package: PHP options/info functions
PHP Version: 5.0.0 OS: Windows XP Pro and Red Hat 8
Private report: No CVE-ID: None
 [2004-08-02 21:15 UTC] php at cybertinus dot nl
Description:
------------
As soon as you have E_STRICT in your error_reporting line (In your code, or in php.ini, it's all the same) and you have an error, all that is returned by the code is the Actual result. It doesn't matter if you have more code, or HTML before PHP. This is all you get.

Reproduce code:
---------------
<?php
error_reporting(E_ALL & E_STRICT);
echo $foo;
?>

Expected result:
----------------
In HTML:
<br />
<b>Notice</b>: Udefined variable: foo in <b>/var/www/html/<above_code>.php</b> on line <b>3</b><br />

Actual result:
--------------
In HTML:
<html><body></body></html>

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-08-02 21:22 UTC] mgf@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

Your code sets error reporting to 0 (zero).  Go look again at the meaning of the bitwise and operator.
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Mon Aug 10 19:01:25 2020 UTC