What is the difference between extensions and php.ini directives?

What is the difference between extensions and php.ini directives?

For example, in php.ini directives I saw it mbstring.http_inputas an option, and I also saw it in extensions as a multibyte string extension .

+4
source share
2 answers

Directives are general configuration parameters - settings.
Some of them can be changed at runtime (using the ini_set function ), some of them can only be changed using the configuration file (php.ini or .htaccess).

Extensions are binary compiled libraries that allow you to use certain functions in your PHP code. They are written in C and dynamically loaded using

extension=ext.dll/ext.so ; (based on your OS)

/ , / , .

, xdebug var_dump,

xdebug.var_display_max_children
xdebug.var_display_max_data
(and more)

/ , .

+2

, , . (, mysqli_ MySQLi) , -.

, , . : , , . ., , MySQLi.

0

Source: https://habr.com/ru/post/1663616/


All Articles