How to install the ITL extension

I want to install the PHP ITL extension so that I can use it.

I need to compile this, and if so, how to compile it? I need it to work for both Windows and Linux.

+6
php php-extension
source share
3 answers

Why not read README ?

  • libitl should already be installed along with the header files.
  • Download the php source code and create the $ PHP_SRC_DIR / ext / itl directory and copy the config.m4 files itl.c php_itl.h and itl.php to it
  • Run the following commands: cd $ PHP_SRC_DIR / ext / itl phpize. / configure --with-itl = / path / to / libitl
  • You can enable ITL functions by compiling the php-itl extension and copying the resulting .so file to the PHP extension directory.
+4
source share
+1
source share

I suggest you take a look at this section in the PHP Manual . In particular, this section is for compiling extensions using the phpize .

+1
source share

All Articles