[wp-trac] Re: [WordPress Trac] #6877: preg_replace in wpautop deletes all the text in the post

WordPress Trac wp-trac at lists.automattic.com
Tue May 6 04:00:01 GMT 2008


#6877: preg_replace in wpautop deletes all the text in the post
-----------------------------------------+----------------------------------
 Reporter:  duncanmc                     |        Owner:  anonymous
     Type:  defect                       |       Status:  new      
 Priority:  highest omg bbq              |    Milestone:  2.5.2    
Component:  Administration               |      Version:  2.5.1    
 Severity:  critical                     |   Resolution:           
 Keywords:  reporter-feedback , wpautop  |  
-----------------------------------------+----------------------------------
Comment (by duncanmc):

 I did some debugging by using preg_last_error() command. It gave error
 number 2 that is PREG_BACKTRACK_LIMIT_ERROR. It is controlled by
 pcre.backtrack_limit option of php. I was using the default value of
 100000. Increasing the number to 1000000 solved the problem. However,
 1000000 looks too high. Is it possible to change the preg_replace, so that
 default backtrack_limit is enough?

-- 
Ticket URL: <http://trac.wordpress.org/ticket/6877#comment:3>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list