Home » Database » DB » Bug #4915
ini_set() not allowed for security reasons
Details
| Submitted | 2005-07-26 06:37 UTC |
|---|---|
| From | crazylegs at gmail dot com |
| Assigned | aharvey |
| Status | Closed |
| Package | DB |
| PHP Version | 4.3.10 |
| OS | Debian/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