Fix uses of trim as callback

trim function cannot be used as callback argument of array_walk since the second argument of the callback (array index) conflicts with the second argument of trim (characters to trim) dealing in unexpected behaviors.
Fix Too many arguments in constructors

HHVM warns when calls a constructor with more arguments than needed.
fix docblock
[tests] Skip tests when required extension is not loaded
Fix real reason of the bug

Previous explanation is wrong, the source of the bug was https://bugs.php.net/bug.php?id=52971
[debug] Set correct SAPI on test
[crypt] Sets a non empty password in tests

For compatibility with HHVM
Updated ServiceManager tests, added failing tests for the missing foreach break after valid abstract factory found
Fix for #5795 - updated ServiceManager, added break after valid abstract factory found
Removing proxy-manager from dev deps
Updated PhpArray to expand paths using __DIR__
Test Coverage on ConfigWrite for __DIR__.
Added comment for dirname replace.
Merge pull request #5880 from spiffyjr/feature/php-array-fix-dir

Updated PhpArray to expand paths using __DIR__
[#5880] CS fixes

- EOF ending
Merge branch 'feature/5880' into develop

Close #5880
Forward #5508
Merge branch 'hotfix/5508' into develop

* hotfix/5508:
  Specify correct return type for `Pdo\Connection::getLastGeneratedValue`
Forward #5775
Merge branch 'hotfix/5775' into develop

* hotfix/5775:
  Added unit tests for Zend\Db\Sql's Predicate factory for notLike() CS Fixes
  Update Predicate.php
Forward port #5893
Forward port #5883