rfc:pdo_escape_placeholders
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
rfc:pdo_escape_placeholders [2017/06/07 10:53] – mbeccati | rfc:pdo_escape_placeholders [2020/08/01 23:55] (current) – RFC was implemented carusogabriel | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== PHP RFC: Escape PDO "?" | ====== PHP RFC: Escape PDO "?" | ||
- | * Version: | + | * Version: 1.0 |
- | * Date: 2016-12-18 | + | * Date: 2019-05-31 |
* Author: Matteo Beccati < | * Author: Matteo Beccati < | ||
- | * Status: | + | * Status: |
* First Published at: http:// | * First Published at: http:// | ||
+ | * Targets: PHP 7.4 | ||
===== Introduction ===== | ===== Introduction ===== | ||
Line 33: | Line 34: | ||
===== Proposed PHP Version(s) ===== | ===== Proposed PHP Version(s) ===== | ||
- | Next PHP 7.x, which is 7.2. | + | Next PHP 7.x, which is 7.4. |
===== RFC Impact ===== | ===== RFC Impact ===== | ||
Line 49: | Line 50: | ||
===== Alternative proposals ===== | ===== Alternative proposals ===== | ||
+ | |||
+ | ==== Why not \? ==== | ||
+ | That was my first idea, but backslash is the escaping symbol for strings themselves, which was potentially making eventual escaping quite confusing: in order to send a backslash followed by a positional parameter placeholder one would have to write " | ||
+ | |||
+ | ==== New PDO Flags ==== | ||
It had been proposed to add some flags to enable/ | It had been proposed to add some flags to enable/ | ||
- | Likewise, using different styles for placeholders to match the database | + | ==== Custom placeholder styles for drivers ==== |
+ | Another suggestion was to use different styles for placeholders to match the database | ||
===== Unaffected PHP Functionality ===== | ===== Unaffected PHP Functionality ===== | ||
Everything not PDO. | Everything not PDO. | ||
- | ===== Future Scope ===== | + | ===== Vote ===== |
- | This sections details areas where the feature might be improved in future, but that are not currently proposed in this RFC. | + | Started 7th July 2019. Ends 22nd July 2019 |
+ | <doodle title=" | ||
+ | * Yes | ||
+ | * No | ||
+ | </ | ||
===== Proposed Voting Choices ===== | ===== Proposed Voting Choices ===== | ||
- | Since there is no language change, this RFC requires a 50%+1 majority | + | This RFC requires a 2/3 majority |
===== Patches and Tests ===== | ===== Patches and Tests ===== | ||
- | [[https:// | + | [[https:// |
===== References ===== | ===== References ===== | ||
- | [[https://externals.io/thread/81#email-10436]] | + | * [[https://bugs.php.net/bug.php? |
+ | * [[https:// | ||
rfc/pdo_escape_placeholders.txt · Last modified: 2020/08/01 23:55 by carusogabriel