zendframework/zf2 — pull request #1838 by AlloVince (2012-07-11 02:35:14+00:00)
Title: Few issues hot fix

Fix 1:

Zend/Cache/Pattern/CaptureCache flush method should be public, see my test demo:

https://github.com/AlloVince/eva-engine/blob/master/public/zf2libs/capturecache.php

This demo show warning because of flush not able to access
Warning: Invalid callback Zend\Cache\Pattern\CaptureCache::flush, cannot access protected method Zend\Cache\Pattern\CaptureCache::flush() in Unknown on line 0

Also because of oldUmask not defined, demo will show a notice:
Notice: Undefined variable: oldUmask in D:\xampp\htdocs\zf2\vendor\zf2\library\Zend\Cache\Pattern\CaptureCache.php on line 228

Fix 2:
In end/Form/Fieldset, the $fieldset->object is possible tobe null, should add a null check. or else here will cause

Fatal error: Class name must be a valid object or a string in D:\xampp\htdocs\zf2\vendor\zf2\library\Zend\Form\Fieldset.php on line 555