Revert "[TASK] Fix usage of functions, which are deprecated in PHP 5.5"

This reverts commit 56f3d7e12cfa6b23679e92dc77a53cf68286bafd.