Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:45712 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 58000 invoked from network); 9 Oct 2009 14:46:28 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Oct 2009 14:46:28 -0000 Authentication-Results: pb1.pair.com header.from=samuel.roze@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=samuel.roze@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.218.206 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: samuel.roze@gmail.com X-Host-Fingerprint: 209.85.218.206 mail-bw0-f206.google.com Received: from [209.85.218.206] ([209.85.218.206:60650] helo=mail-bw0-f206.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A1/DF-19113-3CC4FCA4 for ; Fri, 09 Oct 2009 10:46:28 -0400 Received: by bwz2 with SMTP id 2so5957665bwz.23 for ; Fri, 09 Oct 2009 07:46:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=swuGIQl2Ff2zoEgBmXdNaVlOtPfJljGaLr72DU26P4o=; b=pYj/pXIfel86iKX2TcCoZj+FUHUPXXL93DKAMvn4otYMpxat5WWw5DTfSMV+WKIVmd SIBjLPippIvRxRvmGoqWZGYRrgIJN/vT1HEEp+fUWjBioJ/Z9s9U/+vcFHrvZQRCwiJW JJ+xep5gVqi8/VxvUOR09qFzDfoN3nIJPT0ao= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=tFTfBNipoiSGO8aRxF4fY4WAlOt35a7zOkMjJ9aUeN2xbZM+MokN8VKH//2WLZtta5 dUkcbM2NnjkWZ4GILoHVDbiaqdl70Qz6wYuZDXbQosNzxJcqj58zolTNPHraCWvBl3cj aBN4SJPx2fV2UiU3TNHeDM6UwgCF5uB0VzUIE= MIME-Version: 1.0 Received: by 10.204.153.27 with SMTP id i27mr2227232bkw.155.1255099584475; Fri, 09 Oct 2009 07:46:24 -0700 (PDT) In-Reply-To: <4ACF3B4A.1050609@daevel.net> References: <18e9608a0910090621r27967eblb9973d7ce882b1c1@mail.gmail.com> <4ACF3B4A.1050609@daevel.net> Date: Fri, 9 Oct 2009 16:46:24 +0200 Message-ID: <18e9608a0910090746m11cabae5q841c56899fd39468@mail.gmail.com> To: "Olivier B." Cc: internals@lists.php.net Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Configuration in the php.ini file From: samuel.roze@gmail.com (Samuel ROZE) And I still have to modifiy my source. ;-) In fact I'm using a personnaly Database class using PDO for add execution times and array/string transformations. Actually, I just wanted to know why there isn't any pdo propreties in the php.ini file. Pierre replied. Thanks ! Samuel. 2009/10/9 Olivier B. : > Hi > >> There isn't because nobody developed that or because it is contradicted ? > > here we extends the PDO class to configure it like we want. > For example : > class ourPDO > { > public function __construct( $dsn, $user = NULL, $password = NULL, > $options = NULL ) > { > $defaultOptions = array( > PDO::ATTR_ERRMODE => PDO::ERRMODE_WARNING, > PDO::ATTR_TIMEOUT => 5, > PDO::ATTR_CASE => PDO::CASE_NATURAL, > PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC, > ); > > if( is_array($options) ) > $defaultOptions = $options + $defaultOptions; > > parent::__construct($dsn, $user, $password, $defaultOptions); > } > } > > and in code, we use $db = new ourPDO( ... ); > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > >