We just updated the PHP version on a site and the logs are filling up with strpos() notices:
Deprecated function: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in advagg_mod_js_move_to_footer() in advagg/advagg_mod/advagg_mod.module.
Attaching a patch to correct this.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | advagg-strpos_notices-3161790-2-7.patch | 1.29 KB | micnap |
Comments
Comment #2
micnap commentedComment #3
idebr commentedComment #4
joelpittetThis seems reasonable, probably doesn't need to cast it too but doesn't hurt.
Comment #5
thallesThanks @all!
Comment #7
thalles