From 66bd745ebfb6a67d05db930957b19db4a730535b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Fri, 5 Feb 2021 14:40:41 +0200 Subject: [PATCH] Drop T_NAMESPACE, T_NS_SEPARATOR constants failover for PHP < 5.3 --- .../zend-file/library/Zend/File/ClassFileLocator.php | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/packages/zend-file/library/Zend/File/ClassFileLocator.php b/packages/zend-file/library/Zend/File/ClassFileLocator.php index 6392163ce..8382b4355 100644 --- a/packages/zend-file/library/Zend/File/ClassFileLocator.php +++ b/packages/zend-file/library/Zend/File/ClassFileLocator.php @@ -58,16 +58,6 @@ public function __construct($dirOrIterator = '.') parent::__construct($iterator); $this->setInfoClass('Zend_File_PhpClassFile'); - - // Forward-compat with PHP 5.3 - if (version_compare(PHP_VERSION, '5.3.0', '<')) { - if (!defined('T_NAMESPACE')) { - define('T_NAMESPACE', 'namespace'); - } - if (!defined('T_NS_SEPARATOR')) { - define('T_NS_SEPARATOR', '\\'); - } - } } /**