Preg_replace uses more than the bytes allowed by php5.2 by default, which is the size of pcre.backtrack_limit and pcre.recursion_limit.
Since the release of Discuz! 6.0.0 official version program, everyone has been busy upgrading, but some plug-ins have problems under 6.0, such as http://www.discuz.net/viewthread.php?tid=559133, this bank plug-in in php For the problem of white screen after installation in 5.2.0 and above environments, from the perspective of Discuz! users, we need to assist the plug-in author to solve this problem. Let
me talk about my solution process. I hope I can give you some suggestions.
First: This plug-in can run normally under 5.5, but the screen will be white under 6.0.
In order to increase the readability of template cache files, Discuz!6.0 has increased the indentation of cache files, and has indeed modified some template processing parts of templates.func.php.
Could this be the reason? At first, I initially determined that the problem was here, because after replacing the modified code with part of the 5.5 code, it behaved normally, but I was very depressed and could not find the reason.
Step 2: I suspected that it was a problem with the writing format of the bank.htm template, so I I was very depressed and started to analyze the template. To be honest, it is really a headache to analyze the template when it is too big. Apparently no reason was found. What’s more depressing is
the second step: Then I found that after splitting this template, it was executed normally. At this time, I initially suspected whether the regular matching bug occurred when the data volume was large, so I went to bugs.php .net started searching http://bugs.php.net/search.php?c ... ace&x=3&y=5. I searched and searched here, and finally found this place: http://bugs.php.net/bug .php?id=39405 , and suddenly found that it was a problem with the 5.2 configuration. After adjusting the large pcre.backtrack_limit and pcre.recursion_limit, the problem was solved.
The reason why I wrote this in detail is to share my ideas for solving the problem:)