Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:97250 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 72368 invoked from network); 2 Dec 2016 13:54:17 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Dec 2016 13:54:17 -0000 Authentication-Results: pb1.pair.com smtp.mail=php@beccati.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=php@beccati.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain beccati.com designates 176.9.123.236 as permitted sender) X-PHP-List-Original-Sender: php@beccati.com X-Host-Fingerprint: 176.9.123.236 box.beccati.com Received: from [176.9.123.236] ([176.9.123.236:35643] helo=box.beccati.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A2/58-01781-70D71485 for ; Fri, 02 Dec 2016 08:54:16 -0500 Received: from authenticated-user (box.beccati.com [176.9.123.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by box.beccati.com (Postfix) with ESMTPSA id C1EBE2005BF; Fri, 2 Dec 2016 14:54:12 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=beccati.com; s=mail; t=1480686852; bh=oTsQISpwohOJ/d/eO6yR9qVs5AR+Yl4sSS/XTcmcrLg=; h=Subject:To:References:From:Date:In-Reply-To:From; b=iJaKMAZLSIZ2a9W0knM1rZcZc8GKwMUD8eprh+wtHQr2/JsfQ57Zd0NyzloLYChE2 XsvP9erihn3W3j2i5kLxQSg4Djtm1BRS6ZVLcnu/0VTBjth+VW9jDJUVOSs/T7Umql Ji3lVSzNKo1c0E2wlLOQvUds4BkFUI9fQwI1sLsp67G171dsQo49SJU0SsTu6Xl5Ol rglHxM0eTfI9EEngE4OJSMnefxWDSU0jUWM97mgYmvoZqDcA9coX6OEuHT2bmhrJzD vaGoRNYEXnrRgVezBJUUa7OAxRvoXBzAklT/iUE390jLEZ3DnjDxlS4ha+BNsi4m69 wmEu43NYDNh8Q== To: Thomas Nunninger , Benoit Schildknecht , internals@lists.php.net References: <758680d9-cfe2-4a93-3831-7aa03b4bc9db@nunninger.info> Message-ID: Date: Fri, 2 Dec 2016 14:54:04 +0100 MIME-Version: 1.0 In-Reply-To: <758680d9-cfe2-4a93-3831-7aa03b4bc9db@nunninger.info> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: [RFC] Debugging PDO Prepared Statement Emulation v2 From: php@beccati.com (Matteo Beccati) On 02/12/2016 08:36, Thomas Nunninger wrote: > Hi, > >> So, if I only want to get the emulated prepared statement, I have to do >> ob_start()/ob_get_clean(), then use a regexp to fetch it ? I want v1 >> back T_T > > I second that. Why do you print it directly? Wouldn't it be better to > return a structured array with the information needed? If needed, you > can var_dump() the array yourself. Could you please explain what's the use case? As far as I'm concerned such information would only be useful during PDO driver development, phpt files and bug reporting / fixing. Cheers -- Matteo Beccati Development & Consulting - http://www.beccati.com/