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 js调用html页面需要隐藏某个按钮
  • ¥15 ads仿真结果在圆图上是怎么读数的
  • ¥20 Cotex M3的调试和程序执行方式是什么样的?
  • ¥20 java项目连接sqlserver时报ssl相关错误
  • ¥15 一道python难题3
  • ¥15 牛顿斯科特系数表表示
  • ¥15 arduino 步进电机
  • ¥20 程序进入HardFault_Handler
  • ¥15 oracle集群安装出bug
  • ¥15 关于#python#的问题:自动化测试