Replaced PHP 5.5 deprecated calls
Replaced PHP 5.5 deprecated call in external library
Merge pull request #1230 from GPCsolutions/deprecated-5.5

Deprecated in PHP 5.5