View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000262 | WackoWiki | core | public | 2009-01-20 23:15 | 2019-09-13 09:45 |
Reporter | administrator | Assigned To | ebal | ||
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | resolved | Resolution | fixed | ||
Target Version | 5.0.beta | Fixed in Version | 5.0.beta | ||
Summary | 0000262: replace the remaining ereg() function with preg_match() | ||||
Description | ereg() is slower than preg_match, and is being depreciated in php6. I would recommend exchanging the remaining ereg() function with preg_replace() | ||||
Steps To Reproduce | found here: /formatters/highlight/css.php /formatters/highlight/html.php /lib/captcha/freecap.php | ||||
Tags | No tags attached. | ||||
related to | 0000326 | resolved | administrator | replace the remaining split() function with preg_split() |
child of | 0000345 | resolved | administrator | Deprecated features in PHP 5.3.x |
|
FILES ./formatters/highlight/css.php : 160 $css = ereg_replace('[^-y]' . $i,'<span style="color: ##oct##;">' .$i. '</span>',$css); ./formatters/highlight/html.php : 148 $source = ereg_replace('<' .$i. '(>|[[:space:]])','<span style="color: ' .$options['color']['tags']. ';font-weight:bold;"><' .$i. '\\1</span>',$source); ./formatters/highlight/html.php : 153 $source = ereg_replace('([[:space:]]|"|\'|\?)>','\\1<span style="color: ' .$options['color']['tags']. ';font-weight:bold;">></span>',$source); ./lib/captcha/freecap.php : 356 $word = ereg_replace("[^a-z]","",$word); |
|
Revision 282 plz check it |
|
works http://test.wackowiki.org/Bugs/49 |
Date Modified | Username | Field | Change |
---|---|---|---|
2009-01-20 23:15 | administrator | New Issue | |
2009-01-20 23:19 | administrator | Description Updated | |
2009-01-23 21:10 | administrator | Summary | replace the ereg() function with preg_match() => replace the remaining ereg() function with preg_match() |
2009-01-23 21:10 | administrator | Description Updated | |
2009-01-23 21:26 | administrator | Description Updated | |
2009-01-23 21:26 | administrator | Steps to Reproduce Updated | |
2009-01-23 21:26 | administrator | Status | new => confirmed |
2009-01-23 21:26 | administrator | Projection | none => tweak |
2009-02-16 13:14 | ebal | Status | confirmed => assigned |
2009-02-16 13:14 | ebal | Assigned To | => ebal |
2009-03-02 18:43 | ebal | Note Added: 0000583 | |
2009-03-02 20:14 | ebal | Note Added: 0000584 | |
2009-03-02 20:34 | administrator | Note Added: 0000585 | |
2009-03-02 20:42 | administrator | Resolution | open => fixed |
2009-03-02 20:42 | administrator | Fixed in Version | => 5.0.0 |
2009-03-02 20:42 | administrator | Target Version | => 5.0.0 |
2009-03-02 20:44 | administrator | Status | assigned => resolved |
2009-09-18 11:33 | administrator | Issue cloned: 0000326 | |
2009-09-18 11:33 | administrator | Relationship added | related to 0000326 |
2009-10-13 15:58 | administrator | Target Version | 5.0.0 => 5.0.beta |
2009-10-13 16:05 | administrator | Fixed in Version | 5.0.0 => 5.0.beta |
2009-11-24 12:49 | administrator | Relationship added | parent of 0000345 |
2009-11-24 12:54 | administrator | Relationship deleted | parent of 0000345 |
2009-11-24 12:54 | administrator | Relationship added | child of 0000345 |
2010-03-08 10:12 | administrator | Category | Core => core |
2011-05-31 21:24 | administrator | Build | => R5.0.beta |