From: [EMAIL PROTECTED] Operating system: Red Hat Linux 7.1 PHP version: 4.2.0 PHP Bug Type: Variables related Bug description: Constants not being interpreted in "variable variables"
Constants do not appear to be interpreted properly in the following context: ${CONSTANT} I found this problem with the following code: <?php if (PHP_VERSION < '4.1.0') { define ('_GET', 'HTTP_GET_VARS'); // etc. } else { define ('_GET', '_GET'); // etc. } print_r (${_GET}); ?> This should print out the $_GET hash in 4.2.0RC4, but it prints nothing. A quick check of the _GET constant shows that it does contain the proper value. I compile php with: './configure' '--with-pgsql=shared' '--with-gd' '--with-mysql=/usr/local/mysql' '--with-apxs2=/usr/local/apache2/bin/apxs' '--enable-shmop' '--enable-xslt' '--with-xslt-sablot' Thanks! -- Edit bug report at http://bugs.php.net/?id=16687&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=16687&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=16687&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=16687&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=16687&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=16687&r=support Expected behavior: http://bugs.php.net/fix.php?id=16687&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=16687&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=16687&r=submittedtwice