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

WordPress Trac noreply at wordpress.org
Wed Oct 1 02:15:50 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):

 Replying to [comment:83 kitchin]:
 > Miqro's patch is ideal for the current tests, with one caveat: the tag
 regex is executed twice for each match (once in the implicit `preg_split`
 loop and once in the `foreach` loop).

 preg_match_all() might be able to structure the results better than
 preg_split().  I'm not sure what the speed differences would be.  Also,
 I'm not sure there would be any elegant way to capture the parts between
 the tags.

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


More information about the wp-trac mailing list