A better fix(do the convertion in compile time)
Merge branch 'master' of https://git.php.net/repository/php-src
convert_to_string also does the check