You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We're seeing the below warnings in our logs on every request. It seems like the aliases defined in bc_namespace.php may be being declared twice. Any ideas why this might be? This only seems to be happening in production, we don't get these in development - so hard to provide a reproducer.
This is on PHP 8.3 with a standard Composer setup with Symfony 6.4.
NOTICE: PHP message: PHP Warning: Cannot declare class PHPCoord\Point, because the name is already in use in vendor/php-coord/php-coord/src/bc_namespace.php on line 13
NOTICE: PHP message: PHP Warning: Cannot declare class PHPCoord\BritishNationalGridPoint, because the name is already in use in vendor/php-coord/php-coord/src/bc_namespace.php on line 14
NOTICE: PHP message: PHP Warning: Cannot declare class PHPCoord\CompoundPoint, because the name is already in use in vendor/php-coord/php-coord/src/bc_namespace.php on line 15
NOTICE: PHP message: PHP Warning: Cannot declare class PHPCoord\GeocentricPoint, because the name is already in use in vendor/php-coord/php-coord/src/bc_namespace.php on line 16
NOTICE: PHP message: PHP Warning: Cannot declare class PHPCoord\GeographicPoint, because the name is already in use in vendor/php-coord/php-coord/src/bc_namespace.php on line 17
NOTICE: PHP message: PHP Warning: Cannot declare class PHPCoord\IrishGridPoint, because the name is already in use in vendor/php-coord/php-coord/src/bc_namespace.php on line 18
NOTICE: PHP message: PHP Warning: Cannot declare class PHPCoord\IrishTransverseMercatorPoint, because the name is already in use in vendor/php-coord/php-coord/src/bc_namespace.php on line 19
NOTICE: PHP message: PHP Warning: Cannot declare class PHPCoord\ProjectedPoint, because the name is already in use in vendor/php-coord/php-coord/src/bc_namespace.php on line 20
NOTICE: PHP message: PHP Warning: Cannot declare class PHPCoord\UTMPoint, because the name is already in use in vendor/php-coord/php-coord/src/bc_namespace.php on line 21
NOTICE: PHP message: PHP Warning: Cannot declare class PHPCoord\VerticalPoint, because the name is already in use in vendor/php-coord/php-coord/src/bc_namespace.php on line 22
The text was updated successfully, but these errors were encountered:
I've finally got to the bottom of it. It was only happening in production as it's caused by having OPCache preloading enabled. I found another project having a similar issue and have applied the same fix in a PR here: #69
We're seeing the below warnings in our logs on every request. It seems like the aliases defined in
bc_namespace.php
may be being declared twice. Any ideas why this might be? This only seems to be happening in production, we don't get these in development - so hard to provide a reproducer.This is on PHP 8.3 with a standard Composer setup with Symfony 6.4.
The text was updated successfully, but these errors were encountered: