@@ -1148,19 +1148,6 @@ static void init_request_info(TSRMLS_D)
1148
1148
TRANSLATE_SLASHES (env_document_root );
1149
1149
}
1150
1150
1151
- if (env_path_translated != NULL && env_redirect_url != NULL &&
1152
- env_path_translated != script_path_translated &&
1153
- strcmp (env_path_translated , script_path_translated ) != 0 ) {
1154
- /*
1155
- * pretty much apache specific. If we have a redirect_url
1156
- * then our script_filename and script_name point to the
1157
- * php executable
1158
- */
1159
- script_path_translated = env_path_translated ;
1160
- /* we correct SCRIPT_NAME now in case we don't have PATH_INFO */
1161
- env_script_name = env_redirect_url ;
1162
- }
1163
-
1164
1151
#ifdef __riscos__
1165
1152
/* Convert path to unix format*/
1166
1153
__riscosify_control |= __RISCOSIFY_DONT_CHECK_DIR ;
@@ -1329,7 +1316,7 @@ static void init_request_info(TSRMLS_D)
1329
1316
efree (pt );
1330
1317
}
1331
1318
} else {
1332
- /* make sure path_info/translated are empty */
1319
+ /* make sure original values are remembered in ORIG_ copies if we've changed them */
1333
1320
if (!orig_script_filename ||
1334
1321
(script_path_translated != orig_script_filename &&
1335
1322
strcmp (script_path_translated , orig_script_filename ) != 0 )) {
@@ -1338,16 +1325,6 @@ static void init_request_info(TSRMLS_D)
1338
1325
}
1339
1326
script_path_translated = _sapi_cgibin_putenv ("SCRIPT_FILENAME" , script_path_translated TSRMLS_CC );
1340
1327
}
1341
- if (env_redirect_url ) {
1342
- if (orig_path_info ) {
1343
- _sapi_cgibin_putenv ("ORIG_PATH_INFO" , orig_path_info TSRMLS_CC );
1344
- _sapi_cgibin_putenv ("PATH_INFO" , NULL TSRMLS_CC );
1345
- }
1346
- if (orig_path_translated ) {
1347
- _sapi_cgibin_putenv ("ORIG_PATH_TRANSLATED" , orig_path_translated TSRMLS_CC );
1348
- _sapi_cgibin_putenv ("PATH_TRANSLATED" , NULL TSRMLS_CC );
1349
- }
1350
- }
1351
1328
if (env_script_name != orig_script_name ) {
1352
1329
if (orig_script_name ) {
1353
1330
_sapi_cgibin_putenv ("ORIG_SCRIPT_NAME" , orig_script_name TSRMLS_CC );
0 commit comments