1. Enter php --ini on the command line
2. View phpinfo() in the browser
It can be seen that my phpinfo and command line are not a php.ini file. Because I have several versions of php and have php-5.4.45 configured in environment variables.
It can be solved by modifying environment variables