PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Database » DB » Bug #4915

ini_set() not allowed for security reasons

Details

Submitted2005-07-26 06:37 UTC
Fromcrazylegs at gmail dot com
Assignedaharvey
StatusClosed
PackageDB
PHP Version4.3.10
OSDebian/Linux
Roadmaps(Not assigned)

Comments

[2005-07-26 06:37 UTC] crazylegs at gmail dot com

Description:
------------
I use PEAR on my own server and everything is working fine, tho when I upload the app to a shared server (where it should be hosted) I get a message like:

Warning: ini_set() has been disabled for security reasons in mysql.php on line 239

Some misguided administrator has put ini_set in disable_functions ( well I guess for security reasons ) thus producing the warnings

I just hoped the DB developers were aware of this kind of accidents ( e.g: ini_set disabled for security reasons,..) and developed intermediate solutions..

Test script:
---------------
$dbh = &DB::connect($dsn);

manually replacing DB/mysql.php line 233 to $ini = true;

Expected result:
----------------
no warnings !

Actual result:
--------------
Warning: ini_set() has been disabled for security reasons in mysql.php on line 239