slow php command line performance - is this normal or do I have an install problem?

后端 未结 1 869
野趣味
野趣味 2021-01-19 11:48

I have a simple PHP app that prints \'hello world\'. When I run it from the command line it takes 6 seconds. Is this normal? It seems to take 1 seconds before \"hello wor

相关标签:
1条回答
  • 2021-01-19 12:08

    The only way I could figure to solve this was to go through my php.ini file and look for anything weird. Eventually I tried disabling loaded DLLs, and that address the problem. The DLL's impacting performance were php_curl.dll and php_mysql.dll, though I only needed to remove php_curl.dll to address the problem.

    php_mysql.dll doesn't cause any problems on its own. php_curl.dll adds a 1 second delay, and a 4 second delay if used with php_mysql.dll. I don't remember why I added php_curl.dll so I guess I'll take it out for now.

    0 讨论(0)
提交回复
热议问题