[SR-Users] Siremis 3.2.1 PDO Issue.

Jeremy Ardley jeremy.ardley at gmail.com
Wed May 23 06:10:24 CEST 2012


Hi,

I'm installing a brand-new Kamailio / Siremis system.

I have an issue with Siremis failing to load PDO extensions. I have
other systems working O.K. on Centos 5.x

This is my configuration:

Centos 6.2

php-5.3.3-3.el6_2.8.i686.rpm
php-cli-5.3.3-3.el6_2.8.i686.rpm
php-common-5.3.3-3.el6_2.8.i686.rpm
php-mysql-5.3.3-3.el6_2.8.i686.rpm
php-pdo-5.3.3-3.el6_2.8.i686.rpm    

Siremis 3.2.1

php -m
[PHP Modules]
bz2
calendar
Core
ctype
curl
date
ereg
exif
fileinfo
filter
ftp
gettext
gmp
hash
iconv
json
libxml
mysql
mysqli
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
readline
Reflection
session
shmop
SimpleXML
sockets
SPL
sqlite3
standard
tokenizer
xml
zip
zlib

[Zend Modules]

The area where it screws up is in util.php while I am setting up Siremis
via web-page

    $status[5]['item'] = 'PDO extensions';
    $pdos = array();
    if (extension_loaded('pdo')) $pdos[] = "pdo";
    if (extension_loaded('pdo_mysql')) $pdos[] = "pdo_mysql";
    if (extension_loaded('pdo_mssql')) $pdos[] = "pdo_mssql";
    if (extension_loaded('pdo_oci')) $pdos[] = "pdo_oci";
    if (extension_loaded('pdo_pgsql')) $pdos[] = "pdo_pgsql";
    $status[5]['value'] = implode(", ", $pdos);
    $status[5]['status'] = $pdos[0]=='pdo' ? 'OK' : 'FAIL - PDO
extensions are required.';

I have commented out the test but it fails later saying the PDO
extensions are not loaded.
I note that the php modules report gives upper case but the test is
lower case.
(I understand the extension_loaded function is case insensitive)


Any assistance appreciated.




More information about the sr-users mailing list