[wp-trac] [WordPress Trac] #29557: PHP ≤ 5.4.8 Crashes on '[' Character in Posts

WordPress Trac noreply at wordpress.org
Sat Sep 13 01:58:10 UTC 2014


#29557: PHP ≤ 5.4.8 Crashes on '[' Character in Posts
-----------------------------------+--------------------
 Reporter:  MrBobDobolina          |       Owner:
     Type:  defect (bug)           |      Status:  new
 Priority:  highest omg bbq        |   Milestone:  4.0.1
Component:  Formatting             |     Version:  4.0
 Severity:  blocker                |  Resolution:
 Keywords:  wptexturize has-patch  |     Focuses:
-----------------------------------+--------------------

Comment (by miqrogroove):

 Results of testing PHP 5.2.4 and PHP 5.2.13.

 Using 4.0-beta code.

 Test case caused about 60000 trackbacks in 5.2.4.  It did not crash, but
 note this would be close to the default backtrack limit for that version.
 v5.2.13 reached about 24700 trackbacks and then crashed.

 Using 4.0.0 code.

 Test case caused about 30000 trackbacks in 5.2.4.
 v5.2.13 reached about 24700 trackbacks and then crashed.
 Note kovshenin's comment appears to be incorrect
 https://core.trac.wordpress.org/ticket/12690#comment:37  What we thought
 was a solution only decreased the backtrack count by half, meaning a post
 twice as long would still crash PHP.

 Using 4.0.0 code with second extra possessive as discussed.

 Test case caused about 8000 trackbacks in 5.2.4 as well as 5.2.13.

 Using the .4 patch code.

 Test case caused about 10 trackbacks for unregistered shortcodes and 20
 trackbacks for registered shortcodes.

 Using the .5 patch code.

 Test case caused about 10 trackbacks for unregistered shortcodes and 10
 trackbacks for registered shortcodes.

 I can't yet explain why some people seem to be having better luck with the
 .5 patch than the .4 patch.  My comparison of the two is inconclusive, but
 I'm comfortable using the .5 patch based on the results so far.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/29557#comment:48>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list