Please sign in to comment.
Bug fix for GlobIterator extending service
Reported by andrer on IRC... If a service extends GlobIterator, there was a problem where we were checking if (!$instance) which would yield a catchable fatal error that GlobIterator cannot be casted to a boolean. To solve this, the comparison operators should be strict so PHP does not try to convert the type internally. The types checked against are the expected types if no services have been returned, so the overall behavior should not be changed by this fix at all.
- Loading branch information...
Showing with 34 additions and 3 deletions.
|@@ -0,0 +1,19 @@|
|+ * Zend Framework (http://framework.zend.com/)|
|+ * @link http://github.com/zendframework/zf2 for the canonical source repository|
|+ * @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)|
|+ * @license http://framework.zend.com/license/new-bsd New BSD License|
|+ * @package Zend_ServiceManager|
|+class GlobIteratorService extends \GlobIterator|
|+ public function __construct()|