[TYPO3-core] RFC #15075: feature: make a pre-check for required php-extensions

Jigal van Hemert jigal at xs4all.nl
Mon Aug 2 21:56:22 CEST 2010


Attached version 4

Xavier Perseguers wrote:
> I don't remember the whole thread but basically there is already a list 
> of required _db_ modules within DBAL's hook into install tool. As long 
> as the list of required ext may be overriden by DBAL, it's fine to have 
> mysql as requirement in Core.

The list is now stored in a class variable. Should be easy to 
override/expand this.

> Best would be to have a concept of "these extensions are all required" 
> and "at least one of following set of extensions is required". This 
> would allow DBAL to say one DB driver is required or in Core either 
> mbstring or iconv is required.

This is supported by using sub-arrays:

$requiredModules = array (
	'SPL',
	'zlib',
	array (
		'mssql',
		'mysql'
	),
	'pcre',
);

If the check encounters an array it will check if at least one of the 
items is present. If not the items in the array will be presented with 
the message that one of them is needed.

How to test
-----------
Remove one of the needed modules, or

Add some fake items to the array:

$requiredModules = array (
	'dummy',
	array (
		'plaap',
		'blarg'
	)
);

-- 
Jigal van Hemert
skype:jigal.van.hemert
msn: jigal at xs4all.nl
http://twitter.com/jigalvh
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 15075_v4.diff
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100802/1586ead6/attachment.txt>


More information about the TYPO3-team-core mailing list