php-src/ext
Christoph M. Becker 8b68274319
Fix method calls for PHP objects wrapped in variant
As is, methods of PHP can never be called, because we're first trying
to read the property with the name of the method.

We fix this by first checking for `DISPATCH_METHOD` and treat that as
method call, if the method would be callable.  Only otherwise we try to
access the respective property.

It needs to be noted that this breaks code which accesses a property of
an object, which defines a method of the same name.  However, instances
of such classes should never be wrapped in variants, because this can't
be distinguished by COM anyway.

Closes GH-16945.
2024-11-30 12:26:07 +01:00
..
bcmath Merge branch 'PHP-8.4' 2024-11-29 21:28:48 +09:00
bz2 ext/bz2: Check int params of bzcompress() are correct (#16108) 2024-09-28 22:38:53 +01:00
calendar Merge branch 'PHP-8.4' 2024-11-17 12:28:12 +00:00
com_dotnet Fix method calls for PHP objects wrapped in variant 2024-11-30 12:26:07 +01:00
ctype ext/[cd]*: fix a bunch of typos (#16298) 2024-10-09 17:40:42 +02:00
curl Factor out SETUP_ZLIB_LIB() (GH-16798) 2024-11-27 18:35:34 +01:00
date Merge branch 'PHP-8.4' 2024-11-01 23:51:06 +01:00
dba Merge branch 'PHP-8.2' into PHP-8.3 2024-11-26 21:25:05 +01:00
dl_test Fix incorrect filename of dl()'d internal consts (#16721) 2024-11-07 14:53:12 +01:00
dom Merge branch 'PHP-8.4' 2024-11-24 18:20:29 +01:00
enchant Remove useless code in ext-enchant (#16940) 2024-11-26 07:27:19 +01:00
exif ext/[ef]*: fix a bunch of typos (GH-16621) 2024-10-28 11:28:32 +01:00
ffi ext/[ef]*: fix a bunch of typos (GH-16621) 2024-10-28 11:28:32 +01:00
fileinfo Fail early in *nix build script 2024-11-09 14:09:58 +01:00
filter Merge branch 'PHP-8.4' 2024-11-26 15:41:10 +00:00
ftp ext/[ef]*: fix a bunch of typos (GH-16621) 2024-10-28 11:28:32 +01:00
gd Factor out SETUP_ZLIB_LIB() (GH-16798) 2024-11-27 18:35:34 +01:00
gettext Backport CI fixes to security branches 2024-10-28 15:57:16 +01:00
gmp ext/gmp: Check for valid bit index/start consistently 2024-11-29 16:55:38 +00:00
hash Merge branch 'PHP-8.4' 2024-11-10 20:35:04 +00:00
iconv Autotools: Fix iconv shared build with external library (#15686) 2024-09-01 22:06:37 +02:00
intl Merge branch 'PHP-8.4' 2024-11-15 18:57:35 +01:00
json Merge branch 'PHP-8.3' into PHP-8.4 2024-10-24 15:58:12 +02:00
ldap Merge branch 'PHP-8.4' 2024-11-20 11:14:32 +01:00
libxml Drop bogus ext/libxml dependency on ext/iconv (GH-16801) 2024-11-15 21:25:00 +01:00
mbstring Merge branch 'PHP-8.3' into PHP-8.4 2024-10-11 08:49:00 +01:00
mysqli Merge branch 'PHP-8.4' 2024-11-24 23:50:09 +01:00
mysqlnd Factor out SETUP_ZLIB_LIB() (GH-16798) 2024-11-27 18:35:34 +01:00
odbc Merge branch 'PHP-8.4' 2024-11-27 23:06:34 +01:00
opcache Merge branch 'PHP-8.4' 2024-11-29 16:28:53 +03:00
openssl Merge branch 'PHP-8.3' into PHP-8.4 2024-11-09 11:49:16 +01:00
pcntl pcntl: remove unneeded module shutdown function (#16977) 2024-11-28 08:40:52 +00:00
pcre Merge branch 'PHP-8.3' into PHP-8.4 2024-10-03 21:12:42 +02:00
pdo Merge branch 'PHP-8.4' 2024-11-06 20:32:53 +09:00
pdo_dblib Merge branch 'PHP-8.3' into PHP-8.4 2024-11-20 11:14:04 +01:00
pdo_firebird Merge branch 'PHP-8.4' 2024-11-20 11:14:32 +01:00
pdo_mysql Fixed the test because libmysql results type is string. (#16709) 2024-11-06 21:07:03 +09:00
pdo_odbc Upgrade master to Ubuntu 24.04 (GH-16704) 2024-11-07 16:32:45 +01:00
pdo_pgsql Remove disable_native_prepares 2024-11-25 22:27:43 +01:00
pdo_sqlite Fix GH-16131: Prevent mixing PDO sub-classes with different DSN 2024-10-22 22:51:29 +02:00
pgsql Merge branch 'PHP-8.4' 2024-11-26 22:49:29 +01:00
phar ext/phar: Refactor phar_call_openssl_signverify() 2024-11-11 15:00:08 +00:00
posix ext/posix: adding POSIX_SC_OPEN_MAX constant. 2024-11-02 14:28:07 +00:00
random ext/random: haiku supports arc4random api too. 2024-09-28 13:20:14 +01:00
readline Merge branch 'PHP-8.4' 2024-11-15 16:51:10 +00:00
reflection Merge branch 'PHP-8.4' 2024-11-26 14:07:32 +01:00
session Merge branch 'PHP-8.4' 2024-11-04 20:05:42 +01:00
shmop Make ext/shmop/tests/gh14537.phpt more resilient (GH-15985) 2024-09-22 17:03:16 +02:00
simplexml Merge branch 'PHP-8.3' into PHP-8.4 2024-11-16 13:42:14 +01:00
skeleton [skip-ci] Removed wrapping comments (#16894) 2024-11-24 00:57:09 +00:00
snmp Support bug64159.phpt on Windows CI (GH-15895) 2024-09-21 16:03:25 +02:00
soap Merge branch 'PHP-8.4' 2024-11-08 20:48:21 +01:00
sockets ext/sockets: Adding TCP_FUNCTION_BLK socket option for FreeBSD. 2024-11-21 23:00:06 +00:00
sodium Generated arginfo header files: combine preprocessor conditional blocks (#15736) 2024-09-04 13:04:22 +02:00
spl Merge branch 'PHP-8.4' 2024-11-04 17:50:37 +01:00
sqlite3 Generated arginfo header files: remove empty zend_function_entry arrays (#15705) 2024-09-03 23:19:53 +02:00
standard Merge branch 'PHP-8.4' 2024-11-29 19:22:07 +01:00
sysvmsg Merge branch 'PHP-8.3' into PHP-8.4 2024-11-03 13:40:25 +00:00
sysvsem Generated arginfo header files: remove empty zend_function_entry arrays (#15705) 2024-09-03 23:19:53 +02:00
sysvshm Merge branch 'PHP-8.3' into PHP-8.4 2024-10-26 15:08:17 +02:00
tidy Generated arginfo header files: use known strings for prop names when… (#15751) 2024-09-30 13:22:34 +02:00
tokenizer Generated arginfo header files: use known strings for prop names when… (#15751) 2024-09-30 13:22:34 +02:00
xml Backport 061058a9: Test fixes for libxml2 2.12.0 2024-10-12 15:12:40 +02:00
xmlreader Merge branch 'PHP-8.4' 2024-10-08 20:58:26 +02:00
xmlwriter Backport 4fe82131: Backport libxml2 2.13.2 fixes (#14816) 2024-10-12 15:12:40 +02:00
xsl Backport e2d97314: Backport deprecation warning ignores to unbreak CI 2024-10-12 15:12:40 +02:00
zend_test Merge branch 'PHP-8.4' 2024-11-25 20:33:26 +01:00
zip zip extension is 1.22.4 2024-09-26 09:39:10 +02:00
zlib Refactor zlib dictionary processing (GH-16407) 2024-10-16 12:21:50 +02:00
ext_skel.php [skip-ci] Removed wrapping comments (#16894) 2024-11-24 00:57:09 +00:00