Skip to content

Commit 69d3c46

Browse files
feature #455 [PHP 8.3] Add SQLite3Exception class (Ayesh)
This PR was merged into the 1.x branch. Discussion ---------- [PHP 8.3] Add `SQLite3Exception` class Adds the new SQLite3Exception exception class added in PHP 8.3. - [RFC](https://wiki.php.net/rfc/sqlite3_exceptions) - [`SQLite3Exception`](https://www.php.net/manual/en/class.sqlite3exception.php) (TODO) - [PHP 8.3: SQLite3: New `\SQLite3Exception`, deprecations, and changes](https://php.watch/versions/8.3/SQLite3-exception-improvements#SQLite3Exception) Commits ------- 4910279 [PHP 8.3] Add `SQLite3Exception` class
2 parents 8a41c5a + 4910279 commit 69d3c46

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ Polyfills are provided for:
6565
- the `ldap_connect_wallet` function introduced in PHP 8.3;
6666
- the `stream_context_set_options` function introduced in PHP 8.3;
6767
- the `Date*Exception/Error` classes introduced in PHP 8.3;
68+
- the `SQLite3Exception` class introduced in PHP 8.3;
6869

6970
It is strongly recommended to upgrade your PHP version and/or install the missing
7071
extensions whenever possible. This polyfill should be used only when there is no

src/Php83/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ This component provides features added to PHP 8.3 core:
1010
- [`ldap_connect_wallet`](https://wiki.php.net/rfc/deprecate_functions_with_overloaded_signatures)
1111
- [`stream_context_set_options`](https://wiki.php.net/rfc/deprecate_functions_with_overloaded_signatures)
1212
- [`Date*Exception/Error classes`](https://wiki.php.net/rfc/datetime-exceptions)
13+
- [`SQLite3Exception`](https://wiki.php.net/rfc/sqlite3_exceptions)
1314

1415
More information can be found in the
1516
[main Polyfill README](https://github.com/symfony/polyfill/blob/main/README.md).
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php
2+
3+
/*
4+
* This file is part of the Symfony package.
5+
*
6+
* (c) Fabien Potencier <fabien@symfony.com>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
12+
if (\PHP_VERSION_ID < 80300) {
13+
class SQLite3Exception extends Exception
14+
{
15+
}
16+
}

0 commit comments

Comments
 (0)