﻿id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc
1488211,"Optimization: use strpos instead of strstr when possible, as adviced by PHP manual",lucaferr,,"Hello,[[BR]]
maybe it's a sort of micro-optimization, but I've noticed that often in the code of Roundcube (for example in rcube_browser.php), to test if a needle occurs within a haystack, strstr is used (and checked against FALSE).[[BR]]
Anyway, the PHP manual recommends to use the faster and less memory intensive strpos function for this purpose.[[BR]]",Bugs,closed,9,0.7-stable,Core functionality,0.6,trivial,fixed,strstr strpos optimization,
