Project

General

Profile

Actions

Feature #14168

closed

Install fails, Mem too small. Actually get_cfg_var problem

Added by old_cowen over 20 years ago. Updated over 18 years ago.

Status:
Closed
Priority:
Should have
Category:
Install Tool
Target version:
-
Start date:
2004-05-16
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

Install fails, as PHP procedure get_cfg_var does not return any values of config variables. This makes Install complain there is not enough memory.

According to PHP documentation get_cfg_var doesn;t always return config values, it depends how they were set up. I assume this host was not set up the right way..

Solved by replacing get_cfg_var with ini_get in module class.t3lib_install.php. This returns the same value, but always works. ini_get is also used elsewhere in Typo3.
Would it make sense to use it in class.t3lib_install.php as well
(issue imported from #M95)

Actions #1

Updated by Ingmar Schlecht over 20 years ago

I just read the comments on http://de.php.net/manual/en/function.get-cfg-var.php and it's true that what we want is actually ini_get() and not get_cfg_var() so I would change all occurrences of the function get_cfg_var() in the source code of Typo3 to ini_get().

Actions #2

Updated by Robert Lemke over 20 years ago

Hey Ingmar,

seems to make sense. I suggest you just drop Kasper a note and either let him search and replace it or do it yourself ...

Actions #3

Updated by Ingmar Schlecht over 20 years ago

I have fixed this in CVS already so it'll be in 3.6.2.

Actions

Also available in: Atom PDF