ID: 24253 Comment by: legion at altlinux dot ru Reported By: tim at digicol dot de Status: Closed Bug Type: Scripting Engine problem Operating System: Red Hat 7.3 (Linux 2.4.18-3) PHP Version: 4.3.3RC1 New Comment:
I download php4-STABLE-20030624 and find this bug. Configure command: ./configure --without-included-gettext --without-mysql --with-apxs=/usr/sbin/apxs --with-mod_charset --with-layout=gnu --disable-static --disable-rpath --disable-debug --enable-pic --enable-inline-optimization --prefix=/usr --with-zlib=/usr --disable-magic-quotes --enable-safe-mode --with-regex=system --enable-sysvsem --enable-sysvshm --with-mm --with-dbase --with-filepro --enable-ftp --enable-xml --with-expat-dir=/usr --enable-wddx --with-gettext --enable-yp --enable-calendar --enable-bcmath --enable-ctype --with-iconv --enable-session Apache version: 1.3.27rusPL30.16 Reproduce code is same. Previous Comments: ------------------------------------------------------------------------ [2003-06-20 12:00:32] [EMAIL PROTECTED] This bug has been fixed in CVS. In case this was a PHP problem, snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. In case this was a documentation problem, the fix will show up soon at http://www.php.net/manual/. In case this was a PHP.net website problem, the change will show up on the PHP.net site and on the mirror sites in short time. Thank you for the report, and for helping us make PHP better. ------------------------------------------------------------------------ [2003-06-19 03:43:23] tim at digicol dot de Description: ------------ My PHP is compiled statically into Apache 1.3.27: ./configure --with-mysql --with-oracle --with-oci8 --enable-sigchild --with-db3 --with-ldap --with-zlib --with-gd --with-mcrypt=/usr/local/libmcrypt-2.5.7 --with-curl=/usr/local --with-apache=/usr/local/apache_1.3.27 In PHP 4.3.3RC1, the variables $DOCUMENT_ROOT and $PHP_SELF seem to have disappeared completely, even if register_globals is on. Accessing these variables through $_SERVER or $HTTP_SERVER_VARS works fine. In PHP 4.3.2 (and - to my knowledge - in all previous 3.x and 4.x versions), $DOCUMENT_ROOT and $PHP_SELF are there as long as register_globals is on. This breaks backwards compatibility quite awfully. Any chance that this change will be reverted? (If not, please at least make a big note in the NEWS/ChangeLog...) I'm no C programmer and I don't understand what's going on there, but I saw that php4/main/php_variables.c had been changed... Reproduce code: --------------- register_globals: "<?=ini_get('register_globals')?>" $PHP_SELF: "<?=$PHP_SELF?>" $_SERVER[ PHP_SELF ]: "<?=$_SERVER[ 'PHP_SELF' ]?>" $DOCUMENT_ROOT: "<?=$DOCUMENT_ROOT?>" $_SERVER[ DOCUMENT_ROOT ]: "<?=$_SERVER[ 'DOCUMENT_ROOT' ]?>" Expected result: ---------------- register_globals: "1" $PHP_SELF: "/test.php" $_SERVER[ PHP_SELF ]: "/test.php" $DOCUMENT_ROOT: "/home/www" $_SERVER[ DOCUMENT_ROOT ]: "/home/www" Actual result: -------------- register_globals: "1" $PHP_SELF: "" $_SERVER[ PHP_SELF ]: "/test.php" $DOCUMENT_ROOT: "" $_SERVER[ DOCUMENT_ROOT ]: "/home/www" ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=24253&edit=1
