Fixes #4526: fixed error caused by substr_compare length parameter doesn't accept null in PHP 5.4