Project

General

Profile

Actions

Bug #14454

closed

suphp and php_sapi_name()

Added by old_GerbenVersluis almost 20 years ago. Updated about 18 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend API
Target version:
-
Start date:
2004-12-16
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
3.6.2
PHP Version:
4
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

suphp resolves here with "cgi" for the function php_sapi_name(); This is used in t3lib/class.t3lib_div.php

install suphp
call the backend (www.website.my/typo3/index.php)

I did the following to fix it:

t3lib/class.t3lib_div.php

case 'SCRIPT_NAME':
return php_sapi_name()=='cgi' ? $HTTP_SERVER_VARS['PATH_INFO'] : $HTTP_SERVER_VARS['SCRIPT_NAME'];
break;

< case 'SCRIPT_NAME':
< return ($HTTP_SERVER_VARS['SCRIPT_NAME']) ? $HTTP_SERVER_VARS['SCRIPT_NAME'] : $HTTP_SERVER_VARS['PATH_INFO'];
< break;

(issue imported from #M617)

Actions #1

Updated by old_GerbenVersluis almost 20 years ago

Should be closed since the solution is given :D

Actions #2

Updated by Mathias Schreiber over 18 years ago

TYPO3 Version too old.
The reported version is no longer maintained.

If this bug still persists in 4.0.1, please re-open it again and set the field "Product Version" to the corresponding version.

Actions

Also available in: Atom PDF