Our Team's WikiFatal Error: Allowed Memory Size of 134217728 Bytes Exhausted 2015-04-02
今天加密脚本的时候出现了这样的错误:
1 | > get bytes [ 1 KB] move.ModelsBase |
在 stackoverflow.com
上发现这个答案:
The correct way is to edit your php.ini file. Edit memory_limit to your desire value.
As from your question, 128M (which is the default limit) has been exceeded, so there is something seriously wrong with your code as it should not take that much.
If you know why it takes that much and you want to allow it set memory_limit = 512M or higher and you should be good.
解决方案:
在 $QUICK-COCOS2D-X/bin/lib/quick/xxtea.php
的文件起始位置<?php
上方加入:
1 | <?php ini_set('memory_limit', '-1'); ?> |
解决!