# Potential RFC around PDO

- Thread: https://externals.io/message/113201
- Original archive: https://news-web.php.net/php.internals/113201
- Started by Daniel Beardsley on 2021-02-18T00:57:24+00:00
- Messages: 4
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #113201 — Daniel Beardsley — 2021-02-18T00:57:24+00:00

URL: https://externals.io/message/113201#113201

wiki username: danielbeardsley

=== Background
I was told to introduce myself. I've been in software development for more
than 20 years and have been working with php for 10 or so of that. I've
only had a little contact with this group, but I've got at least one past
pull merged on the php-src repo: https://github.com/php/php-src/pull/271.
At iFixit we use a forked version of php with a small change to allow
automatically html-escaping echoed strings:
https://github.com/iFixit/php-src/commit/cb6eb5c35a07c843e5b357884186d77e3a1a2981
. It's not something this list would be interested in as it's rather
special-purpose, but I'm mentioning it to show I'm somewhat familiar with
the php build system.

=== Why I'm emailing now:
I've opened a pull request on php-src:
https://github.com/php/php-src/pull/6677 and I've been advised to make an
RFC. The first step is emailing!

I'd like to propose adding a function to the mysql pdo driver (in the same
way postgres and sqlite have) to extract the count of warnings from the
last executed statement.

See the pull request linked above for a more thorough description.

Should I make an RFC out of this?

Thanks for your time!

Daniel Beardsley

---

## #113203 — Mark Randall — 2021-02-18T03:37:43+00:00

URL: https://externals.io/message/113201#113203 · In reply to: #113201

> At iFixit we use a forked version of php with a small change to allow
> automatically html-escaping echoed strings:
> https://github.com/iFixit/php-src/commit/cb6eb5c35a07c843e5b357884186d77e3a1a2981

Long ago, PHP had a similar feature called Magic Quotes.

It is now universally considered to be among the worst and most damaging 
  features that PHP ever introduced.

There is no apetite to reintroduce such a thing.

Mark Randall

---

## #113204 — Mark Randall — 2021-02-18T03:46:45+00:00

URL: https://externals.io/message/113201#113204 · In reply to: #113203

> Long ago, PHP had a similar feature called Magic Quotes.

My apologies, I had only that top paragraph visible in my preview and 
responded to entirely the wrong part of your post :-(

---

## #113211 — Christoph M. Becker — 2021-02-19T12:07:03+00:00

URL: https://externals.io/message/113201#113211 · In reply to: #113201

Hi Daniel!



> wiki username: danielbeardsley
>
> === Background
> I was told to introduce myself. I've been in software development for more
> than 20 years and have been working with php for 10 or so of that. I've
> only had a little contact with this group, but I've got at least one past
> pull merged on the php-src repo: https://github.com/php/php-src/pull/271.
> At iFixit we use a forked version of php with a small change to allow
> automatically html-escaping echoed strings:
> https://github.com/iFixit/php-src/commit/cb6eb5c35a07c843e5b357884186d77e3a1a2981
> . It's not something this list would be interested in as it's rather
> special-purpose, but I'm mentioning it to show I'm somewhat familiar with
> the php build system.
>
> === Why I'm emailing now:
> I've opened a pull request on php-src:
> https://github.com/php/php-src/pull/6677 and I've been advised to make an
> RFC. The first step is emailing!
>
> I'd like to propose adding a function to the mysql pdo driver (in the same
> way postgres and sqlite have) to extract the count of warnings from the
> last executed statement.
>
> See the pull request linked above for a more thorough description.
>
> Should I make an RFC out of this?

Yes, I think this needs an RFC, because adding driver specific methods
is rather controversial.  See e.g. <https://externals.io/message/100773>.

Anyhow, RFC karma has been granted.

--
Christoph
