Refactor: Move code to where it should be instead of inlining inside PHP_FUNCTION(readlink)