Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:45737 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 44626 invoked from network); 12 Oct 2009 10:38:26 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Oct 2009 10:38:26 -0000 Authentication-Results: pb1.pair.com smtp.mail=johannes@schlueters.de; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=johannes@schlueters.de; sender-id=unknown Received-SPF: error (pb1.pair.com: domain schlueters.de from 83.243.58.133 cause and error) X-PHP-List-Original-Sender: johannes@schlueters.de X-Host-Fingerprint: 83.243.58.133 mailout1.netbeat.de Linux 2.6 Received: from [83.243.58.133] ([83.243.58.133:40662] helo=mailout1.netbeat.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4F/82-32586-F1703DA4 for ; Mon, 12 Oct 2009 06:38:24 -0400 Received: (qmail 28939 invoked by uid 89); 12 Oct 2009 10:40:45 -0000 Received: from unknown (HELO ?192.168.1.111?) (postmaster%schlueters.de@88.217.57.188) by mailout1.netbeat.de with ESMTPA; 12 Oct 2009 10:40:45 -0000 To: Samuel ROZE Cc: internals@lists.php.net In-Reply-To: <18e9608a0910090621r27967eblb9973d7ce882b1c1@mail.gmail.com> References: <18e9608a0910090621r27967eblb9973d7ce882b1c1@mail.gmail.com> Content-Type: text/plain; charset="UTF-8" Date: Mon, 12 Oct 2009 12:37:45 +0200 Message-ID: <1255343865.1676.3.camel@guybrush> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Configuration in the php.ini file From: johannes@schlueters.de (Johannes =?ISO-8859-1?Q?Schl=FCter?=) 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