#41299 [Opn->Bgs]: preg_match_all cannot matches long string
| From: | tony2001@php.net | Date: | Sun, 06 May 2007 10:32:01 +0000 |
| Subject: | #41299 [Opn->Bgs]: preg_match_all cannot matches long string | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-112308@lists.php.net to get a copy of this message | ||
ID: 41299
Updated by: tony2001@php.net
Reported By: virteman at hotmail dot com
-Status: Open
+Status: Bogus
Bug Type: *Regular Expressions
Operating System: windows and linux
PHP Version: 5.2.2
New Comment:
See http://php.net/preg_last_error and related INI
options.
Previous Comments:
------------------------------------------------------------------------
[2007-05-06 04:40:33] virteman at hotmail dot com
Description:
------------
This code read a file(bcgm.txt) and use regex to process the
content,then write a new file(yes.txt)! I try it on PHP5.1.6,the result
is just fine,but If I run it on PHP2.X the result file is bad and just a
NULL in the file.
And Then ,I try other method ,Let the content short ,it's also
OK,but let the content keep very long,the problem is still.
preg_match_all() cannot matches very long string.
Reproduce code:
---------------
http://forideal.blog.163.com/blog/
Expected result:
----------------
one new file,which contains the result string.
Actual result:
--------------
But in the file just is "null".
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=41299&edit=1