PHP PDFNet Class "PDFNet" not found

Product: PDFNetC64

Product Version: 9.3.0
PHP 8.1

Please give a brief summary of your issue:
Class “PDFNet” not found

Please describe your issue and provide steps to reproduce it:
I’m trying to integrate PDFNet with Laravel framework but got the above error, I’ve created a repo with Docker, you can see how I install PDFNet on these files

  1. docker/8.1/install-pdfnet.sh
  2. docker/8.1/Dockerfile
  3. docker/8.1/php.ini

The extension has been installed and loaded successfully

$ php -m | grep PDF
PDFNetPHP

My code is in routes/web.php

The sample code repo is in /home/sail/PDFNetWrappers/Samples/AddImageTest/PHP, after I run ./RunTest.sh I got this error

PHP Fatal error:  Uncaught Error: Class "PDFNet" not found in /home/sail/PDFNetWrappers/Samples/AddImageTest/PHP/AddImageTest.php:18
Stack trace:
#0 {main}
  thrown in /home/sail/PDFNetWrappers/Samples/AddImageTest/PHP/AddImageTest.php on line 18

Please provide a link to a minimal sample where the issue is reproducible:

Hello, I’m Ron, an automated tech support bot :robot:

While you wait for one of our customer support representatives to get back to you, please check out some of these documentation pages:

Guides:APIs:Forums:

Thank you for contacting us about this. It may be possible that you do not have dynamic loaded extensions enabled in your PHP configuration. Please make sure you do so, as the module will need to use the native libPDFNet.so library.

See the guide here for more information:

Please take a look

$ php -i | grep enable_dl
enable_dl => On => On
$ php -m | grep PDF
PDFNetPHP