gpt4 book ai didi

php - 函数 simplexml_load_string() 上的 XML_PARSE_HUGE

转载 作者:可可西里 更新时间:2023-11-01 13:56:51 26 4
gpt4 key购买 nike

常量 XML_PARSE_HUGE 可以作为第三个参数传递给 simplexml_load_string() .根据php.net这个标志:

relaxes any hardcoded limit from the parser.

什么是“解析器的默认硬编码限制”?

我认为 relaxes 也有点模棱两可。它会消除还是增加“硬编码限制”?

最佳答案

来自 http://bugs.php.net/49660 :

Since version 2.7.3 libxml limits the maximum size of a single text node to 10MB. The limit can be removed with a new option, XML_PARSE_HUGE. PHP has no way to specify this option to libxml.

所以我想这个标志是 PHP 现在必须指定此选项的方式。

关于php - 函数 simplexml_load_string() 上的 XML_PARSE_HUGE,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5428055/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com