From:             s dot tretter at szene1 dot at
Operating system: Linux
PHP version:      5.3.0alpha1
PHP Bug Type:     *General Issues
Bug description:  Cannot declare self-referencing constant

Description:
------------
The problem is that the same script worked in php5.2.6, but in php5.3 it
results in a "Fatal error: Cannot declare self-referencing constant 'n61'
in ..."

There is an array that uses many constants to set the array with values.
If I execute a method of the class this error message stops the
execution..but the line of the code has nothing todo with this array!
strange error... just let me send my test code, u will see it yourself.
If i modify the array, remove the lines that php is complain about, some
lines and so on.. it works.. but these lines are not differnt to the ohter
lines..!? I don't understand it.

Also tried with latest cvs snapshot

Reproduce code:
---------------
I have a test script, but I don't wanna publish the code... May I send it
directly to a php developer?

Expected result:
----------------
like in php5.2.6 this code should work!

Actual result:
--------------
Fatal error: Cannot declare self-referencing constant 'n61' in
/..../test.php on line 132


-- 
Edit bug report at http://bugs.php.net/?id=45910&edit=1
-- 
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=45910&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=45910&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=45910&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=45910&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=45910&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=45910&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=45910&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=45910&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=45910&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=45910&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=45910&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=45910&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=45910&r=globals
PHP 4 support discontinued:   http://bugs.php.net/fix.php?id=45910&r=php4
Daylight Savings:             http://bugs.php.net/fix.php?id=45910&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=45910&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=45910&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=45910&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=45910&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=45910&r=mysqlcfg

Reply via email to