php-src/ext
Calvin Buckley 5a2b251610 Fix persistent procedural ODBC connections not getting closed
Like oci8, procedural ODBC uses an apply function on the hash list to
enumerate persistent connections and close the specific one. However,
this function take zvals, not resources. However, it was getting casted
as such, causing it to interpret the pointer incorrectly. This could
have caused other issues, but mostly manifested as failing to close the
connection even fi it matched.

The function now takes a zval and gets the resource from that. In
addition, it also removes the cast of the function pointer and moves
casting to the function body, to avoid possible confusion like this in
refactors again. It also cleans up style and uses constants in the
function body.

Closes GH-12132

Signed-off-by: George Peter Banyard <girgias@php.net>
2023-09-06 01:55:02 +01:00
..
bcmath
bz2 Merge branch 'PHP-8.0' into PHP-8.1 2022-06-25 07:39:55 +01:00
calendar
com_dotnet Merge branch 'PHP-8.0' into PHP-8.1 2022-06-18 11:50:14 +02:00
ctype
curl Fix EXPECT for bug52820.phpt on newer curl versions 2023-08-10 15:51:53 +02:00
date Fix GH-11416: Crash with DatePeriod when uninitialised objects are passed in 2023-08-09 15:39:13 +01:00
dba Merge branch 'PHP-8.0' into PHP-8.1 2022-07-27 12:13:32 +02:00
dl_test [skip ci] Fix borked xleak skip on <PHP-8.3 2023-09-01 12:39:03 +02:00
dom Add missing EXTENSIONS section to DOM tests 2023-08-26 18:37:42 +02:00
enchant
exif Fix GH-10834: exif_read_data() cannot read smaller stream wrapper chunk sizes 2023-05-12 23:37:00 +02:00
ffi Fix leaking definitions on FFI::cdef()->new() 2023-07-21 10:42:19 +02:00
fileinfo fileinfo: Backport xz detection fix 2023-07-01 17:58:38 +02:00
filter Add missing EXTENSION section to tests 2022-10-27 14:39:43 +01:00
ftp Fix GH-10562: Memory leak and invalid state with consecutive ftp_nb_fget 2023-07-07 17:55:53 +02:00
gd Fix most external GD 2.3.3 compatibility 2023-07-06 21:39:40 +02:00
gettext
gmp Merge branch 'PHP-8.0' into PHP-8.1 2022-09-13 11:33:09 +01:00
hash Fix hash_pbkdf2 options parameter 2023-07-18 19:21:13 +02:00
iconv ext/iconv: fix build for netbsd. 2023-08-19 23:09:22 +01:00
imap Fix GH-11629: bug77020.phpt tries to send mail 2023-07-10 13:29:49 +02:00
intl Fixed bug GH-12020: intl_get_error_message() broken after MessageFormatter::formatMessage() fails 2023-09-03 01:02:46 +01:00
json Expose JSON internal function to escape string 2023-05-13 18:41:33 +01:00
ldap Fix GH-10112: LDAP\Connection::__construct() refers to ldap_create() 2022-12-16 14:36:30 +01:00
libxml Merge branch 'PHP-8.0' into PHP-8.1 2023-07-31 19:53:43 +01:00
mbstring Fix GH-11300: license issue: restricted unicode license headers 2023-07-01 21:55:21 +02:00
mysqli Fix failing test on nightly 2023-08-17 18:45:10 +01:00
mysqlnd Fix implicit/explicit port in mysqlnd 2023-08-16 18:59:07 +01:00
oci8 Unparallelize IO heavy tests 2023-03-27 16:33:36 +02:00
odbc Fix persistent procedural ODBC connections not getting closed 2023-09-06 01:55:02 +01:00
opcache [skip ci] Fix borked xleak skip on <PHP-8.3 2023-09-01 12:39:03 +02:00
openssl Fix CS and checking for IPv6 SAN verify 2023-06-09 16:49:09 +01:00
pcntl Revert the fix for GH-11498 2023-08-03 21:48:34 +02:00
pcre Revert "Mangle PCRE regex cache key with JIT option" 2023-06-22 23:13:37 +02:00
pdo Fix GH-11587 PDO::ATTR_STRINGIFY_FETCHES should return strings even in if PDO::ATTR_EMULATE_PREPARES is enabled 2023-07-17 07:08:45 +01:00
pdo_dblib Merge branch 'PHP-8.0' into PHP-8.1 2022-08-26 14:59:08 +02:00
pdo_firebird Fix GH-10908: Bus error with PDO Firebird on RPI with 64 bit kernel and 32 bit userland 2023-03-27 21:01:06 +02:00
pdo_mysql Fix MySQL Statement has a empty query result when the response field has changed, also Segmentation fault 2023-08-04 22:25:01 +01:00
pdo_oci Unparallelize IO heavy tests 2023-03-27 16:33:36 +02:00
pdo_odbc Fix missing and inconsistent error check on SQLAllocHandle 2023-03-15 21:36:50 +01:00
pdo_pgsql Merge branch 'PHP-8.0' into PHP-8.1 2022-09-05 17:26:13 +02:00
pdo_sqlite Fix GH-11492: Make test failure: ext/pdo_sqlite/tests/bug_42589.phpt 2023-06-22 20:49:00 +02:00
pgsql ext/pgsql: fix PGtrace invalid free issue. 2023-06-18 13:44:39 +01:00
phar Mark buildFromIterator test as conflicting 2023-08-04 21:08:39 +02:00
posix Fix GH-10202: posix_getgr(gid|nam)_basic.phpt fail 2023-01-02 16:54:47 +00:00
pspell
readline [skip ci] Fix race condition in readline test 2023-05-26 11:39:22 +02:00
reflection Fix segfault in format_default_value due to unexpected enum/object 2023-08-17 18:43:11 +02:00
session Remove session ID set through REQUEST_URI 2023-06-22 12:35:55 +02:00
shmop
simplexml Merge branch 'PHP-8.0' into PHP-8.1 2023-07-31 20:01:03 -05:00
skeleton
snmp
soap [skip ci] Fix trailing data in unserialize in soap test 2023-08-28 17:24:45 +02:00
sockets Fix uninitialized variable accesses in sockets/conversions 2023-03-29 19:44:30 +02:00
sodium
spl Fix GH-11972: RecursiveCallbackFilterIterator regression in 8.1.18 2023-08-30 22:30:59 +02:00
sqlite3 Fix replaced error handling in SQLite3Stmt::__construct 2023-07-07 10:24:54 +02:00
standard [skip ci] Fix borked xleak skip on <PHP-8.3 2023-09-01 12:39:03 +02:00
sysvmsg
sysvsem
sysvshm Add Windows GitHub actions build 2023-03-01 23:02:03 +01:00
tidy Unparallelize IO heavy tests 2023-03-27 16:33:36 +02:00
tokenizer Add missing EXTENSION section to tests 2022-10-27 14:39:43 +01:00
xml Merge branch 'PHP-8.0' into PHP-8.1 2023-07-31 19:53:43 +01:00
xmlreader Merge branch 'PHP-8.0' into PHP-8.1 2023-07-31 20:01:03 -05:00
xmlwriter Fix missing check for xmlTextWriterEndElement 2023-01-15 15:34:43 +00:00
xsl Merge branch 'PHP-8.0' into PHP-8.1 2023-07-31 19:53:43 +01:00
zend_test adds failing test case for #12060 2023-09-05 10:23:22 +01:00
zip [skip ci] Fix tmp file clash in ext/zip/tests/oo_cancel.phpt 2023-05-01 15:28:59 +02:00
zlib Fix incorrect string length for output_handler in zlib ini code 2023-02-23 18:47:26 +00:00
ext_skel.php