Re: cvs: php4 /sapi/apache2filter sapi_apache2.c /sapi/apache2handler sapi_apache2.c

From: Date: Wed, 14 May 2003 07:03:37 +0000
Subject: Re: cvs: php4 /sapi/apache2filter sapi_apache2.c /sapi/apache2handler sapi_apache2.c
References: 1  Groups: php.cvs 
Request: Send a blank email to php-cvs+get-20890@lists.php.net to get a copy of this message
This is incorrect behaviour for PATH_TRANSLATED. PATH_TRANSLATED is the translated path of PATH_INFO, *not* of the script being executed. See http://cgi-spec.golux.com/ Shane Moriyoshi Koizumi wrote:
moriyoshi Tue May 13 15:33:36 2003 EDT
php_register_variable("PHP_SELF", ctx->r->uri, track_vars_array TSRMLS_CC); + + /* If PATH_TRANSLATED doesn't exist, copy it from SCRIPT_FILENAME */ + if (!zend_hash_exists(Z_ARRVAL_P(track_vars_array), "PATH_TRANSLATED", sizeof("PATH_TRANSLATED")) + && zend_hash_find(Z_ARRVAL_P(track_vars_array), "SCRIPT_FILENAME", sizeof("SCRIPT_FILENAME"), (void **) &path_translated_zv) == SUCCESS) { + php_register_variable("PATH_TRANSLATED", Z_STRVAL_PP(path_translated_zv), track_vars_array TSRMLS_CC); + } }


« previous php.cvs (#20890) next »