Innovate faster and cut risk with PHP experts from Zend Services.
Explore Services
Beginning to advanced PHP classes to learn and earn global certification.
Help me choose >
Explore Training
Submit support requests and browse self-service resources.
Explore Support
PHPCompatibility.IniDirectives.RemovedIniDirectives
When any ini setting is removed, its value essentially becomes false, regardless of the data type that the directive used to contain. This means that you can hardcode it in statements. Some code may even become unreachable and can therefore be completely removed.
false
Clean up the affected code.
$apcEnabled = ini_get('apc.enabled');
If the directive was removed, it will always be false.
$apcEnabled = false;
$path = $baseDir; $safeModeExecDir = ini_get('safe_mode_exec_dir'); if (!empty($safeModeExecDir)) { $path .= PATH_SEPARATOR . $safeModeExecDir; }
If $safeModeExecDir is always false, then the entire block is unreachable and can be removed.
$safeModeExecDir
$path = $baseDir;
Increase security and cut risk by simplifying PHP application upgrades and migrations.
Long Term Support buys organizations time to migrate.