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

Felix Kopp — PHORAX typo3-core at phorax.com
Mon Jul 12 00:09:39 CEST 2010


hi jigal,

why not use get_loaded_extensions()+array or extension_loaded('…')+ifs?

in this case a not loaded extension but user created function (somehow included, unlikely) would not return TRUE.

plus performance should be little faster due to less lookupsss.

warm regards,
felix*





------------------------------
..............................

TYPO3 aus Hamburg.
Certified TYPO3 Integrator

TYPO3 Association Supporting Member

------------------------------


On 11.07.2010, at 19:53, Jigal van Hemert wrote:

> Hi,
> 
> This is a SVN patch request.
> 
> Type: Feature
> 
> BT reference: http://bugs.typo3.org/view.php?id=15075
> 
> Branches: trunk
> 
> Problem:
> TYPO3 needs a series of PHP modules to function. These modules are included in default PHP installations, but in case a server uses a custom configuration of PHP some of these modules might be missing.
> This will lead to all kinds of error messages.
> 
> Solution:
> Add a test in the 1-2-3 installer which checks if the modules are compiled with PHP. If one or more tests fail the script aborts with a message showing the module(s) which are missing.
> 
> How to test:
> Recompile PHP without one or more of the following modules:
> filter, gd, json, mysql, pcre, session, spl, xml parser, zlib.
> Simulation: modify the checks in tx_install::getMissingPHPModules()
> 
> -- 
> Jigal van Hemert
> skype:jigal.van.hemert
> msn: jigal at xs4all.nl
> http://twitter.com/jigalvh
> 



More information about the TYPO3-team-core mailing list