[PHP-DEV] Bug #1968: Misbehaving $PATH_TRANSLATED in conjuction with Apache From: drew <email protected>
Date: 08/05/99

From: drew <email protected>
Operating system: Linux RH 6.0
PHP version: 3.0.12
PHP Bug Type: Misbehaving function
Bug description: Misbehaving $PATH_TRANSLATED in conjuction with Apache

I am getting some odd values for $PATH_TRANSLATED (differing to the value printed by phpinfo()) - I was wondering what the following code snippet from main.c is trying to accomplish and why ?

                /* insert special variables */
                if (_php3_hash_find(&GLOBAL(symbol_table), "SCRIPT_FILENAME", sizeof("SCRIPT_FILENAME"), (void **) & tmp_ptr) == SUCCESS) {
                        tmp2 = *tmp_ptr;
                        pval_copy_constructor(&tmp2);
                        _php3_hash_update(&GLOBAL(symbol_table), "PATH_TRANSLATED", sizeof("PATH_TRANSLATED"), (void *) & tmp2, sizeof(pval), NULL);
                }

I know is copies the value of SCRIPT_FILENAME to PATH_TRANSLATED - It just doesnt follow Apaches values for these variables.

Rgds Drew Wells

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>