changes for php 5.5 compatibility - see http://www.php.net/manual/en/migration55.internals.php