Yubico / php-u2flib-server

(OBSOLETE) U2F library in PHP
https://developers.yubico.com/php-u2flib-server/
BSD 2-Clause "Simplified" License
288 stars 68 forks source link

PHP Preloading incompatibility #78

Closed PhilETaylor closed 2 years ago

PhilETaylor commented 4 years ago

I have proved that this script is INCOMPATIBLE with PHP 7 Preloading

The problem is with constants.

The namespaces constants are removed when the script is preloaded.

The solution I found was to move the constants into the class, so they become namespaced class constants.

PhilETaylor commented 4 years ago

My solution for now was to fork, and move the namespaced constants into the class

https://github.com/PhilETaylor/php-u2flib-server/tree/1.0.3

emlun commented 2 years ago

Sorry we didn't respond. Since the U2F API is now obsolete, we're archiving this repository and ceasing maintenance of the library.