Author Topic: PHP Warning: PHP Startup: Unable to load dynamic library 'intl'  (Read 108 times)

0 Members and 3 Guests are viewing this topic.

Offline
*****
You know it's usually bad when I ask a question.

Getting the error:
Quote
PHP Warning:  PHP Startup: Unable to load dynamic library 'intl' (tried: /usr/local/cwp/php71/lib/php/extensions/no-debug-non-zts-20190902/intl (/usr/local/cwp/php71/lib/php/extensions/no-debug-non-zts-20190902/intl: cannot open shared object file: No such file or directory), /usr/local/cwp/php71/lib/php/extensions/no-debug-non-zts-20190902/intl.so (/usr/local/cwp/php71/lib/php/extensions/no-debug-non-zts-20190902/intl.so: cannot open shared object file: No such file or directory)) in Unknown on line 0

Intl is now built-in to PHP, tried building PHP even without the extension, and am still getting the error, which is weird.

Anyone have any thoughts?

@cyberspace
« Last Edit: June 28, 2025, 11:45:44 PM by Starburst »

Offline
*****
Re: PHP Warning: PHP Startup: Unable to load dynamic library 'intl'
« Reply #1 on: June 29, 2025, 02:24:26 PM »
This is for the built-in CWP PHP (7.2 that is labeled 7.1)?
I have these files for intl (different dating than the version yours is calling):
Code: [Select]
/usr/local/cwp/php71/lib/php/extensions/no-debug-non-zts-20170718/intl.so
/usr/local/src/intl-3.0.0/.libs/intl.so
/usr/local/src/intl-3.0.0/modules/intl.so

Offline
*****
Re: PHP Warning: PHP Startup: Unable to load dynamic library 'intl'
« Reply #2 on: June 30, 2025, 12:35:24 AM »
This is on AL9, which I believe has CWP PHP 7.4.
But the paths show 7.1.

Only location that had the intl.so in was:
Quote
/usr/local/cwp/php71/lib/php/extensions/no-debug-non-zts-20170718/intl.so

Copied it over to:
/usr/local/cwp/php71/lib/php/extensions/no-debug-non-zts-20190902

Both:
Quote
/usr/local/src/intl-3.0.0/.libs/
/usr/local/src/intl-3.0.0/modules/
where empty.

Trying to rebuild PHP now.

Only server to be having this problem.
And it only showed when updating RoundCube to 1.5.11.

You run a PHP module check with php -m, and it lists intl.
php -v doesn't show any errors either.


Offline
*****
When you run php -m, it shows the module installed, as does dnf.  ???

Offline
*****
And for sure you're testing the CWP PHP (7.2 or 7.4), not your default CLI PHP (mine is 8.2)?
Code: [Select]
[root@srv]# /usr/local/cwp/php71/bin/php --version
PHP 7.2.30 (cli) (built: Apr 29 2020 02:29:42) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
    with the ionCube PHP Loader + ionCube24 v13.0.2, Copyright (c) 2002-2023, by ionCube Ltd.
[root@srv]# /usr/local/cwp/php71/bin/php -m
[PHP Modules]
...
[b]intl[/b]
ionCube Loader
...

[Zend Modules]
the ionCube PHP Loader + ionCube24

Offline
*****
Code: [Select]
# /usr/local/cwp/php71/bin/php --version
Quote
PHP Warning:  PHP Startup: Unable to load dynamic library 'intl' (tried: /usr/local/cwp/php71/lib/php/extensions/no-debug-non-zts-20190902/intl (/usr/local/cwp/php71/lib/php/extensions/no-debug-non-zts-20190902/intl: cannot open shared object file: No such file or directory), /usr/local/cwp/php71/lib/php/extensions/no-debug-non-zts-20190902/intl.so (libicui18n.so.60: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP 7.4.33 (cli) (built: Apr 26 2023 00:00:00) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with the ionCube PHP Loader + ionCube24 v13.0.2, Copyright (c) 2002-2023, by ionCube Ltd.




Code: [Select]
# /usr/local/cwp/php71/bin/php -m
Quote
PHP Warning:  PHP Startup: Unable to load dynamic library 'intl' (tried: /usr/local/cwp/php71/lib/php/extensions/no-debug-non-zts-20190902/intl (/usr/local/cwp/php71/lib/php/extensions/no-debug-non-zts-20190902/intl: cannot open shared object file: No such file or directory), /usr/local/cwp/php71/lib/php/extensions/no-debug-non-zts-20190902/intl.so (libicui18n.so.60: cannot open shared object file: No such file or directory)) in Unknown on line 0
[PHP Modules]
...
intl
ionCube Loader
...

[Zend Modules]
the ionCube PHP Loader + ionCube24

Offline
*****
In /usr/local/cwp/php71/php.ini, is the intl extension commented out?
Code: [Select]
;extension=intlUncomment, and/or set a hardcoded path
Code: [Select]
extension=
/usr/local/cwp/php71/lib/php/extensions/no-debug-non-zts-20170718/intl.so