<bdo id='rZn9B'></bdo><ul id='rZn9B'></ul>

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

      <legend id='rZn9B'><style id='rZn9B'><dir id='rZn9B'><q id='rZn9B'></q></dir></style></legend>

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

        <tfoot id='rZn9B'></tfoot>
      1. 我可以信任调用 PHP __destruct() 方法吗?

        Can I trust PHP __destruct() method to be called?(我可以信任调用 PHP __destruct() 方法吗?)
          <tbody id='OVvpc'></tbody>
        <i id='OVvpc'><tr id='OVvpc'><dt id='OVvpc'><q id='OVvpc'><span id='OVvpc'><b id='OVvpc'><form id='OVvpc'><ins id='OVvpc'></ins><ul id='OVvpc'></ul><sub id='OVvpc'></sub></form><legend id='OVvpc'></legend><bdo id='OVvpc'><pre id='OVvpc'><center id='OVvpc'></center></pre></bdo></b><th id='OVvpc'></th></span></q></dt></tr></i><div id='OVvpc'><tfoot id='OVvpc'></tfoot><dl id='OVvpc'><fieldset id='OVvpc'></fieldset></dl></div>
        • <bdo id='OVvpc'></bdo><ul id='OVvpc'></ul>
        • <legend id='OVvpc'><style id='OVvpc'><dir id='OVvpc'><q id='OVvpc'></q></dir></style></legend>
        • <small id='OVvpc'></small><noframes id='OVvpc'>

          <tfoot id='OVvpc'></tfoot>

                  本文介绍了我可以信任调用 PHP __destruct() 方法吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  在 PHP5 中,是否保证为每个对象实例调用 __destruct() 方法?程序中的异常可以防止这种情况发生吗?

                  In PHP5, is the __destruct() method guaranteed to be called for each object instance? Can exceptions in the program prevent this from happening?

                  推荐答案

                  当所有引用被释放或脚本终止时,将调用析构函数.我认为这意味着脚本正确终止时.我会说关键异常并不能保证调用析构函数.

                  The destructor will be called when the all references are freed, or when the script terminates. I assume this means when the script terminates properly. I would say that critical exceptions would not guarantee the destructor to be called.

                  PHP 文档 有点薄,但它确实说析构函数中的异常会导致问题.

                  The PHP documentation is a little bit thin, but it does say that Exceptions in the destructor will cause issues.

                  这篇关于我可以信任调用 PHP __destruct() 方法吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  When should use doctrine ORM and when zend-db-table?(什么时候应该使用学说 ORM,什么时候应该使用 zend-db-table?)
                  Doctrine - self-referencing entity - disable fetching of children(Doctrine - 自引用实体 - 禁用获取子项)
                  Doctrine 2, query inside entities(原则 2,实体内部查询)
                  Complex WHERE clauses using the PHP Doctrine ORM(使用 PHP Doctrine ORM 的复杂 WHERE 子句)
                  Doctrine - OneToMany relation, all result row doesn#39;t fetch in object(Doctrine - OneToMany 关系,所有结果行不获取对象)
                  Doctrine and unrefreshed relationships(教义和未更新的关系)
                  <legend id='eRB7n'><style id='eRB7n'><dir id='eRB7n'><q id='eRB7n'></q></dir></style></legend>

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

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

                        • <bdo id='eRB7n'></bdo><ul id='eRB7n'></ul>