Bug #22940
closedChanges in core files for running TYPO3 on OS/2 or eComStation
0%
Description
To get TYPO3 running on OS/2 or eComStation there are little changes needed to change the PHP_OS checks, so that TYPO3 acts like windows and not like *nix when it run under OS/2.
With every TYPO3 update I had to patch the core to fix the PHP_OS checks, so it might be great if these changes could be made into the TYPO3 core.
In these files:
misc\phpcheck\incfile.php - Line 17
t3lib\thumbs.php - Line 69
typo3\init.php - Line 84
typo3\sysext\cms\tslib\index_ts.php - Line 60
typo3\sysext\cms\tslib\showpic.php - Line 67
typo3\sysext\install\mod\class.tx_install_ajax.php - Line 43
you have to change:
define('TYPO3_OS', stristr(PHP_OS,'win')&&!stristr(PHP_OS,'darwin')?'WIN':'');
into:
define('TYPO3_OS', (stristr(PHP_OS,'win')&&!stristr(PHP_OS,'darwin'))||stristr(PHP_OS,'os/2')?'WIN':'');
In this file:
t3lib\class.t3lib_extmgm.php - Line 842
you have to change:
$os_type = stristr(PHP_OS, 'win')&&!stristr(PHP_OS, 'darwin')?'WIN':'UNIX';
into:
$os_type = (stristr(PHP_OS, 'win')&&!stristr(PHP_OS, 'darwin'))||stristr(PHP_OS,'os/2')?'WIN':'UNIX';
In this File:
typo3\cli_dispatch.phpsh - Line 79
you have to change:
if (stristr(PHP_OS,'win') && !stristr(PHP_OS,'darwin')) {
into:
if ((stristr(PHP_OS,'win') && !stristr(PHP_OS,'darwin')))||stristr(PHP_OS,'os/2') {
In these files:
typo3\sysext\adodb\adodb\adodb-csvlib.inc.php - Line 280
typo3\sysext\adodb\adodb\adodb-pear.inc.php - Line 364
typo3\sysext\adodb\adodb\drivers\adodb-odbc_db2.inc.php - Line 115
you have to change:
... (strncmp(PHP_OS,'WIN',3) === 0) ...
into:
... (strncmp(TYPO3_OS,'WIN',3) === 0) ...
or
... ((strncmp(PHP_OS,'WIN',3) === 0) || (strncmp(PHP_OS,'OS/2',4) === 0)) ...
depending on the availability of the variable TYPO3_OS at that point, what I haven't check yet.
(issue imported from #M14796)
Files
Updated by Francois Suter over 14 years ago
I took a quick look at these changes and what it really
points to IMO is that we should have a method that checks the OS rather
than having this test repeated several times throughout the Core. So
ideally what you should come up with is a method that would replace
these checks (something isWinOS() or whatever).
Updated by Michael Oehlhof over 14 years ago
Added diff files for 4.3.3 and also for the new 4.4.0
Updated by Nikolas Hagelstein over 14 years ago
Francois: issn't this issue a good starting point to introduce a new utility class handling "server side environment " - stuff?
Updated by Francois Suter over 14 years ago
Nikolas: sure, that would be useful.
Updated by Alexander Opitz over 10 years ago
- Status changed from New to Needs Feedback
- Target version deleted (
0) - Is Regression set to No
Hi,
as this issue is very old. Is the OS/2 or eComStation support needed any more?
New versions of PHP seams to be available: http://os2ports.smedley.id.au/index.php?page=php-5-5
Updated by Michael Oehlhof over 10 years ago
Hi,
for me it is not needed any more. I don't know if someone out there needs it.
I know the OS2Ports, because I have made the AMP4eCS (like LAMP) Package, (http://www.amp4ecs.de) in the past.
(Last update in December 2012)
Because of using a computer for doing work with it and not for working with the operating system itself, I have switched over using MacOS for web development.
Also the last update of the project "TYPO3 goes eComStation" (http://os4you.org/typo3goesecomstation.html) was a long time ago.
To cut a long story short, you can close this item.
Updated by Alexander Opitz over 10 years ago
- Status changed from Needs Feedback to Rejected
Ok closing this issue as rejected.
If someone wants to do a OS/2 or eComStation compatible version, please create a new issue and assign it to your self.