Anonymous | Login | Signup for a new account | 2024-03-28 07:43 CDT |
Main | My View | View Issues | Change Log | Roadmap | Docs | Wiki | Repositories |
Dependency Graph | [ View Issue ] [ Relation Graph ] [ Horizontal ] | |||
|
||||
|
Viewing Issue Simple Details | |||||
ID | Category | Type | Reproducibility | Date Submitted | Last Update |
0000236 | [In-Portal CMS] Optimization | task | always | 2009-08-22 06:09 | 2010-01-11 22:05 |
Reporter | alex | View Status | public | ||
Assigned To | alex | ||||
Priority | normal | Resolution | fixed | ||
Status | closed | ||||
Summary | 0000236: Don't use preg_replace for removing trailing words in strings | ||||
Description |
Currently in some places we are using mentioned later code to strip trailing word from string: $pos_sql = preg_replace('/(.*) OR $/', '\\1', $pos_sql) This is not very efficient and should be replaced with code like this: $pos_sql = substr($pos_sql, -2); // "-2" is "(-1) * strlen('OR')" |
||||
Additional Information |
Main | My View | View Issues | Change Log | Roadmap | Docs | Wiki | Repositories |
Web Development by Intechnic In-Portal Open Source CMS |