From:             [EMAIL PROTECTED]
Operating system: FreeBSD 4.4
PHP version:      4.1.1
PHP Bug Type:     Scripting Engine problem
Bug description:  Constant 'RS_FUNCTIONPATH' changes value

Using the following scriptfile 'test.php':

   <?php
     define('RS_FUNCTION'     , 'x');
     define('RS_FUNCTION_PATH', 'x');
     define('RS_FUNCTIONPATH' , 'x');
     define('RS_TEST'         , 'x');
   ?>
   <html>
     <head><title>RS_FUNCTIONPATH</title></head>
     <body>
       RS_FUNCTION: <?php print constant('RS_FUNCTION'); ?><br>
       RS_FUNCTION_PATH: <?php print constant('RS_FUNCTION_PATH'); ?><br>
       RS_FUNCTIONPATH: <?php print constant('RS_FUNCTIONPATH'); ?><br>
       RS_TEST: <?php print constant('RS_TEST'); ?><br>
     </body>
   </html>

One would expect the following output at all times:

   RS_FUNCTION: x
   RS_FUNCTION_PATH: x
   RS_FUNCTIONPATH: x
   RS_TEST: x

But when I keep refreshing the page (holding the F5-key down in Internet
Explorer), within 30 seconds the constant 'RS_FUNCTIONPATH' starts
changing value to 'csmFirstond' or 'PATHNCTIONPAT':

   RS_FUNCTION: x
   RS_FUNCTION_PATH: x
   RS_FUNCTIONPATH: PATHNCTIONPAT
   RS_TEST: x

It's only the constant with the exact name 'RS_FUNCTIONPATH'; the others
constants don't change but are there for comparison.  I haven't been able
to reproduce this problem on FreeBSD/PHP 4.0.6 or Windows 98/PHP 4.1.1. 
The PHP configuration on the offending FreeBSD server is this:

 './configure' '--with-mysql=/system/mysqld'
'--with-apache=../apache_1.3.23/' '--enable-track-vars' '--enable-ftp'
'--enable-xslt' '--with-xslt-sablot' '--with-sybase=/usr/local/freetds'
'--with-dom' '--with-zlib-dir=/usr/include/'


Freddy Vulto
-- 
Edit bug report at http://bugs.php.net/?id=16281&edit=1
-- 
Fixed in CVS:        http://bugs.php.net/fix.php?id=16281&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=16281&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=16281&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=16281&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=16281&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=16281&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=16281&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=16281&r=submittedtwice

Reply via email to