#32698 [Opn->Bgs]: Initializing a variable twice in class header will stop php without any message
| From: | tony2001@php.net | Date: | Wed, 13 Apr 2005 20:58:44 +0000 |
| Subject: | #32698 [Opn->Bgs]: Initializing a variable twice in class header will stop php without any message | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-77485@lists.php.net to get a copy of this message | ||
ID: 32698
Updated by: tony2001@php.net
Reported By: matr1z at gmx dot net
-Status: Open
+Status: Bogus
Bug Type: Class/Object related
Operating System: Linux
PHP Version: 5.0.4
New Comment:
Set display_errors directive to On and you'll see the fatal error
message.
Previous Comments:
------------------------------------------------------------------------
[2005-04-13 20:35:42] matr1z at gmx dot net
Description:
------------
The bellow script will cause php to stop processing without showing any
warning / error message.
The "ok" will not be shown.
There should be an error message if you try to initialize a class
variable twice.
Reproduce code:
---------------
<?
class Test {
public $test = 'a';
public $test = 'b';
}
print "ok";
?>
Expected result:
----------------
Error message or warning.
Actual result:
--------------
No output. PHP just stops processing.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=32698&edit=1