Unhandled win32 exception occurred in “php.exe” in command line

守給你的承諾、 提交于 2019-12-25 03:12:47

问题


When I try to do anything with PHP in the command line, the command line crashes and throws an "unhandled win32 exception". However, my websites are executing PHP without errors.

When I debug using Visual Studio, the program breaks at this line in php.exe:

100E890C  mov         edx,dword ptr [edx+4]  

And the call stack is as follows:

>php5ts.dll!100e890c()  
[Frames below may be incorrect and/or missing, no symbols loaded for php5ts.dll]    
msvcrt.dll!761eade8()   
msvcrt.dll!761ec470()   
msvcrt.dll!761ef637()   
php.exe!00402e5b()  
kernel32.dll!77211194()     
ntdll.dll!7799b429()    
ntdll.dll!7799b3fc()    

I need to be able to work with PHP in the command line for installing PEAR extensions and for CakePHP functions. However, I don't know how to fix this problem...

Any help on this issue is greatly appreciated.

Thanks.


回答1:


Upgrade your PHP to the latest version and try again. Looks like a bug in php itself.



来源:https://stackoverflow.com/questions/5370117/unhandled-win32-exception-occurred-in-php-exe-in-command-line

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!