[*] Classes: Tools::property_exists() is deprecated, since PrestaShop now requires 5.1

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9408 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rMalie
2011-10-18 09:02:57 +00:00
parent e5ae345855
commit 30835cb4c8
4 changed files with 12 additions and 9 deletions
+3
View File
@@ -1667,12 +1667,15 @@ FileETag INode MTime Size
/**
* Function property_exists does not exist in PHP < 5.1
*
* @deprecated since 1.5.0 (PHP 5.1 required, so property_exists() is now natively supported)
* @param object or class $class
* @param string $property
* @return boolean
*/
public static function property_exists($class, $property)
{
Tools::displayAsDeprecated();
if (function_exists('property_exists'))
return property_exists($class, $property);