Blog » Blog Entry

PHP extensions case

Updated: January 1, 2008April 29, 2005

One thing that really falls short with PHP is the crazy naming conventions that seem to follow no particular pattern. Trying to figure out why PDO doesn't seem to work today, I found yet another case naming difference:

> cat extensions.php
#!/usr/bin/php
<?php

print_r( get_loaded_extensions() );

?>
> ./extensions.php   
Array
(
  [0] => xml
  [1] => standard
  [2] => SPL
  [3] => sockets
  [4] => SimpleXML
  [5] => session
  [6] => readline
  [7] => pspell
  [8] => pgsql
  [9] => pcre
  [10] => pcntl
  [11] => ncurses
  [12] => mysql
  [13] => mhash
  [14] => mcrypt
  [15] => mbstring
  [16] => imap
  [17] => iconv
  [18] => gettext
  [19] => gd
  [20] => ftp
  [21] => fam
  [22] => dom
  [23] => dba
  [24] => curl
  [25] => ctype
  [26] => bz2
  [27] => zlib
  [28] => openssl
  [29] => libxml
  [30] => PDO
  [31] => pdo_mysql
);
Tags: php

« Dueling Dragons Migration to Lighttpd »

Add a comment:

Title:

Comment:

Name:

Email:

Website: