pnp4nagios – function get_magic_quotes_runtime() is deprecated

Well I’ve updated to version 7.4 of php and php4nagios is broken instead of showing the graphs shows following error:

Please check the documentation for information about the following error.
Function get_magic_quotes_runtime() is deprecated

file [line]:
/usr/local/pnp4nagios/lib/kohana/system/libraries/Input.php [57]:

To fix it just add an if:

// magic_quotes_runtime is enabled
if (version_compare(PHP_VERSION, '5.3.0', '<')) {
	if (get_magic_quotes_runtime())
	{
		set_magic_quotes_runtime(0);
		Kohana::log('debug', 'Disable magic_quotes_runtime! It is evil and deprecated: http://php.net/magic_quotes');
	}

	// magic_quotes_gpc is enabled
	if (get_magic_quotes_gpc())
	{
		$this->magic_quotes_gpc = TRUE;
		Kohana::log('debug', 'Disable magic_quotes_gpc! It is evil and deprecated: http://php.net/magic_quotes');
	}
}

Following functions are considered obsolete: get_magic_quotes_runtime() y get_magic_quotes_gpc() , so the if block just verified the PHP version and will skip or not the code based on the version, then again the graphs are shown: