# RFC: Remove deprecated functionality in PHP 7

- Status: Implemented (PHP 7.0)
- Authors: Nikita Popov nikic@php.net
- Date: 2014-09-11
- Original: https://wiki.php.net/rfc/remove_deprecated_functionality_in_php7
- Page: https://externals.io/rfc/remove_deprecated_functionality_in_php7
- More for agents: search with https://externals.io/search.md?q={query} · RFCs at https://externals.io/rfc.md · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

## Votes

### Unbundle the ext/ereg extension? (closed)

Yes: 37 · No: 3

Voters: aharvey (Yes), ajf (Yes), brandon (Yes), bwoebi (Yes), dm (Yes), dmitry (No), dsp (Yes), fa (Yes), francois (Yes), galvao (Yes), guilhermeblanco (Yes), gwynne (Yes), irker (Yes), jedibc (Yes), jpauli (Yes), kalle (Yes), kinncj (Yes), krakjoe (Yes), kriscraig (Yes), laruence (Yes), leigh (Yes), levim (Yes), lstrojny (Yes), mbeccati (Yes), mike (No), nikic (Yes), peehaa (Yes), philstu (Yes), pollita (Yes), rasmus (Yes), rdohms (Yes), remi (No), salathe (Yes), sebastian (Yes), stas (Yes), stelianm (Yes), thekid (Yes), till (Yes), tyrael (Yes), yunosh (Yes)

### Unbundle the ext/mysql extension? (closed)

Yes: 28 · No: 12

Voters: ab (No), aharvey (Yes), ajf (No), bwoebi (Yes), dm (Yes), dmitry (No), dsp (No), fredemmott (No), galvao (Yes), guilhermeblanco (Yes), gwynne (Yes), irker (Yes), jedibc (Yes), jpauli (Yes), kalle (Yes), kinncj (Yes), krakjoe (Yes), kriscraig (Yes), laruence (No), leigh (Yes), levim (Yes), lstrojny (Yes), mbeccati (No), mike (Yes), nikic (Yes), peehaa (Yes), philstu (Yes), pollita (No), rasmus (No), rdohms (Yes), remi (No), salathe (No), sebastian (Yes), stas (Yes), stelianm (Yes), thekid (Yes), till (Yes), tyrael (Yes), yunosh (Yes), zeev (No)

### Remove assignment of new by reference? (closed)

Yes: 31 · No: 6

Voters: aharvey (Yes), ajf (Yes), bwoebi (Yes), dm (Yes), fa (Yes), francois (Yes), galvao (Yes), guilhermeblanco (Yes), gwynne (Yes), irker (Yes), jedibc (Yes), jpauli (Yes), kalle (Yes), krakjoe (Yes), kriscraig (Yes), laruence (No), leigh (Yes), levim (Yes), lstrojny (Yes), mbeccati (Yes), mike (No), nikic (Yes), peehaa (Yes), philstu (Yes), pollita (No), rasmus (No), rdohms (Yes), salathe (Yes), sebastian (Yes), seld (Yes), stas (No), stelianm (Yes), thekid (Yes), till (Yes), tyrael (Yes), yunosh (Yes), zeev (No)

### Remove support for calls from incompatible context? (closed)

Yes: 34 · No: 0

Voters: aharvey (Yes), ajf (Yes), dmitry (Yes), dsp (Yes), fredemmott (Yes), galvao (Yes), guilhermeblanco (Yes), gwynne (Yes), irker (Yes), jedibc (Yes), jpauli (Yes), kalle (Yes), krakjoe (Yes), kriscraig (Yes), laruence (Yes), leigh (Yes), levim (Yes), lstrojny (Yes), mbeccati (Yes), mike (Yes), nikic (Yes), peehaa (Yes), philstu (Yes), pollita (Yes), rasmus (Yes), rdohms (Yes), salathe (Yes), sebastian (Yes), stas (Yes), stelianm (Yes), thekid (Yes), till (Yes), tyrael (Yes), zeev (Yes)

### Remove dl() in fpm-fcgi SAPI? (closed)

Yes: 32 · No: 0

Voters: aharvey (Yes), ajf (Yes), bwoebi (Yes), dmitry (Yes), dsp (Yes), fa (Yes), galvao (Yes), guilhermeblanco (Yes), gwynne (Yes), irker (Yes), jedibc (Yes), jpauli (Yes), kalle (Yes), krakjoe (Yes), kriscraig (Yes), laruence (Yes), leigh (Yes), lstrojny (Yes), mbeccati (Yes), mike (Yes), nikic (Yes), peehaa (Yes), pollita (Yes), rasmus (Yes), rdohms (Yes), salathe (Yes), sebastian (Yes), stas (Yes), stelianm (Yes), till (Yes), tyrael (Yes), yunosh (Yes)

### Remove (set_)magic_quotes_runtime() functions? (closed)

Yes: 36 · No: 0

Voters: aharvey (Yes), ajf (Yes), bwoebi (Yes), dsp (Yes), fa (Yes), francois (Yes), fredemmott (Yes), galvao (Yes), guilhermeblanco (Yes), gwynne (Yes), irker (Yes), jedibc (Yes), jpauli (Yes), kalle (Yes), krakjoe (Yes), kriscraig (Yes), laruence (Yes), leigh (Yes), levim (Yes), lstrojny (Yes), mbeccati (Yes), mike (Yes), nikic (Yes), peehaa (Yes), philstu (Yes), pollita (Yes), rasmus (Yes), rdohms (Yes), salathe (Yes), sebastian (Yes), stas (Yes), stelianm (Yes), thekid (Yes), till (Yes), tyrael (Yes), yunosh (Yes)

### Remove listed deprecated functions? (closed)

Yes: 31 · No: 0

Voters: aharvey (Yes), ajf (Yes), bwoebi (Yes), dsp (Yes), fa (Yes), galvao (Yes), guilhermeblanco (Yes), gwynne (Yes), irker (Yes), jedibc (Yes), jpauli (Yes), kalle (Yes), krakjoe (Yes), kriscraig (Yes), laruence (Yes), leigh (Yes), lstrojny (Yes), mbeccati (Yes), mike (Yes), nikic (Yes), peehaa (Yes), philstu (Yes), pollita (Yes), rasmus (Yes), rdohms (Yes), salathe (Yes), sobak (Yes), stelianm (Yes), till (Yes), tyrael (Yes), yunosh (Yes)

### Remove xsl.security_prefs ini directive? (closed)

Yes: 28 · No: 0

Voters: aharvey (Yes), ajf (Yes), bwoebi (Yes), fa (Yes), galvao (Yes), guilhermeblanco (Yes), gwynne (Yes), jedibc (Yes), jpauli (Yes), kalle (Yes), krakjoe (Yes), kriscraig (Yes), leigh (Yes), levim (Yes), lstrojny (Yes), mbeccati (Yes), mike (Yes), nikic (Yes), peehaa (Yes), philstu (Yes), pollita (Yes), rasmus (Yes), salathe (Yes), stas (Yes), stelianm (Yes), till (Yes), tyrael (Yes), yunosh (Yes)

### Remove extension specific encoding ini directives? (closed)

Yes: 26 · No: 0

Voters: aharvey (Yes), ajf (Yes), bwoebi (Yes), dmitry (Yes), galvao (Yes), guilhermeblanco (Yes), gwynne (Yes), jedibc (Yes), jpauli (Yes), kalle (Yes), krakjoe (Yes), kriscraig (Yes), leigh (Yes), lstrojny (Yes), mbeccati (Yes), mike (Yes), peehaa (Yes), philstu (Yes), pollita (Yes), rasmus (Yes), salathe (Yes), stas (Yes), stelianm (Yes), till (Yes), tyrael (Yes), yunosh (Yes)

### Remove $is_dst parameter of the mktime() and gmmktime() functions? (closed)

Yes: 28 · No: 0

Voters: aharvey (Yes), ajf (Yes), galvao (Yes), guilhermeblanco (Yes), gwynne (Yes), irker (Yes), jedibc (Yes), jpauli (Yes), kalle (Yes), krakjoe (Yes), kriscraig (Yes), leigh (Yes), lstrojny (Yes), mbeccati (Yes), mike (Yes), nikic (Yes), peehaa (Yes), philstu (Yes), pollita (Yes), rasmus (Yes), salathe (Yes), sebastian (Yes), stas (Yes), stelianm (Yes), thekid (Yes), till (Yes), tyrael (Yes), yunosh (Yes)

### Remove support for #-style comments in ini files? (closed)

Yes: 27 · No: 4

Voters: aharvey (Yes), ajf (Yes), dmitry (No), fa (Yes), galvao (Yes), guilhermeblanco (Yes), gwynne (Yes), irker (Yes), jedibc (Yes), jpauli (Yes), kalle (Yes), krakjoe (Yes), kriscraig (Yes), leigh (Yes), levim (No), lstrojny (No), mbeccati (Yes), mike (No), nikic (Yes), peehaa (Yes), philstu (Yes), pollita (Yes), rasmus (Yes), rdohms (Yes), salathe (Yes), sebastian (Yes), stelianm (Yes), thekid (Yes), till (Yes), tyrael (Yes), yunosh (Yes)

### Disallow string category names in setlocale()? (closed)

Yes: 27 · No: 1

Voters: aharvey (Yes), ajf (Yes), galvao (Yes), guilhermeblanco (Yes), gwynne (Yes), irker (Yes), jedibc (Yes), jpauli (Yes), kalle (Yes), krakjoe (Yes), kriscraig (Yes), leigh (Yes), lstrojny (Yes), mbeccati (Yes), mike (Yes), nikic (Yes), peehaa (Yes), philstu (Yes), pollita (No), rasmus (Yes), salathe (Yes), sebastian (Yes), sobak (Yes), stas (Yes), stelianm (Yes), till (Yes), tyrael (Yes), yunosh (Yes)

### Disallow enabling unsafe curl uploads? (closed)

Yes: 19 · No: 6

Voters: aharvey (Yes), ajf (Yes), fredemmott (Yes), galvao (Yes), guilhermeblanco (Yes), gwynne (No), jpauli (Yes), kalle (Yes), krakjoe (Yes), kriscraig (Yes), laruence (No), leigh (Yes), lstrojny (Yes), mbeccati (Yes), mike (No), nikic (Yes), peehaa (Yes), philstu (Yes), pollita (No), rasmus (Yes), salathe (No), sebastian (Yes), stas (Yes), till (No), tyrael (Yes)

### Remove preg_replace() eval modifier? (closed)

Yes: 33 · No: 1

Voters: aharvey (Yes), ajf (Yes), bwoebi (Yes), dmitry (No), dsp (Yes), fa (Yes), galvao (Yes), guilhermeblanco (Yes), gwynne (Yes), irker (Yes), jedibc (Yes), jpauli (Yes), kalle (Yes), krakjoe (Yes), kriscraig (Yes), leigh (Yes), levim (Yes), lstrojny (Yes), mbeccati (Yes), mike (Yes), nikic (Yes), peehaa (Yes), philstu (Yes), pollita (Yes), rasmus (Yes), salathe (Yes), sebastian (Yes), sobak (Yes), stas (Yes), stelianm (Yes), thekid (Yes), till (Yes), tyrael (Yes), yunosh (Yes)

### Remove PDO::PGSQL_ATTR_DISABLE_NATIVE_PREPARED_STATEMENT driver option? (closed)

Yes: 20 · No: 5

Voters: aharvey (Yes), ajf (Yes), galvao (Yes), guilhermeblanco (Yes), gwynne (Yes), jedibc (Yes), jpauli (Yes), kalle (Yes), krakjoe (Yes), kriscraig (Yes), laruence (No), leigh (Yes), lstrojny (Yes), mbeccati (Yes), mike (Yes), nikic (Yes), peehaa (Yes), philstu (Yes), pollita (No), rasmus (No), salathe (No), sebastian (Yes), stas (No), tyrael (Yes), yunosh (Yes)

### Remove CN_match and SNI_server_name stream context options? (closed)

Yes: 20 · No: 5

Voters: aharvey (Yes), ajf (Yes), bwoebi (Yes), galvao (Yes), guilhermeblanco (Yes), gwynne (Yes), jedibc (Yes), jpauli (Yes), kalle (Yes), krakjoe (Yes), kriscraig (Yes), leigh (Yes), lstrojny (Yes), mbeccati (Yes), mike (No), nikic (Yes), peehaa (Yes), philstu (Yes), pollita (No), rasmus (No), salathe (Yes), sebastian (Yes), stas (No), till (No), tyrael (Yes)

## Discussions on the mailing list

- [\[RFC\] Remove deprecated functionality in PHP 7](https://externals.io/message/77882.md) — started on 2014-10-11, 47 messages
- [\[VOTE\] Remove deprecated functionality in PHP 7](https://externals.io/message/80100.md) — started on 2015-01-02, 20 messages
- [Remove $this from incompatible context](https://externals.io/message/82535.md) — started on 2015-02-12, 26 messages

---

## Introduction

This RFC proposes to remove functionality which has been deprecated during the 5.x cycle.

The following extensions are deprecated:

- ext/ereg (since PHP 5.3; use ext/pcre instead) [REMOVED](https://github.com/php/php-src/commit/fea9a6fc7702c53df5e9f4c16857dc921d8b5997) ([PECL extension](http://pecl.php.net/package/ereg))
- ext/mysql (since PHP 5.5; use ext/mysqli or ext/pdo\_mysql instead) [REMOVED](https://github.com/php/php-src/commit/fd1578c196575c7e120a84ee030bb87c14a199b0) ([PECL extension](http://pecl.php.net/package/mysql))

The following language features are deprecated:

- Assignment of `new` by reference (since PHP 5.3; use normal assignment instead) [REMOVED](https://github.com/php/php-src/commit/4d3e4d3bf994739681613f9061d056e10f731b65)
- Scoped calls of non-static methods from incompatible `$this` context (since PHP 5.6) [REMOVED](https://github.com/php/php-src/commit/085774997b591c2babbb623fe7102ce2c77bc9fb)

The following functions are deprecated:

- `dl` on fpm-fcgi (since PHP 5.3) [REMOVED](https://github.com/php/php-src/commit/e05993dfa20e934ba99ccd5b2b944a7759126f58)
- `set_magic_quotes_runtime` and `magic_quotes_runtime` (since PHP 5.4) [REMOVED](https://github.com/php/php-src/commit/a60efc5e11b65083ef4cc8a132df620e1642dd76)
- `set_socket_blocking` (since PHP 5.4; use `stream_set_blocking` instead) [REMOVED](https://github.com/php/php-src/commit/ca11bc0325496bef94d4417f300e323040fb11db)
- `mcrypt_generic_end` (since PHP 5.4; use `mcrypt_generic_deinit` instead) [REMOVED](https://github.com/php/php-src/commit/c488a4570197240af8e05eaab95c0b308c2246d8)
- `mcrypt_ecb`, `mcrypt_cbc`, `mcrypt_cfb` and `mcrypt_ofb` (since PHP 5.5, but documented as deprecated earlier; use `mcrypt_encrypt` and `mcrypt_decrypt` instead) [REMOVED](https://github.com/php/php-src/commit/7810659cc372b17d48a7f0a799cc1509471916a1)
- `datefmt_set_timezone_id` and `IntlDateFormatter::setTimeZoneID` (since PHP 5.5; use `datefmt_set_timezone` or `IntlDateFormatter::setTimeZone` instead) [REMOVED](https://github.com/php/php-src/commit/cf0ffa8e4c0bb92bfae60963a6e4c0dea00bd003)

The following ini options are deprecated:

- `xsl.security_prefs` (since PHP 5.4; use `XsltProcessor::setSecurityPrefs` instead) [REMOVED](https://github.com/php/php-src/commit/a81e65a5018a04379914c605f7a9c69ac8941600)
- `iconv.input_encoding`, `iconv.output_encoding`, `iconv.internal_encoding`, `mbstring.http_input`, `mbstring.http_output` and `mbstring.internal_encoding` (since PHP 5.6; use `php.input_encoding`, `php.internal_encoding` and `php.output_encoding` instead) \[TODO\]

The following miscellaneous functionality is deprecated:

- The `$is_dst` parameter of the `mktime()` and `gmmktime()` functions (since PHP 5.1) [REMOVED](https://github.com/php/php-src/commit/9c5eaac18b65038cc377c7335b32889b892cf1fc)
- `#` style comments in ini files (since PHP 5.3; use `;` style comments instead) [REMOVED](https://github.com/php/php-src/commit/83391b5518619cce7d2a1baf5a4434b1690a33d1)
- String category names in `setlocale()` (since PHP 5.3; use `LC_*` constants instead) [REMOVED](https://github.com/php/php-src/commit/4c115b6b71e31a289d84f72f8664943497b9ee31)
- Unsafe curl file uploads (since PHP 5.5; use `CurlFile` instead) [REMOVED](https://github.com/php/php-src/commit/b5184ef33606c808b66c4b2738c80376c95de65b)
- `preg_replace()` eval modifier (since PHP 5.5; use `preg_replace_callback` instead) [REMOVED](https://github.com/php/php-src/commit/cb9c99ebd075d1d4fae0cbf5df54ca14c4071584)
- `PDO::PGSQL_ATTR_DISABLE_NATIVE_PREPARED_STATEMENT` driver option (since PHP 5.6; use `PDO::ATTR_EMULATE_PREPARES` instead) [REMOVED](https://github.com/php/php-src/commit/4694e1c02039114915704f0206f1ffb7a0efe4ad)
- `CN_match` and `SNI_server_name` stream context option (since PHP 5.6; use `peer_name` instead) [REMOVED](https://github.com/php/php-src/commit/2a87a42cd431ea8008ce24db6e57948052ff805d)

## Patches and Tests

Note: Patches are very outdated. I'll update them after the votes.

- Removal of ext/ereg: <https://github.com/php/php-src/pull/816>
- Removal of everything else not marked with `[TODO]`: <https://github.com/php/php-src/pull/815>

## Votes

Voting started on 2015-01-02 and ended on 2015-01-16. All votes refer to PHP 7.

All removals have been accepted.

### ext/ereg

The ereg extension has been deprecated since PHP 5.3. The PCRE extension should be used instead. PCRE provides better Unicode support and many more features in general. The ereg extension is effectively unmaintained currently.

If ext/ereg is removed as a bundled extension, it can still be made available as a PECL extension.

Vote: Requires simple majority.

**Vote: Unbundle the ext/ereg extension?** — Yes: 37 · No: 3 (closed)

### ext/mysql

The mysql extension has been deprecated since PHP 5.5. The mysqli or PDO extension should be used instead. The deprecation has been decided in [mysql\_deprecation](https://externals.io/rfc/mysql_deprecation), where a discussion of the reasons behind this decision can be found.

If ext/mysql is removed as a bundled extension, it can still be made available as a PECL extension.

Vote: Requires simple majority.

**Vote: Unbundle the ext/mysql extension?** — Yes: 28 · No: 12 (closed)

### Assignment of new by reference

Since PHP 5.3 assignment of `new` expressions by references is deprecated. It can be replaced with a normal assignment [1)](#fn__1):

```php
// Instead of
$obj =& new ClassName;
// Write
$obj = new ClassName;
```

Assigning the return value by reference is no longer necessary since PHP 5.0.

Vote: Requires 2/3 majority.

**Vote: Remove assignment of new by reference?** — Yes: 31 · No: 6 (closed)

### Scoped calls of non-static methods from incompatible $this context

Since PHP 5.5 scoped calls of non-static methods from incompatible `$this` contexts are deprecated, while they already generated an `E_STRICT` level error previously. The deprecation has been decided in [incompat\_ctx](https://externals.io/rfc/incompat_ctx), where examples of this functionality can be found.

The RFC already specified that the functionality will be removed in the next version after deprecation, as such this vote may dropped.

Vote: Requires 2/3 majority.

**Vote: Remove support for calls from incompatible context?** — Yes: 34 · No: 0 (closed)

### dl() on fpm-fcgi

Use of `dl()` in the fpm-fcgi SAPI is deprecated since PHP 5.3.

Using the `dl()` function in SAPIs that run more than one request has stability concerns. As such it has already been removed from other multi-request SAPIs, fpm-fcgi is the last one left.

Vote: Requires simple majority.

**Vote: Remove dl() in fpm-fcgi SAPI?** — Yes: 32 · No: 0 (closed)

### set\_magic\_quotes\_runtime() and magic\_quotes\_runtime()

Support for magic quotes has been removed in PHP 5.4. To facilitate backwards compatibility the `set_magic_quotes_runtime()` and `magic_quotes_runtime()` functions have been retained, but deprecated. Attempting to enable magic quotes using them will result in a fatal error.

Vote: Requires simple majority.

**Vote: Remove (set\_)magic\_quotes\_runtime() functions?** — Yes: 36 · No: 0 (closed)

### Other deprecated functions

The following functions are deprecated:

- `set_socket_blocking` (since PHP 5.4; use `stream_set_blocking` instead)
- `mcrypt_generic_end` (since PHP 5.4; use `mcrypt_generic_deinit` instead)
- `mcrypt_ecb`, `mcrypt_cbc`, `mcrypt_cfb` and `mcrypt_ofb` (since PHP 5.5, but documented as deprecated earlier; use `mcrypt_encrypt` and `mcrypt_decrypt` instead)
- `datefmt_set_timezone_id` and `IntlDateFormatter::setTimeZoneID` (since PHP 5.5; use `datefmt_set_timezone` or `IntlDateFormatter::setTimeZone` instead)

These functions are just legacy aliases or quasi-aliases.

Vote: Requires simple majority.

**Vote: Remove listed deprecated functions?** — Yes: 31 · No: 0 (closed)

### xsl.security\_prefs ini directive

As a fix for CVE 2012-0057 ([Bug #54446](https://bugs.php.net/bug.php?id=54446)), which concerns reading and writing files using XSLT, the `XsltProcessor::setSecurityPrefs()` method and `xsl.security_prefs` ini directive have been added. The latter has been deprecated in PHP 5.4 to discourage global disabling of security features. Instead the `setSecurityPrefs()` method should be used on individual `XsltProcessor` instances where reading/writing files is necessary.

Vote: Requires simple majority.

**Vote: Remove xsl.security\_prefs ini directive?** — Yes: 28 · No: 0 (closed)

### iconv and mbstring encoding ini directives

The `iconv.input_encoding`, `iconv.output_encoding`, `iconv.internal_encoding`, `mbstring.http_input`, `mbstring.http_output` and `mbstring.internal_encoding` ini directives have been deprecated in PHP 5.6 by the [default\_encoding](https://externals.io/rfc/default_encoding) RFC. Instead the use of the more general `php.input_encoding`, `php.internal_encoding` and `php.output_encoding` ini directives is suggested.

Vote: Requires simple majority.

**Vote: Remove extension specific encoding ini directives?** — Yes: 26 · No: 0 (closed)

### $is\_dst parameter of the mktime() and gmmktime() functions

The `$is_dst` parameter of the `mktime()` and `gmmktime()` functions has been deprecated in PHP 5.1. Instead the timezone handling functions should be used.

Vote: Requires simple majority.

**Vote: Remove $is\_dst parameter of the mktime() and gmmktime() functions?** — Yes: 28 · No: 0 (closed)

### \#-style comments in ini files

The standard ini file format uses `;` to denote comments. However PHP [accidentially (?)](http://markmail.org/message/xsvd3eyrijlpnfl2) also supported comments starting with `#` in some circumstances. When this was discovered in PHP 5.3, they were deprecated.

Vote: Requires simple majority.

**Vote: Remove support for #-style comments in ini files?** — Yes: 27 · No: 4 (closed)

### String category names in setlocale()

Since PHP 5.3 the use of string category names in `setlocale()` is deprecated and the corresponding `LC_*` constants should be used instead:

```php
// Instead of
setlocale('LC_ALL', 'de_DE');
// Write
setlocale(LC_ALL, 'de_DE');
```

Vote: Requires simple majority.

**Vote: Disallow string category names in setlocale()?** — Yes: 27 · No: 1 (closed)

### Unsafe curl file uploads

As part of the [curl-file-upload](https://externals.io/rfc/curl-file-upload) RFC, the `CURLOPT_SAFE_UPLOAD` curl option has been introduced in PHP 5.5 to control whether the use of `CURLFile` is required to upload files. Since PHP 5.6 the option defaults to `true`.

For compatibility purposes the option will not be removed altogether, only the ability to set it to `false` is removed.

Vote: Requires simple majority.

**Vote: Disallow enabling unsafe curl uploads?** — Yes: 19 · No: 6 (closed)

### preg\_replace() eval modifier

Due to security considerations the [remove\_preg\_replace\_eval\_modifier](https://externals.io/rfc/remove_preg_replace_eval_modifier) RFC has deprecated the `/e` (eval) modifier used by `preg_replace()` in PHP 5.5. Instead `preg_replace_callback` should be used.

Vote: Requires simple majority.

**Vote: Remove preg\_replace() eval modifier?** — Yes: 33 · No: 1 (closed)

### PDO::PGSQL\_ATTR\_DISABLE\_NATIVE\_PREPARED\_STATEMENT driver option

In PHP 5.6 the pgsql specific driver option `PDO::PGSQL_ATTR_DISABLE_NATIVE_PREPARED_STATEMENT` was deprecated in favor of the more general `PDO::ATTR_EMULATE_PREPARES` option.

Vote: Requires simple majority.

**Vote: Remove PDO::PGSQL\_ATTR\_DISABLE\_NATIVE\_PREPARED\_STATEMENT driver option?** — Yes: 20 · No: 5 (closed)

### CN\_match and SNI\_server\_name stream context options

Since PHP 5.6 it is no longer necessary to explicitly specify the host name using the `CN_match` and `SNI_server_name` stream context options, it will be determined automatically instead. It is possible to manually specify a host name using the `peer_name` context option, which covers both CN and SNI. The old, separate options have been deprecated.

Vote: Requires simple majority.

**Vote: Remove CN\_match and SNI\_server\_name stream context options?** — Yes: 20 · No: 5 (closed)

[1)](#fnt__1)reference-breaking notwithstanding
