ua-parser/uap-php

preg_match Warnings After PHP Ugrade

burnzie743 opened this issue · 1 comments

We recently upgraded our version of PHP from 7.0 to 7.3, and are now receiving many warnings, some of which are pasted below.
You can see the documented changes in the migration notes.

Also note the jump in PCRE versions on the PCRE Installation page.

We also upgraded this library, going from 3.9.1 to 3.9.14 (the latest as of the creation of this issue). Due to the inherent PCRE upgrade in PHP itself, my guess is that is irrelevant, but just thought it should be mentioned anyway.

PHP Warning:  preg_match(): Unknown modifier '/' in /var/www/vendor/ua-parser/uap-php/src/AbstractParser.php on line 28
PHP Warning:  preg_match(): Unknown modifier '/' in /var/www/vendor/ua-parser/uap-php/src/AbstractParser.php on line 28
PHP Warning:  preg_match(): No ending delimiter ';' found in /var/www/vendor/ua-parser/uap-php/src/AbstractParser.php on line 28
PHP Warning:  preg_match(): Unknown modifier '/' in /var/www/vendor/ua-parser/uap-php/src/AbstractParser.php on line 28
PHP Warning:  preg_match(): Unknown modifier '/' in /var/www/vendor/ua-parser/uap-php/src/AbstractParser.php on line 28
PHP Warning:  preg_match(): No ending delimiter ';' found in /var/www/vendor/ua-parser/uap-php/src/AbstractParser.php on line 28
PHP Warning:  preg_match(): Unknown modifier '/' in /var/www/vendor/ua-parser/uap-php/src/AbstractParser.php on line 28
PHP Warning:  preg_match(): Delimiter must not be alphanumeric or backslash in /var/www/vendor/ua-parser/uap-php/src/AbstractParser.php on line 28
PHP Warning:  preg_match(): Delimiter must not be alphanumeric or backslash in /var/www/vendor/ua-parser/uap-php/src/AbstractParser.php on line 28
PHP Warning:  preg_match(): Delimiter must not be alphanumeric or backslash in /var/www/vendor/ua-parser/uap-php/src/AbstractParser.php on line 28
PHP Warning:  preg_match(): Unknown modifier '?' in /var/www/vendor/ua-parser/uap-php/src/AbstractParser.php on line 28
PHP Warning:  preg_match(): Delimiter must not be alphanumeric or backslash in /var/www/vendor/ua-parser/uap-php/src/AbstractParser.php on line 28
PHP Warning:  preg_match(): Delimiter must not be alphanumeric or backslash in /var/www/vendor/ua-parser/uap-php/src/AbstractParser.php on line 28
PHP Warning:  preg_match(): Unknown modifier 'M' in /var/www/vendor/ua-parser/uap-php/src/AbstractParser.php on line 28

We've determined that it was a caching issue on our end. Apologies for any confusion this may have caused.