eZPublish  3.9
ezsetuptests.php File Reference

Functions

 eZSetupCheckExecutable ($type, &$arguments)
 
 eZSetupCheckGDVersion ($type, &$arguments)
 
 eZSetupCheckMagicQuotes ($type, &$arguments)
 
 eZSetupCheckMagicQuotesRuntime ($type, &$arguments)
 
 eZSetupCheckRegisterGlobals ($type, &$arguments)
 
 eZSetupCheckTestFunctions ($type, &$arguments)
 
 eZSetupConfigVariable ($type, $name)
 
 eZSetupConfigVariableArray ($type, $name)
 
 eZSetupImageConfigVariableArray ($type, $name)
 
 eZSetupMBStringExtension ($type, &$arguments)
 
 eZSetupPrvPosixExtension ()
 
 eZSetupPrvtAreDirAndFilesWritable ($dir)
 
 eZSetupPrvtExtractExtraPaths (&$givenPersistentList)
 
 eZSetupPrvtVersionCompare ($versionArray1, $versionArray2)
 
 eZSetupRunTests ($testList, &$arguments, $client, &$givenPersistentList)
 
 eZSetupTestAcceptPathInfo ($type, &$arguments)
 
 eZSetupTestAllowURLFOpen ($type, &$arguments)
 
 eZSetupTestDirectoryPermissions ($type, &$arguments)
 
 eZSetupTestExecutionTime ($type, &$arguments)
 
 eZSetupTestExtension ($type, &$arguments)
 
 eZSetupTestFilePermissions ($type, &$arguments)
 
 eZSetupTestFileUpload ($type, &$arguments)
 
 eZSetupTestFunctionExists ($type, &$arguments)
 
 eZSetupTestInstaller ()
 
 eZSetupTestMemLimit ($type, &$arguments)
 
 eZSetupTestOpenBasedir ($type, &$arguments)
 
 eZSetupTestPhpVersion ($type, &$arguments)
 
 eZSetupTestSafeMode ($type, &$arguments)
 
 eZSetupTestTable ()
 
 testPHPIni ($parameters)
 

Variables

const EZ_SETUP_TEST_FAILURE 2
 
const EZ_SETUP_TEST_SUCCESS 1
 

Function Documentation

eZSetupCheckExecutable (   $type,
$arguments 
)

Test if a program can be found in our path and is executable

eZSetupCheckGDVersion (   $type,
$arguments 
)

Test GD version

eZSetupCheckMagicQuotes (   $type,
$arguments 
)
eZSetupCheckMagicQuotesRuntime (   $type,
$arguments 
)
eZSetupCheckRegisterGlobals (   $type,
$arguments 
)
eZSetupCheckTestFunctions (   $type,
$arguments 
)
eZSetupImageConfigVariableArray (   $type,
  $name 
)

Referenced by eZSetupCheckExecutable().

eZSetupMBStringExtension (   $type,
$arguments 
)

Test if mbstring is available

eZSetupPrvPosixExtension ( )

Figures out current user and group running the system by using the posix extension. If this is not available has_extension is set to false.

Returns
An array with information, if no extension is found only has_extension is set.

Referenced by eZSetupTestDirectoryPermissions(), eZSetupTestFilePermissions(), and eZSetupTestFileUpload().

eZSetupPrvtAreDirAndFilesWritable (   $dir)

Check if a given directory and all files within that directory are writable

Referenced by eZSetupTestDirectoryPermissions(), and eZSetupTestFilePermissions().

eZSetupPrvtExtractExtraPaths ( $givenPersistentList)

Referenced by eZSetupRunTests().

eZSetupPrvtVersionCompare (   $versionArray1,
  $versionArray2 
)

Check if two version arrays are equel, greater or less than each other

Parameters
userfirst version array
secondversion array
Returns
< 0 if 1. version less than 2. version 0 if versions are equal > 0 if 1. version is greater than 2. version

Referenced by eZSetupTestPhpVersion().

eZSetupRunTests (   $testList,
$arguments,
  $client,
$givenPersistentList 
)
eZSetupTestAcceptPathInfo (   $type,
$arguments 
)

Test if Apache setting for AcceptPathInfo is enabled

eZSetupTestAllowURLFOpen (   $type,
$arguments 
)

Test if allowed to open URLs using fopen

eZSetupTestDirectoryPermissions (   $type,
$arguments 
)

Test file permissions

eZSetupTestExecutionTime (   $type,
$arguments 
)

Check the php.ini file to get timeout limit

eZSetupTestExtension (   $type,
$arguments 
)

Test if the extensios are loaded

eZSetupTestFilePermissions (   $type,
$arguments 
)
eZSetupTestFileUpload (   $type,
$arguments 
)
eZSetupTestFunctionExists (   $type,
$arguments 
)
eZSetupTestInstaller ( )

Check if setup is installed using windows or linux installer

Returns
'linux' if using linux installer, 'windows' if using windows installer, false if not using any installer

Referenced by eZStepDatabaseChoice\init(), and eZStepSiteAccess\init().

eZSetupTestMemLimit (   $type,
$arguments 
)

Checks the php.ini file to see if the memory limit is set high enough

eZSetupTestOpenBasedir (   $type,
$arguments 
)
eZSetupTestPhpVersion (   $type,
$arguments 
)

Test if PHP version is equal or greater than required version

eZSetupTestSafeMode (   $type,
$arguments 
)
testPHPIni (   $parameters)

Test php ini settings

Variable Documentation

const EZ_SETUP_TEST_FAILURE 2

Referenced by eZSetupRunTests().

const EZ_SETUP_TEST_SUCCESS 1