[wp-trac] [WordPress Trac] #8553: preg_replace_callback in do_shortcode returns empty for large posts

WordPress Trac wp-trac at lists.automattic.com
Thu Jul 9 07:24:25 UTC 2009


#8553: preg_replace_callback in do_shortcode returns empty for large posts
-------------------------------------+--------------------------------------
 Reporter:  AaronCampbell            |        Type:  defect (bug)
   Status:  new                      |    Priority:  high        
Milestone:  2.9                      |   Component:  Shortcodes  
  Version:                           |    Severity:  normal      
 Keywords:  has-patch needs-testing  |  
-------------------------------------+--------------------------------------

Comment(by jamescollins):

 We have encountered this on several WordPress installations after
 upgrading PHP from v5.1.6 to 5.2.10.

 The large pages (which contain various shortcodes) have no output
 displayed on the page when it is viewed.

 Our pcre.backtrack_limit is set to the default value (100000).

 Adding the following to wp-config.php allows the pages to be parsed
 successfully.

 ini_set('pcre.backtrack_limit', 1000000);

 Although I'm not sure of the side effects of increasing this value.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/8553#comment:44>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list