Re: Re: [RFC] Debugging PDO Prepared Statement Emulation v2
| From: | Matteo Beccati | Date: | Fri, 02 Dec 2016 13:54:04 +0000 |
| Subject: | Re: Re: [RFC] Debugging PDO Prepared Statement Emulation v2 | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-97250@lists.php.net to get a copy of this message | ||
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/