This update fixes some php 8 issues
Updated php-qrcode to fix php 8 issues.
- Less dependencies and made validator optional
- Cleaner separation between QR code, logo and label objects
- Cleaned up writers
- Use intermediate result object for greater flexibility
- Builder registry for multiple configuration support
- PHP 8 Support
Updated packages in core/updates_testing:
Disclaimer: starting this from a a position of almost total ignorance about using php.
Before updating I tried a snippet from the README.md file but could not get it to work because there is either something missing from the php environment or the snippet needs to be embedded in a support framework.
$ cat basic.php
$qrCode = new QrCode('Life is too short to be generating QR codes');
$ php basic.php
PHP Fatal error: Uncaught Error: Class "Endroid\QrCode\QrCode" not found in /home/lcl/qa/php-qrcode/basic.php:4
thrown in /home/lcl/qa/php-qrcode/basic.php on line 4
Looked at the php-qrcode website but could not follow the installation instructions. Is it safe to assume that Mageia has taken care of all that?
It looks like this needs the modules endroid and bacon at least. Noting the PECL connection, a web search turned up the command pecl but no sign of that in /usr/bin or /usr/sbin. So how do we get hold of all this extra stuff? github does not have any pecl repositories yet.
Tried the search engine on the PECL website. No hits for qrcode, bacon or endroid.
The update does not seem to have hit the mirrors yet even after switching to a specific mirror, second tier.
Is this a typo in the version in comment 1?
is on the mirrors.
strange.... is was almost certain I've uploaded 4.1.4 - I've done a reupload. Sorry for the confusion.
Build done - upload in progress.
PECL php-qrcode update to latest version =>
PECL php-qrcode update to latest version 4.1.4
It may be time to push this on.
It updates OK and the dependencies required by the basic.php script do exist. There is just the problem of accessing them.
Agreed. Nothing requires php-qrcode, so stand alone testing is required.
Most of the dependencies can be found by creating a symlink,
"Endroid -> /usr/share/php/Endroid/" in the same directory as the
source code, but it's still failing when it tries to use them.
I think it's to do with the use of namespaces, but I don't know enough
about php to know how to use it properly in a stand alone application.
php-qrcode-4.1.4-1.mga8 from php-qrcode-4.1.4-1.mga8.src.rpm ok on Mageia 8
based on clean update install.
Validating the update.