Forward port #3474
Merge pull request #3488 from vahid-sohrabloo/develop

Update library/Zend/Code/Generator/FileGenerator.php
Merge pull request #3483 from weierophinney/feature/json-strategy-charset

[#2629] Add charset to Content-Type header
[Log] fixes #3366: Now Logger::registerErrorHandler() accepts an argument to continue native error handler + The error <-> priority map is a public static array
CS fixes
Zend\Filter\Word\* no longer extends Zend\Filter\PregReplace but call preg_replace directly
Added Zend\Stdlib\StringUtils::hasPcreUnicodeSupport()
Added missing use statements in Zend\Stdlib
Added missing 'use ArrayIterator' and fixed renamed Cookie -> SetCookie in Zend\Http\Client\Cookies
Added missing 'use Zend\Uri\UriFactory' in Zend\Http\Header\SetCookie
fixed RuntimeException -> Exception\RuntimeException in Zend\Log\Writer\MongoDB
Added missing 'use ArrayIterator' and 'use Zend\Session\Exception' in Zend\Session\Storage\SessionArrayStorage
Added missing 'use Zend\Stdlib\ResponseInterface' in Zend\Test\PHPUnit\Controller\AbstractControllerTestCase
fixed FaultException -> Exception\FaultException in Zend\XmlRpc\Client\ServerIntrospection
add method to Zend\Http\Response\Stream

the content length is now exposed with getters and setters
add method to Zend\Http\Response\Stream

the content length is now exposed with getters and setters
fixed phpdoc
change atrribute $this->contentlength to getContentLength()
Improve the plugin manager & the tests
Add flash messenger view helper & tests
Fix #3113: Spelling in error validation messages
Fix namespace constant name