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
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: mdhp at gmx dot de
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Sun Jan 05 06:01:27 2025 UTC