运行命令行
php -d display_startup_errors=1 -d error_reporting=-1 -d display_errors -c "C:\path-to-php\php.ini" -m
当然也可以直接运行php,如果有错也会报出错误提示。