Re: Re: [RFC] Debugging PDO Prepared Statement Emulation

From: Date: Mon, 24 Oct 2016 21:26:17 +0000
Subject: Re: Re: [RFC] Debugging PDO Prepared Statement Emulation
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-96607@lists.php.net to get a copy of this message
On 24/10/16 21:16, Adam Baratz wrote: >> I've created an RFC to make it easier to work with emulated prepared >> > statements: >> > >> > https://wiki.php.net/rfc/debugging_pdo_prepared_statement_emulation >> > > Does anyone have feedback? Since PDO is an interface to third party databases this seems totally out of place in PHP. Prepared statements are a sensible mechanism for for anyone wanting secure access to those database, so what is the point of this code. The emulated versions simply replace parameters with raw data so database engines that don't have parameters get simple SQL statements which can be directly viewed. You do not need any code to create virtual parameters that are useless in the wire connection to the database anyway. Older mysql did not have prepared queries hence the default of converting the more secure SQL into something old mysql could handle. I presume that dblib has the same fundamental problem? But mssql has prepared statements so dblib SHOULD provide that interface? -- Lester Caine - G8HFL ----------------------------- Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk Rainbow Digital Media - http://rainbowdigitalmedia.co.uk

« previous php.internals (#96607) next »