The regular expressions seem to be matching more than they mean to.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | devel_preg_match.patch | 706 bytes | rolodmonkey |
| #2 | devel_query_preg_match.patch | 710 bytes | rolodmonkey |
| devel_store_queries.patch | 619 bytes | john morahan |
The regular expressions seem to be matching more than they mean to.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | devel_preg_match.patch | 706 bytes | rolodmonkey |
| #2 | devel_query_preg_match.patch | 710 bytes | rolodmonkey |
| devel_store_queries.patch | 619 bytes | john morahan |
Comments
Comment #1
moshe weitzman commentedAnyone care to review this? killes?
Comment #2
rolodmonkey commentedI have reviewed this. The only subtle change I would recommend is to keep the single-quotes around the S after the match. I have attached a patch with this change.
I have not confirmed that this matches floats correctly. Other than that, I believe this is ready to go.
Also, this looks like it needs to be back-ported to the 5.x version. Can anyone confirm if this also needs to be changed in the 7.x version?
Comment #4
rolodmonkey commentedDarn line endings! :)
Comment #5
rolodmonkey commentedComment #6
salvisIs this still an issue?
Comment #7
john morahan commentedYes, though I think it only affects 6.x now.
Comment #8
john morahan commentedIn fact, I don't think this functionality exists at all in 7.x...
Comment #9
salvis@John: Have you reviewed the patch in #4?
(We don't maintain D5 anymore.)
Comment #10
rolodmonkey commentedI'm assuming that this functionality moved to the Performance Logging module:
http://drupal.org/project/performance
Comment #11
fuzzy76 commentedThe perfomance logging module doesn't do per-query logging at all as far as I can tell.
Comment #12
moshe weitzman commentedComment #13
mgiffordI'm marking this as closed as it doesn't seem like preg_replace is even used in this module any more.