doureng5668 2017-04-06 04:44
浏览 145
已采纳

SOAP / PHP中是否有最大返回值大小?

I am calling a SOAP function in PHP, which returns a string array. Is there a maximum allowed size of this returned array? If yes, what is that maximum?

  • 写回答

1条回答 默认 最新

  • douwen7331 2017-04-06 11:27
    关注

    The default amount of memory that PHP allows a script to allocate is 128 MB, and this includes variables such as arrays.

    This 128 MB limit can be overridden globally by changing the memory_limit option in the php.ini. Changing the setting to -1 means "unlimited".

    It can also be overridden on a per script basis by using the ini_set function:

    ini_set('memory_limit', '-1'); // Unlimited RAM
    

    When "unlimited" is used, the size of your array is determined by the amount of available RAM on your machine.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
编辑
预览

报告相同问题?

手机看
程序员都在用的中文IT技术交流社区

程序员都在用的中文IT技术交流社区

专业的中文 IT 技术社区,与千万技术人共成长

专业的中文 IT 技术社区,与千万技术人共成长

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

客服 返回
顶部