Bug 16741 - The extensions configured in the php.ini are not loaded
Summary: The extensions configured in the php.ini are not loaded
Status: RESOLVED INVALID
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 5
Hardware: i586 Linux
Priority: Normal major
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-11 18:19 CEST by Mormede Bernard
Modified: 2015-09-16 23:16 CEST (History)
0 users

See Also:
Source RPM: php-5.6.13-1.mga5.src.rpm
CVE:
Status comment:


Attachments

Description Mormede Bernard 2015-09-11 18:19:55 CEST
Description of problem:
I modified the php.ini file to add extensions:
extension=70_pdo.ini
extension=27_intl.ini
extension=23_gd.ini

Version-Release number of selected component (if applicable):

These extension were downloaded from repository:
urpmi php-gd php-pdo php-gd
php-gd 5.6.13-1.mga5
php-intl 5.6.13-1.mga5
php-pdo 5.6.13-1.mga5

Error messages in var/log/httpd/errors_log

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/70_pdo.ini' - /usr/lib/php/extensions/70_pdo.ini: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/27_intl.ini' - /usr/lib/php/extensions/27_intl.ini: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/23_gd.ini' - /usr/lib/php/extensions/23_gd.ini: cannot open shared object file: No such file or directory in Unknown on line 0

This problem never happend in Mageia 4.1

Reproducible: 

Steps to Reproduce:
Comment 1 Mormede Bernard 2015-09-11 18:22:15 CEST
These extensions are necessary to run a program written in php, and I am blocked in my job.
Comment 2 David Walser 2015-09-12 11:12:08 CEST
That's not the correct way to load the modules, and they install the configurations to load them themselves.  They're already loaded.

Status: NEW => RESOLVED
CC: sysadmin-bugs => (none)
Component: Release (media or process) => RPM Packages
Resolution: (none) => INVALID

Comment 3 Mormede Bernard 2015-09-15 16:28:11 CEST
OK, i understand now.
and I modified the php.ini in his original.

But why there is no driver loaded with the PDO extension. I checked the phpinfo file, no driver is indicated for PDO extension.
I checked the PHP manual and I ran the following script:

<?php
print_r(PDO::getAvailableDrivers());
?>

the return is empty.

How do we load the drivers ? (mysql, sqlite, etc..)

Status: RESOLVED => REOPENED
Resolution: INVALID => (none)

Comment 4 David Walser 2015-09-16 23:16:16 CEST
Please don't reopen this bug.

You need to install the pdo packages if you want them to be available.  The command "urpmq -y pdo" will tell you their names.

If you need any further help, please ask on the discuss mailing list or in the forums.

Status: REOPENED => RESOLVED
Resolution: (none) => INVALID


Note You need to log in before you can comment on or make changes to this bug.