Pierrick Charron
6fd2b39397
Indent with TAB in .h files generated by gen_stub
2022-06-13 08:55:54 -04:00
Máté Kocsis
7d6ce85aa9
Declare ext/com_dotnet constants in stubs ( #8675 )
2022-06-06 15:56:24 +02:00
Christoph M. Becker
057737c92f
Merge branch 'PHP-8.1'
...
* PHP-8.1:
Prevent strict interpretation of tentative definition
2021-12-26 16:43:34 +01:00
Christoph M. Becker
0cd1741004
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Prevent strict interpretation of tentative definition
2021-12-26 16:42:33 +01:00
Christoph M. Becker
e76ddbd2f6
Prevent strict interpretation of tentative definition
...
This header declaration is never supposed to be interpreted as
definition; otherwise, the handlers are not properly initialized, what
happens, for instance, with ASan instrumented MSVC builds.
Closes GH-7827.
2021-12-26 16:41:25 +01:00
George Peter Banyard
f6616846e1
Revert "Refactor php_com_cache_typelib()"
...
As php_com_typelibraries is a persistent HashTable we need to insert
a persistent string, therefore initialising a new one.
This reverts commit 0497b2bf4b .
2021-11-03 20:44:12 +00:00
DmitryMaksimov
2b32cafd88
Use neutral language instead of default on Windows
...
Most notably, this affects some Windows specific error messages, which
are no longer in the default language of the system, to better match
error messages provided by PHP which are not localized anyway.
This also affects the com_dotnet extension, where it could fix some
DCOM related issues. Furthermore, the constant `LOCALE_NEUTRAL` is
added, which can be used for `variant_cmp()`.
Closes GH-7613.
2021-11-03 19:39:20 +01:00
George Peter Banyard
0497b2bf4b
Refactor php_com_cache_typelib()
2021-11-03 17:58:18 +00:00
George Peter Banyard
da012ba324
Refactor php_com_locate_typeinfo()
...
Use zend_string pointers
Use bool
2021-09-29 13:17:20 +01:00
George Peter Banyard
816d4ac7a8
Voidify php_com_saproxy_create()
2021-09-29 13:17:20 +01:00
George Peter Banyard
68702b7e78
Voidify php_com_persist_minit()
2021-09-29 13:17:19 +01:00
George Peter Banyard
bc8703d861
Use standard bool/zend_result instead of int
2021-09-29 13:17:16 +01:00
George Peter Banyard
9409c8f11b
Refactor php_com_olestring_to_string()
...
Return a zend_string* instead of a char* with an out-param for the length
2021-09-29 13:16:26 +01:00
George Peter Banyard
3dc4863f2b
Refactor php_com_get_id_of_name()
...
Use zend_string*
2021-09-29 13:11:51 +01:00
George Peter Banyard
f3ca081379
Refactor php_com_do_invoke()
...
Use zend_string*
Return zend_result
2021-09-29 13:11:50 +01:00
Máté Kocsis
ad471fb22d
Merge branch 'PHP-8.1'
...
* PHP-8.1:
Remove extra space before param default values
Fix class synopsis generation for interfaces
2021-09-08 12:25:13 +02:00
Máté Kocsis
a5e5483439
Remove extra space before param default values
2021-09-08 12:24:47 +02:00
Nikita Popov
768265cd22
Fix some more CLEAN sections
2021-09-06 17:03:35 +02:00
DmitryMaksimov
bdf53cc91f
Dispatch using LANG_NEUTRAL instead of LOCALE_SYSTEM_DEFAULT
...
This is relevant wrt. case insensitive identifiers.
Closes GH-7391.
2021-08-23 14:07:23 +02:00
Máté Kocsis
2378f35787
Use single line phpdoc in stubs where possible
2021-07-20 13:16:56 +02:00
Joe Watkins
570d9b63e9
Not serializable flag permeation
2021-07-20 12:28:35 +02:00
Patrick Allaert
aff365871a
Fixed some spaces used instead of tabs
2021-06-29 11:30:26 +02:00
Christoph M. Becker
139a73b5a4
Improve performance of AppVeyor test runs
...
We only load a minimum set of extensions, and rely on dynamic loading
of others due to `--EXTENSION--` triggers. We do not run the imap,
ldap and snmp test suites, because most of the tests would be skipped
after timeouts anyway.
Closes GH-7150.
2021-06-14 23:36:17 +02:00
Máté Kocsis
532c60cb92
Add support for tentative return types of internal methods
...
RFC: https://wiki.php.net/rfc/internal_method_return_types
Closses GH-6971
2021-05-14 15:55:25 +02:00
KsaR
01b3fc03c3
Update http->https in license ( #6945 )
...
1. Update: http://www.php.net/license/3_01.txt to https, as there is anyway server header "Location:" to https.
2. Update few license 3.0 to 3.01 as 3.0 states "php 5.1.1, 4.1.1, and earlier".
3. In some license comments is "at through the world-wide-web" while most is without "at", so deleted.
4. fixed indentation in some files before |
2021-05-06 12:16:35 +02:00
Max Semenik
56f90492d6
Migrate skip checks to --EXTENSIONS--, p1
...
For rationale, see https://github.com/php/php-src/pull/6787
Extensions migrated in this part:
* bcmath
* bz2
* calendar
* com_dotnet
* ctype
Closes GH-6797.
2021-03-22 17:51:02 +01:00
George Peter Banyard
a74e248c43
Use zend_string_equals() API instead of strcmp() in COM extension
2021-03-17 16:36:16 +00:00
Máté Kocsis
4c6533c257
Generate class entries from stubs for com, standard, xmlreader, xmlwriter, xsl, zip, Zend
...
Closes GH-6706
2021-02-22 15:24:03 +01:00
Christoph M. Becker
062a891be7
Merge branch 'PHP-8.0'
...
* PHP-8.0:
Add missing stub for com_exception
2021-01-24 16:07:34 +01:00
Christoph M. Becker
bff7761653
Add missing stub for com_exception
2021-01-24 16:06:49 +01:00
Nikita Popov
3e01f5afb1
Replace zend_bool uses with bool
...
We're starting to see a mix between uses of zend_bool and bool.
Replace all usages with the standard bool type everywhere.
Of course, zend_bool is retained as an alias.
2021-01-15 12:33:06 +01:00
Christoph M. Becker
807775b641
Fix COMPersistHelper::__construct() stub
...
`$variant` is optional.
2020-11-24 00:23:29 +01:00
Christoph M. Becker
a08a2b48b4
Strip trailing line breaks and periods from Windows error messages
...
PHP error messages should not contain line breaks, so we remove these
from the Windows specific error messages. We also remove trailing
periods for the same reason.
Closes GH-6423.
2020-11-12 16:42:28 +01:00
Christoph M. Becker
2da00fadc8
Merge branch 'PHP-7.4' into PHP-8.0
...
* PHP-7.4:
Fix #62474 : com_event_sink crashes on certain arguments
2020-10-26 11:55:29 +01:00
Christoph M. Becker
f9ba2ca136
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #62474 : com_event_sink crashes on certain arguments
2020-10-26 11:54:45 +01:00
Christoph M. Becker
7424bfc7ac
Fix #62474 : com_event_sink crashes on certain arguments
...
We have to make sure that the variant is of type `VT_DISPATCH` before
we access it as such.
Closes GH-6372.
2020-10-26 11:48:57 +01:00
Christoph M. Becker
561b581947
Update ext/com_dotnet parameter names
...
Closes GH-6296.
2020-10-08 11:45:53 +02:00
George Peter Banyard
e55f0c796c
Promote warnings to Error in COM extension
...
Closes GH-6141
2020-09-21 14:32:00 +01:00
Nikita Popov
c5401854fc
Run tidy
...
This should fix most of the remaining issues with tabs and spaces
being mixed in tests.
2020-09-18 14:28:32 +02:00
Máté Kocsis
c98d47696f
Consolidate new union type ZPP macro names
...
They will now follow the canonical order of types. Older macros are
left intact due to maintaining BC.
Closes GH-6112
2020-09-11 11:00:18 +02:00
Máté Kocsis
f7fbc6333f
Add more precise type info for stubs
...
Closes GH-6005
2020-09-01 16:35:56 +02:00
Christoph M. Becker
d4d52ba945
Prevent com::__construct() to modify the $server_name array
...
We switch to `zend_string`s for simplicity, so there's no need to
`convert_to_string()` anymore, what makes the array separation
superfluous.
Closes GH-6040
2020-08-31 17:44:27 +02:00
Christoph M. Becker
f956434df2
Merge branch 'PHP-7.4' into master
...
* PHP-7.4:
Catch potential exceptions during to string conversion
2020-08-27 10:26:15 +02:00
Christoph M. Becker
296030119c
Catch potential exceptions during to string conversion
...
As of PHP 7.4.0, exceptions are allowed to be thrown from inside
`__toString()` methods; we have to cater to that, and catch these
exceptions early.
Closes GH-6042
2020-08-27 10:23:18 +02:00
Christoph M. Becker
00edc3f4bc
Merge branch 'PHP-7.4' into master
...
* PHP-7.4:
Fix com_safearray_proxy related memory management issues
2020-08-26 15:43:43 +02:00
Christoph M. Becker
8e2f219fad
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix com_safearray_proxy related memory management issues
2020-08-26 15:40:57 +02:00
Christoph M. Becker
1b7ee6db88
Fix com_safearray_proxy related memory management issues
2020-08-26 15:39:32 +02:00
Christoph M. Becker
2f9e9d4d97
Merge branch 'PHP-7.4' into master
...
* PHP-7.4:
Separate COM::__construct()s $server_name array
2020-08-26 15:02:34 +02:00
Christoph M. Becker
b087bd2404
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Separate COM::__construct()s $server_name array
2020-08-26 15:01:22 +02:00
Christoph M. Becker
75ac3f1cba
Separate COM::__construct()s $server_name array
...
This may otherwise be modified.
2020-08-26 15:00:02 +02:00