Server PHP Version 5.4.9
preg.php
(.*?) <\/php (\s*?) >/is ', function ($match) use ($a) {return 123;}, $content); Echo $content;
Run the code back:
Fatal error:allowed memory size of 134217728 bytes exhausted (tried to allocate 4169478721 bytes) In/media/raid10/htdocs /xxxx.com/preg.php on line 4
In the local Windows PHP Version 5.3.3
Run code return: ASDFSADF testtest
Where did the error occur?
Reply to discussion (solution)
The error message is that there is not enough memory, and the code itself does not have an extremely memory-intensive component
Visible is a bug
The PHP development Organization has repeatedly stated that it is recommended to upgrade to php5.3.21 or php5.4.19 versions as a result of major bug fixes
Why just ignore it?
Landlord, how do you solve this problem? There seems to be no solution, do you write functions?