ID: 30208 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -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] [EMAIL PROTECTED] 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] [EMAIL PROTECTED] 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 ;[EMAIL PROTECTED] 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