Ticket #4239 (closed defect: fixed)

Opened 1 year ago

Last modified 1 year ago

PREG_BACKTRACK_LIMIT_ERROR encountered during WP import

Reported by: ryan Assigned to: ryan
Priority: normal Milestone: 2.2
Component: Administration Version: 2.2
Severity: normal Keywords: wxr importer preg
Cc:

Description

The WordPress importer uses preg_match_all to slurp items from the import file. Large items can cause a PREG_BACKTRACK_LIMIT_ERROR. This can be avoided by bumping pcre.backtrack_limit, but that isn't very friendly. Instead, the importer shouldn't use preg_match_all. There are other ways of retrieving the items.

http://us2.php.net/manual/en/ref.pcre.php#pcre.constants http://us2.php.net/manual/en/ref.pcre.php#ini.pcre.backtrack-limit

Attachments

no_pref.diff (1.7 kB) - added by ryan on 05/09/07 19:59:26.

Change History

05/09/07 19:59:26 changed by ryan

  • attachment no_pref.diff added.

05/09/07 20:03:01 changed by matt

omgbbqphp.

05/09/07 22:53:59 changed by rob1n

+1

05/10/07 00:05:03 changed by ryan

  • status changed from new to closed.
  • resolution set to fixed.

(In [5422]) Don't preg_match_all when processing items. fixes #4239 for 2.2

05/10/07 00:05:22 changed by ryan

(In [5423]) Don't preg_match_all when processing items. fixes #4239 for 2.3

05/10/07 00:06:13 changed by ryan

Testing went well, so I committed for 2.2 since this bug sucks for those affected.