Bug #1968: Misbehaving $PATH_TRANSLATED in conjuction with Apache
| From: | drew at elysium dot ltd dot uk | Date: | Thu, 05 Aug 1999 10:11:01 +0000 |
| Subject: | Bug #1968: Misbehaving $PATH_TRANSLATED in conjuction with Apache | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-9553@lists.php.net to get a copy of this message | ||
From: drew@elysium.ltd.uk
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