#28830 [Opn->Bgs]: Notice reporting E_ALL for not initialized vars
| From: | mdhp at gmx dot de | Date: | Fri, 18 Jun 2004 14:20:39 +0000 |
| Subject: | #28830 [Opn->Bgs]: Notice reporting E_ALL for not initialized vars | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-61068@lists.php.net to get a copy of this message | ||
ID: 28830
User updated by: mdhp at gmx dot de
Reported By: mdhp at gmx dot de
-Status: Open
+Status: Bogus
Bug Type: *General Issues
Operating System: linux
PHP Version: 5.0.0RC3
New Comment:
My mistake... please forget my error report :-(
In html page the notice will be displayed in form tag
Previous Comments:
------------------------------------------------------------------------
[2004-06-18 16:10:13] 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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=28830&edit=1