Elektronika - baza wiedzy

Jak wylistować załadowane rozszerzenia?


Aby wylistować rozszerzenia PHP stosujemy funkcję get_loaded_extensions().

<?php print_r(get_loaded_extensions());?>

Efekt powinien być podobny do poniższego:

 
Array
(
    [0] => bcmath
    [1] => calendar
    [2] => com_dotnet
    [3] => ctype
    [4] => session
    [5] => filter
    [6] => ftp
    [7] => hash
    [8] => iconv
    [9] => json
    [10] => odbc
    [11] => pcre
    [12] => Reflection
    [13] => date
    [14] => libxml
    [15] => standard
    [16] => tokenizer
    [17] => zlib
    [18] => SimpleXML
    [19] => dom
    [20] => SPL
    [21] => wddx
    [22] => xml
    [23] => xmlreader
    [24] => xmlwriter
    [25] => apache2handler
    [26] => bz2
    [27] => curl
    [28] => gd
    [29] => mbstring
    [30] => mysql
    [31] => openssl
    [32] => PDO
    [33] => pdo_mysql
    [34] => pdo_sqlite
    [35] => SQLite
    [36] => Zend Optimizer
)