• Resolved Matthias Erker

    (@dbase66)


    HTTP_USER_AGENT unknown

    Solution:

    if ((!empty($_SERVER['HTTP_USER_AGENT'])) && (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 9.') !==false)) {
        return $tag;
    } else {
        return str_replace(' src',' defer src', $tag);
    }
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Fernando Tellado

    (@fernandot)

    Thanks @dbase66 I’ll test it, I didn’t tested it with 8.2 🙂

    Thread Starter Matthias Erker

    (@dbase66)

    its my solution with php 8.2 and it works

    Plugin Author Fernando Tellado

    (@fernandot)

    I’ve tested the plugin with PHP 8.2 and it works

    What issue did you noticed with the actual version and PHP 8.2?

    Thread Starter Matthias Erker

    (@dbase66)

    This is the latest official Version:

    if (strpos($_SERVER[‘HTTP_USER_AGENT’], ‘MSIE 9.’) !==false) {
    return $tag;
    } else {
    return str_replace(‘ src’,’ defer src’, $tag);
    }

    IF $_SERVER[‘HTTP_USER_AGENT’] is NULL, then your Code throws error message in 8.2

    Plugin Author Fernando Tellado

    (@fernandot)

    Ok,i’ll change it for the next version

    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘PHP 8.2 Issue’ is closed to new replies.