I have posted a bug report on php.net and they solved the issue with --as-needed. You cna read it here: http://bugs.php.net/bug.php?id=41973 Reproducible: Always
*** This bug has been marked as a duplicate of bug 151444 ***