WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #12690, comment 32


Ignore:
Timestamp:
07/23/2014 02:00:49 PM (6 years ago)
Author:
soulseekah
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #12690, comment 32

    initial v1  
    77
    88Setting `ulimit -s 65535` will increase the stack size on the machine. But still, a large enough string will eventually overflow. Setting a good `backtrack_limit` to a reasonable value would prevent PHP from faulting at least, although it's probably difficult to find a good limit since it's not the count that matters but rather the amount of memory on the stack.
     9
     10Another option is to compile libpcre from source and configure it with the `--disable-stack-for-recursion` flag. This will disable stack-based recursion and enable heap-based recursion.