sennin
sennin

Reputation: 8972

How do disable INTL extension in PHP

Is any possibility to both use INTL extension and define own Locale class in other projects? How can I disable this extension?

Upvotes: 1

Views: 3589

Answers (3)

Axi
Axi

Reputation: 1795

And with php fpm

Edit /etc/php/7.4/fpm/conf.d/20-intl.ini

Comment following lines inside (add a ;):

; extension=intl.ini

Restart php fpm:

service php7.4-fpm restart

Upvotes: 0

Ganjax
Ganjax

Reputation: 21

Here's what I did on Ubuntu 12.04 to disable Intl:

Edit /etc/php5/apache2/conf.d/intl.ini

Comment all lines insinde:

; extension=intl.ini

Restart Apache:

service apache2 restart

Upvotes: 2

akirk
akirk

Reputation: 6837

I am not sure if I am understanding you correctly, but you could take a look at PHP 5.3's namespaces. Within a namespace you can choose any class name you want.

Upvotes: 1

Related Questions