ID:               16281
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Closed
 Bug Type:         Scripting Engine problem
 Operating System: FreeBSD 4.4
 PHP Version:      4.1.1
 New Comment:

The constant 'RS_CLASSPATH' suffered the same problem; it also changed
value.  Since we had been using both 'RS_FUNCTIONPATH' and
'RS_CLASSPATH' I got suspicious and decided to restart the Apache
deamon with PHP compiled in it and the problem disappeared.  Very
strange though.


Previous Comments:
------------------------------------------------------------------------

[2002-03-26 05:01:03] [EMAIL PROTECTED]

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 this bug report at http://bugs.php.net/?id=16281&edit=1

Reply via email to