Re: Configuration in the php.ini file
| From: | Johannes Schlüter | Date: | Mon, 12 Oct 2009 10:37:45 +0000 |
| Subject: | Re: Configuration in the php.ini file | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-45737@lists.php.net to get a copy of this message | ||
Hi,
On Fri, 2009-10-09 at 15:21 +0200, Samuel ROZE wrote:
> I wanted to change a parameter in my PDO class, with the fourth
> PDO::_construct arg. But, I've many projects, which uses PDO, with one
> "new PDO" per project. The problem is that I have to change the source
> of every projects...
>
> Why isn't there an PDO section in the php.ini file ? For instance:
>
> pdo.is_persistent = 1
> pdo.fetch_notices = 1
Using these means two places have to be changed and monitored - the
application-specify configuration holding DSN, username and password and
the php.ini additionally. Some applications might have trouble if there
expectations about the environment isn't correct. The more ini settings
you have the more trouble ... these won'T be as troublesome as
magic_quotes but could still lead to unexpected behavior if the
developer doesn't expect them in some cases.
johannes