Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:26645 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 76569 invoked by uid 1010); 16 Nov 2006 15:52:58 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 76554 invoked from network); 16 Nov 2006 15:52:57 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Nov 2006 15:52:57 -0000 Authentication-Results: pb1.pair.com header.from=wolfshoehle@googlemail.com; sender-id=pass; domainkeys=good Authentication-Results: pb1.pair.com smtp.mail=wolfshoehle@googlemail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain googlemail.com designates 66.249.82.235 as permitted sender) DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: wolfshoehle@googlemail.com X-Host-Fingerprint: 66.249.82.235 wx-out-0506.google.com Linux 2.4/2.6 Received: from [66.249.82.235] ([66.249.82.235:34430] helo=wx-out-0506.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id EF/09-01084-7598C554 for ; Thu, 16 Nov 2006 10:52:57 -0500 Received: by wx-out-0506.google.com with SMTP id i27so684430wxd for ; Thu, 16 Nov 2006 07:52:52 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=googlemail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=kK39MxvWcQdnRwJbVJ6b8pbFPsg+bTTLWjtap8fci5bjyXeHCqicIkodxcsez8ZvXO2k5CdC6jdoEzqBgbFSdi/lBfSWMMSoKTB1Hh8SuBAuGx7/SPvJ8TIZWqh6kh0L4zPg/MoQj9jajYX95CqTWMaLKKILJYQ5b2rXyuSsvTA= Received: by 10.90.105.20 with SMTP id d20mr482867agc.1163692372502; Thu, 16 Nov 2006 07:52:52 -0800 (PST) Received: by 10.90.93.12 with HTTP; Thu, 16 Nov 2006 07:52:52 -0800 (PST) Message-ID: <9bb5e33f0611160752g38cdc4acy92e0f72b9aee9c8b@mail.gmail.com> Date: Thu, 16 Nov 2006 16:52:52 +0100 To: "Wez Furlong" Cc: internals@lists.php.net In-Reply-To: <9bb5e33f0611160745i4ef015e7i16933d7a4904a6ff@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <9bb5e33f0611160505u2ac2b1dbt1b04feea4314331c@mail.gmail.com> <4e89b4260611160629o1855ed28pf37139f1576fa99b@mail.gmail.com> <9bb5e33f0611160721l6676cbe5ud0185127fad03402@mail.gmail.com> <9bb5e33f0611160745i4ef015e7i16933d7a4904a6ff@mail.gmail.com> Subject: Re: [PHP-DEV] Enable authorizer-feature in PDO_SQLITE From: wolfshoehle@googlemail.com ("Mario Wolff") Short test script: sqliteSetAuthorizer('auth'); $db->exec( "CREATE TABLE strings( a)"); $insert = $db->prepare( 'INSERT INTO strings VALUES ( ?)'); foreach ( $data as $str) { $insert->execute( array( $str)); } $insert = null; echo "unregister authorizer\n"; $db->sqliteSetAuthorizer(); function auth($type,$arga,$argb,$argc,$argd ){ echo "$type\t$arga\t$argb\t$argc\t$argd\n"; return true; } print_r( $db->query( 'SELECT sqlite_version( *);')->fetchAll( )); ?> gives: register authorizer SQLITE_INSERT sqlite_master main SQLITE_CREATE_TABLE strings main SQLITE_UPDATE sqlite_master type main SQLITE_UPDATE sqlite_master name main SQLITE_UPDATE sqlite_master tbl_name main SQLITE_UPDATE sqlite_master rootpage main SQLITE_UPDATE sqlite_master sql main SQLITE_READ sqlite_master ROWID main SQLITE_READ sqlite_master name main SQLITE_READ sqlite_master rootpage main SQLITE_READ sqlite_master sql main SQLITE_READ sqlite_master tbl_name main SQLITE_INSERT strings main unregister authorizer Array ( [0] => Array ( [sqlite_version( *)] => 3.3.7 [0] => 3.3.7 ) )