• <i id='SnwL5'><tr id='SnwL5'><dt id='SnwL5'><q id='SnwL5'><span id='SnwL5'><b id='SnwL5'><form id='SnwL5'><ins id='SnwL5'></ins><ul id='SnwL5'></ul><sub id='SnwL5'></sub></form><legend id='SnwL5'></legend><bdo id='SnwL5'><pre id='SnwL5'><center id='SnwL5'></center></pre></bdo></b><th id='SnwL5'></th></span></q></dt></tr></i><div id='SnwL5'><tfoot id='SnwL5'></tfoot><dl id='SnwL5'><fieldset id='SnwL5'></fieldset></dl></div>
      <bdo id='SnwL5'></bdo><ul id='SnwL5'></ul>

    <small id='SnwL5'></small><noframes id='SnwL5'>

    <tfoot id='SnwL5'></tfoot>

      1. <legend id='SnwL5'><style id='SnwL5'><dir id='SnwL5'><q id='SnwL5'></q></dir></style></legend>

        PHP 不处理堆栈溢出?

        PHP doesn#39;t handle stack overflow?(PHP 不处理堆栈溢出?)
          <tfoot id='wWpPF'></tfoot>

            <legend id='wWpPF'><style id='wWpPF'><dir id='wWpPF'><q id='wWpPF'></q></dir></style></legend>
              <i id='wWpPF'><tr id='wWpPF'><dt id='wWpPF'><q id='wWpPF'><span id='wWpPF'><b id='wWpPF'><form id='wWpPF'><ins id='wWpPF'></ins><ul id='wWpPF'></ul><sub id='wWpPF'></sub></form><legend id='wWpPF'></legend><bdo id='wWpPF'><pre id='wWpPF'><center id='wWpPF'></center></pre></bdo></b><th id='wWpPF'></th></span></q></dt></tr></i><div id='wWpPF'><tfoot id='wWpPF'></tfoot><dl id='wWpPF'><fieldset id='wWpPF'></fieldset></dl></div>
                • <bdo id='wWpPF'></bdo><ul id='wWpPF'></ul>

                  <small id='wWpPF'></small><noframes id='wWpPF'>

                    <tbody id='wWpPF'></tbody>
                  本文介绍了PHP 不处理堆栈溢出?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  当我刚尝试以下 PHP 代码时,我感到很惊讶:

                  I was surprised when I just tried the following PHP code:

                  function foo()
                  {
                      foo();
                  }
                  foo();
                  

                  我预计会收到500:内部服务器错误".相反,连接立即关闭(未收到任何字节),并且日志文件显示 apache 段错误.怎么回事?这是 PHP 中的一个已知错误吗?我缺少一些配置选项吗?因为每次意外堆栈溢出都会导致进程崩溃,嗯……我认为这是非常不可接受的.

                  I expected to get "500: Internal server error". Instead the connection was closed immediately (no bytes received), and the log files show that apache segfaulted. WTF? Is this a known bug in PHP? Are there some configuration options that I'm missing? Because a crashed process for every accidental stack overflow is, well... pretty unacceptable, I think.

                  推荐答案

                  PHP 无法解决这个问题,它只会进入无限循环并产生分段错误.

                  PHP is not able to deal with this, it will just go into an infinite loop and produce a segmentation fault.

                  http://bugs.php.net/bug.php?id=49823

                  还有

                  http://www.mail-archive.com/php-bugs@lists.php.net/msg128905.html

                  这篇关于PHP 不处理堆栈溢出?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Converting string to MySQL timestamp format in php(在php中将字符串转换为MySQL时间戳格式)
                  datetime to timestamp(日期时间到时间戳)
                  PHP timestamp date to user timezone(PHP时间戳日期到用户时区)
                  Converting TIMESTAMP to unix time in PHP?(在 PHP 中将 TIMESTAMP 转换为 unix 时间?)
                  Convert ISO 8601 to unixtimestamp(将 ISO 8601 转换为 unixtimestamp)
                  Finding days between 2 unix timestamps in php(在php中查找2个unix时间戳之间的天数)

                  <legend id='DMd6k'><style id='DMd6k'><dir id='DMd6k'><q id='DMd6k'></q></dir></style></legend>
                  1. <tfoot id='DMd6k'></tfoot>

                    <small id='DMd6k'></small><noframes id='DMd6k'>

                    • <i id='DMd6k'><tr id='DMd6k'><dt id='DMd6k'><q id='DMd6k'><span id='DMd6k'><b id='DMd6k'><form id='DMd6k'><ins id='DMd6k'></ins><ul id='DMd6k'></ul><sub id='DMd6k'></sub></form><legend id='DMd6k'></legend><bdo id='DMd6k'><pre id='DMd6k'><center id='DMd6k'></center></pre></bdo></b><th id='DMd6k'></th></span></q></dt></tr></i><div id='DMd6k'><tfoot id='DMd6k'></tfoot><dl id='DMd6k'><fieldset id='DMd6k'></fieldset></dl></div>

                          <tbody id='DMd6k'></tbody>
                        • <bdo id='DMd6k'></bdo><ul id='DMd6k'></ul>