doureng5668 2017-04-06 12: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 19: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.

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

报告相同问题?

悬赏问题

  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog