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: ======================== php-qrcode-4.1.4-1.mga8.noarch.rpm SRPM: php-qrcode-4.1.4-1.mga8.src.rpm
Assignee: mageia => qa-bugs
mga8, x64 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 <?php use Endroid\QrCode\QrCode; $qrCode = new QrCode('Life is too short to be generating QR codes'); header('Content-Type: '.$qrCode->getContentType()); echo $qrCode->writeString(); ?> $ php basic.php PHP Fatal error: Uncaught Error: Class "Endroid\QrCode\QrCode" not found in /home/lcl/qa/php-qrcode/basic.php:4 Stack trace: #0 {main} 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?
Keywords: (none) => NEEDINFOCC: (none) => tarazed25
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? http://mirror.math.princeton.edu/pub/mageia/distrib/8/x86_64/media/core/updates_testing/php-qrcode-4.0.0-1.mga8.noarch.rpm from http://mirror.math.princeton.edu/pub/mageia/distrib/8/SRPMS/core/updates_testing/php-qrcode-4.0.0-1.mga8.src.rpm is on the mirrors.
CC: (none) => davidwhodgins
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.
Summary: 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.
Whiteboard: (none) => MGA8-64-OKCC: (none) => sysadmin-bugsKeywords: NEEDINFO => validated_update
CC: (none) => ouaurelienKeywords: (none) => advisory
seems this one got tagged but not moved: http://advisories.mageia.org/MGAA-2021-0127.html now moved
Resolution: (none) => FIXEDStatus: NEW => RESOLVED