| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Closes GH-6310
|
|
|
|
|
|
|
| |
This includes TypeErrors, ValueErrors, Error for uninitialized objects
and invalid user classes/callable instanciation
Closes GH-6212
|
|
|
|
|
| |
This should fix most of the remaining issues with tabs and spaces
being mixed in tests.
|
|
|
|
|
|
|
|
|
|
| |
bind parameters
Added new flags that allow skipping param_evt(s) that are not used by drivers,
in a backwards and forward compatible manner. Updated the pgsql, mysql, sqlite
and oci drivers to properly use the new flags. I've left out pdo_dblib, which
doesn't have a param_hook, and pdo_firebird, which seems to be using
PARAM_EVT_NORMALIZE in a wrong context (param type vs event type).
|
| |
|
|\
| |
| |
| |
| | |
* PHP-7.4:
Fix #64705 errorInfo property of PDOException is null when PDO::__construct() fails
|
| |\
| | |
| | |
| | |
| | | |
* PHP-7.3:
Fix #64705 errorInfo property of PDOException is null when PDO::__construct() fails
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
PDO::__construct() fails
PDO driver constructors are throwing PdoException without setting
errorInfo, so create a new reusable function that throws exceptions
for PDO and will also set the errorInfo. Use this function in
pdo_mysql, pdo_sqlite, and pdo_pgsql.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Per docs it should be -1. And would be on 32-bit systems, but
not on 64-bit systems.
(cherry picked from commit 39111585a2f8e40e72bdc662eb8b2e3c19e93615)
|
| | |
| | |
| | |
| | | |
Closes GH-5958
|
| | |
| | |
| | |
| | | |
Closes GH-5917
|
| | | |
|
| | |
| | |
| | |
| | | |
Putting these under a dummy PDO_SQLite_Ext class.
|
| | | |
|
| | |
| | |
| | |
| | | |
Closes GH-5590
|
| | |
| | |
| | |
| | | |
Closes GH-5758
|
|\ \ \
| |/ /
| | |
| | |
| | | |
* PHP-7.4:
Report len as -1 instead of INT_MAX
|
| | |
| | |
| | |
| | |
| | | |
Per docs it should be -1. And would be on 32-bit systems, but
not on 64-bit systems.
|
|\ \ \
| |/ /
| | |
| | |
| | | |
* PHP-7.4:
Fix #79664: PDOStatement::getColumnMeta fails on empty result set
|
| |\ \
| | |/
| | |
| | |
| | | |
* PHP-7.3:
Fix #79664: PDOStatement::getColumnMeta fails on empty result set
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
As its name suggests, `sqlite3_data_count` returns the number of
columns in the current row of the result set; we are interested in the
number of columns regardless of the current row, so we have to use
`sqlite3_column_count` instead.
|
| | |
| | |
| | |
| | | |
According to <https://www.php.net/manual/en/pdo.error-handling.php>.
|
| | |
| | |
| | |
| | | |
Closes GH-5312
|
| | | |
|
|\ \ \
| |/ /
| | |
| | |
| | | |
* PHP-7.4:
Apply tidy formatting
|
| | |
| | |
| | |
| | | |
Mostly reindent PHP scripts to spaces.
|
| | |
| | |
| | |
| | | |
Closes GH-5066 As a first step, let's capitalize their initial letter when it is applicable.
|
|\ \ \
| |/ /
| | |
| | |
| | | |
* PHP-7.4:
Fixed bug #79056
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
As ZPP now throws, it makes no sense to specify an explicit return
value.
|
| | |
| | |
| | |
| | | |
Part of https://wiki.php.net/rfc/engine_warnings.
|
| | |
| | |
| | |
| | | |
Closes GH-4732.
|
|\ \ \
| |/ /
| | |
| | |
| | |
| | | |
* PHP-7.4:
Update NEWS
Fix #78348: Remove -lrt from pdo_sqlite.so
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The fdatasync check has been removed since PHP 5.3.
The Solaris fix was introduced via
8d63360fc40dec579af5b5f455ef02b85caff5c5
and is today no longer relevant since the sqlite library is neither
bundled in php-src anymore neither the check needs to be done via the
PHP build system.
Closes GH-4485
|
|\ \ \
| |/ /
| | |
| | |
| | | |
* PHP-7.4:
Move HAVE_SQLITE3_CLOSE_V2 to pdo_sqlite
|
| | |
| | |
| | |
| | | |
Closes GH-4444
|
|\ \ \
| |/ /
| | |
| | |
| | | |
* PHP-7.4:
Remove unused sqlite symbols
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
- HAVE_SQLITE3_KEY is no longer used in php-src
- SQLITE_ENABLE_COLUMN_METADATA is no longer used in php-src
Closes GH-4443
|
|\ \ \
| |/ /
| | |
| | |
| | | |
* PHP-7.4:
Remove conditional calls of always available macros
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
These checks were once relevant for these extensions in PECL and PHP
versions without availability of the checked macros.
Closes GH-4405
|
|\ \ \
| |/ /
| | |
| | |
| | | |
* PHP-7.4:
Simplify PHP_CHECK_PDO_INCLUDES calls
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Conditional checks were once used for backwards compatibility with
phpize from PHP versions that didn't have this macro call yet.
Closes GH-4376
|
|\ \ \
| |/ / |
|
| | | |
|
|\ \ \
| |/ /
| | |
| | |
| | | |
* PHP-7.4:
Fix bug #78192 PDO SQLite SegFault when reuse statement after schema has changed
|
| |\ \
| | |/
| | |
| | |
| | | |
* PHP-7.3:
Fix bug #78192 PDO SQLite SegFault when reuse statement after schema has changed
|
| | |\
| | | |
| | | |
| | | |
| | | | |
* PHP-7.2:
Fix bug #78192 PDO SQLite SegFault when reuse statement after schema has changed
|
| | | |
| | | |
| | | |
| | | | |
Reset stmt->columns when column count changed on new execution of prepared statement
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This patch adds missing newlines, trims multiple redundant final
newlines into a single one, and trims redundant leading newlines in all
*.phpt sections.
According to POSIX, a line is a sequence of zero or more non-' <newline>'
characters plus a terminating '<newline>' character. [1] Files should
normally have at least one final newline character.
C89 [2] and later standards [3] mention a final newline:
"A source file that is not empty shall end in a new-line character,
which shall not be immediately preceded by a backslash character."
Although it is not mandatory for all files to have a final newline
fixed, a more consistent and homogeneous approach brings less of commit
differences issues and a better development experience in certain text
editors and IDEs.
[1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206
[2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2
[3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
|
| | | | |
|