php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28830 Notice reporting E_ALL for not initialized vars
Submitted: 2004-06-18 16:10 UTC Modified: 2004-06-18 16:20 UTC
From: mdhp at gmx dot de Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 5.0.0RC3 OS: linux
Private report: No CVE-ID: None
 [2004-06-18 16:10 UTC] mdhp at gmx dot de
Description:
------------
When you set error_reporting to E_ALL only, not initalized vars displayed with a notice on screen.

But when a var is in quote of html no error will be displayed, is that an error???

Reproduce code:
---------------
<?
class abc
{

function foo()
{
  echo $actionLink; // displays notice correct in line 7
  // but in the following line no notice displayed
?>
<form name="form1" action="<? echo $actionLink; ?>" method="post">
<?
  echo $actionLink; // displays notice correct for this line
} // foo

} // class abc

abc::foo();
?>

Expected result:
----------------
3 Notices
In line 7, 10 and 12


Actual result:
--------------
2 Notices
In line 7 and 12

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-06-18 16:20 UTC] mdhp at gmx dot de
My mistake... please forget my error report :-(

In html page the notice will be displayed in form tag
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 27 11:01:31 2024 UTC