windows PHP 在 77FCAFF8 遇到访问冲突
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/3231571/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
PHP has encountered an Access Violation at 77FCAFF8
提问by Dutchie432
I am running a PHP site that uses Ajax and jQuery as well. The site will run fine for quite some time, and suddently my pages (and ajax-retrieved sub-pages) comes back with the message
我正在运行一个使用 Ajax 和 jQuery 的 PHP 站点。该网站将运行良好一段时间,突然我的页面(和 ajax 检索的子页面)返回消息
PHP has encountered an Access Violation at 77FCAFF8
PHP 在 77FCAFF8 遇到访问冲突
It seems that rebooting the server corrects the issue. Running PHP Version 5.1.6 (Windows NT 5.0 build 2195). I did a some searching on here and some other sites, and there seems to be no fix..
似乎重新启动服务器可以解决问题。运行 PHP 版本 5.1.6(Windows NT 5.0 build 2195)。我在这里和其他一些网站上进行了一些搜索,但似乎没有解决办法。
URL REMOVED
网址已删除
UPDATE:I think I'm on to something.. will get back to you.
更新:我想我正在做某事..会回复你。
UPDATEAfter reviewing the IIS setup, i noticed there was no Handler Mapping setup for the website. This, of course begs the question - how did it ever work in the first place, when it was originally setup this way!? I added the handler mapping and it seems to be Okay so far.
更新在查看 IIS 设置后,我注意到网站没有处理程序映射设置。这当然引出了一个问题 - 它最初是如何工作的,最初是这样设置的!?我添加了处理程序映射,到目前为止似乎没问题。
UPDATEThe problem popped its heads out again this morning after 36 hours without encounering it. Back to the drawing board.
更新今天早上,这个问题在 36 小时后再次出现,却没有引起人们的注意。回到绘图板。
UPDATEWe ended up just moving the site to a secondary web server where we were able to upgrade PHP without an issue.
更新我们最终只是将站点移动到辅助 Web 服务器,在那里我们能够毫无问题地升级 PHP。
回答by Brad
This is a PHP issue somewhere. You could spend some time narrowing down which function you're using that is causing the problem. I would instead upgrade to a newer version of PHP. If still no luck, try a slightly older version. There have been significantchanges with version 5.3.2.
这是某个地方的 PHP 问题。您可以花一些时间来缩小正在使用的导致问题的功能的范围。我会改为升级到较新版本的 PHP。如果仍然没有运气,请尝试稍旧的版本。版本 5.3.2发生了重大变化。
回答by CogitoErgoSum
After some research I think this may be the solution (Taken from http://bugs.php.net/bug.php?id=28929):
经过一些研究,我认为这可能是解决方案(取自http://bugs.php.net/bug.php?id=28929):
[2010-06-11 15:12 UTC] in2ishun at yahoo dot com ***************** SOLUTION!!!!
[2010-06-11 15:12 UTC] in2ishun at yahoo dot com ***************** 解决方案!!!!
I realize this issue is AGES old, but it still manages to be the top hit on Google searches as of now (6/2010).
我意识到这个问题已经很老了,但截至目前(6/2010),它仍然是 Google 搜索中的热门话题。
I fixed my own instance of seeing this error. W2k3, IIS6, PHP 5.2.6, MySQL 5.1.
我修复了自己看到此错误的实例。W2k3、IIS6、PHP 5.2.6、MySQL 5.1。
The problem is in the pathing. When I used the MSI installer for MySQL without doing an "advanced" installation (where I could manage the install details), it added a path to the system environment that contained spaces. Even after changing the path environment to use the Windows short-name location of the mysql bin directory, it still didn't work.
问题出在路径上。当我将 MSI 安装程序用于 MySQL 而不进行“高级”安装(我可以在其中管理安装详细信息)时,它添加了一个包含空格的系统环境路径。即使将路径环境更改为使用mysql bin 目录的Windows 短名称位置后,仍然无法正常工作。
The solution was for me to reinstall mysql and set the default installation path to just off the root (e.g. C:\mysql). Once I did that the error went away and my app started working.
解决方案是我重新安装 mysql 并将默认安装路径设置为刚好远离根目录(例如 C:\mysql)。一旦我这样做了,错误就消失了,我的应用程序开始工作。
There are a number of sites with a variety of potential solutions to this issue and several of them mentioned paths and the "libmysql.dll" file (in the "bin" directory of your mysql installation).
有许多站点提供了针对此问题的各种潜在解决方案,其中一些站点提到了路径和“libmysql.dll”文件(在 mysql 安装的“bin”目录中)。
If this helps you solve your problem, consider leaving a comment here so others can see that it works.
如果这有助于您解决问题,请考虑在此处发表评论,以便其他人可以看到它是否有效。