src/Psecio/Iniscan/Scan.php
public function isDeprecated($key, $phpVersion = PHP_VERSION)
	{
		$deprecated = $this->getDeprecated();
		$ini = $this->getConfig();

		// loop through the versions and see if our key is in there
		if (property_exists($deprecated, $key))
		{
			$compare = version_compare($phpVersion, $deprecated->$key);
			if ($compare >= 0 && isset($ini[$key])) {
				$this->markKey($key);
				return true;
			}
		}
		return false;
	}
public function isDeprecated($key, $phpVersion = PHP_VERSION)
	{
		$deprecated = $this->getDeprecated();
		$ini = $this->getConfig();

		// loop through the versions and see if our key is in there
		if (property_exists($deprecated, $key))
		{
			$compare = version_compare($phpVersion, $deprecated->$key);
			if ($compare >= 0 && isset($ini[$key])) {
				$this->markKey($key);
				return true;
			}
		}
		return false;
	}
public function isDeprecated ( $ key , $ phpVersion = PHP_VERSION ) { $ deprecated = $ this -> getDeprecated ( ) ; $ ini = $ this -> getConfig ( ) ; // loop through the versions and see if our key is in there if ( property_exists ( $ deprecated , $ key ) ) { $ compare = version_compare ( $ phpVersion , $ deprecated -> $ key ) ; if ( $ compare >= 0 && isset ( $ ini [ $ key ] ) ) { $ this -> markKey ( $ key ) ; return true ; } } return false ; }
See if a setting is listing as deprecated in the PHP version given

@param string $key PHP.ini settings key
@param string $phpVersion Current PHP version [optional]
@return boolean Key is deprecated/not deprecated
See if a setting is listing as deprecated in the PHP version given