#30208 [Fbk->NoF]: Strange Notice when trying to define the same constant twice

From: Date: Wed, 06 Oct 2004 23:00:05 +0000
Subject: #30208 [Fbk->NoF]: Strange Notice when trying to define the same constant twice
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-67213@lists.php.net to get a copy of this message
ID: 30208 Updated by: php-bugs@lists.php.net Reported By: jaenecke@php.net -Status: Feedback +Status: No Feedback Bug Type: Scripting Engine problem Operating System: Slackware Linux PHP Version: 4.3.8 New Comment: No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". Previous Comments: ------------------------------------------------------------------------ [2004-09-28 22:49:32] sniper@php.net I can not reproduce with latest CVS. And what might have been your configure line?? With --enable-debug or not? Some wierd optimizations set for gcc?? etc. etc.. (People with @php.net addresses REALLY should know better to send better bug reports..) ------------------------------------------------------------------------ [2004-09-23 15:53:22] jaenecke@php.net Description: ------------ Redefining a constant in a required file produces a strange Notice. This occurs on Commandline and Modul (both 4.3.8) Reproduce code: --------------- File main.php: <?PHP error_reporting( E_ALL ); define( 'FOO', 'MAIN' ); require_once( './sub.php' ); echo FOO; ?> File sub.php: <?PHP define( 'FOO', 'SUB' ); ?> Expected result: ---------------- I would expect the Notice to complain about redefining FOO, not some weird chars. Actual result: -------------- Executing main.php (Commandline or Modul) I get ouptut like: Notice: Constant ;f@ already defined in [...]/sub.php on line 2 MAIN The weird chars for the constant name differ. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=30208&edit=1

« previous php.bugs (#67213) next »