Máté Kocsis
b06c95b631
Declare the missing true return types ( #13709 )
2024-03-16 07:26:37 +01:00
Máté Kocsis
577db99462
Verify stub aliases in CI ( #13682 )
...
In the same time, let's not verify implementation aliases since they may now legitimately differ from their aliased function/method counterparts (think about the ext/dom refactoring where e.g. many return type declarations have changed). Additionally, unnecessary `@no-verify` tags are cleaned up.
2024-03-13 23:32:35 +01:00
Máté Kocsis
f2e199e878
Implement "support doc comments for internal classes and functions" ( #13266 )
...
Fixes #13130
2024-02-25 08:41:31 +01:00
Máté Kocsis
10957e498c
Do not generate frameless info items when func info generation is disabled
...
While here, I fixed newlines around arginfo and function entry generation. Previously, newlines were repeated.
2024-02-18 11:39:00 +01:00
Kamil Tekiela
0b887042ae
mysqli_field_seek return type changed to true ( #11948 )
2023-08-14 19:04:34 +01:00
Máté Kocsis
e4f2376919
Improve string class constant code generation ( #9577 )
...
Using strlen() will make sure that non-constant values can also be used.
2022-09-26 23:12:34 +02:00
Máté Kocsis
b4ec3e9bc0
Do not generate CONST_CS when registering constants ( #9439 )
2022-08-28 08:27:19 +02:00
Máté Kocsis
e328c68305
Rename @cname to @cvalue in stubs ( #9043 )
...
@cname currently refers to the constant name in C. However, it is not always a (constant) name, but sometimes a function invocation, so naming it as @cvalue would be more appropriate.
2022-07-19 15:11:42 +02:00
Kamil Tekiela
5a69cb6fa1
Deprecate MYSQLI_IS_MARIADB
...
Closes GH-8919
2022-07-19 11:19:41 +01:00
Máté Kocsis
f0d536844f
Declare ext/mysqli constants in stubs ( #8811 )
2022-07-18 13:00:35 +02:00
Remi Collet
55a88f36b6
add SensitiveParameter as known string and use it in arginfo
2022-07-18 11:43:33 +02:00
Tim Düsterhus
342e18f105
Support the actual #[\SensitiveParameter]
attribute in stubs ( #8836 )
2022-07-12 12:43:44 +02:00
Kamil Tekiela
1dc51c7b90
Implement mysqli_execute_query() ( #8660 )
2022-07-06 12:23:46 +01:00
Máté Kocsis
49d3dde211
Declare true return types ( #8759 )
2022-06-18 22:06:50 +02:00
Pierrick Charron
1bcd8d394a
Update gen_stub to support #if around classes
2022-06-13 16:34:12 -04:00
Pierrick Charron
6fd2b39397
Indent with TAB in .h files generated by gen_stub
2022-06-13 08:55:54 -04:00
Tim Düsterhus
3a4d1b6131
Mark parameter in ext/mysqli as sensitive
2022-06-13 11:09:12 +02:00
Máté Kocsis
debd38f851
Add support for sensitive parameters in stubs
2022-06-04 18:15:05 +02:00
Kamil Tekiela
01cbe390ca
Remove mysqli_driver::$reconnect property
2022-05-30 15:28:08 +01:00
Kamil Tekiela
d84dfa3292
Remove MYSQLI_USE_MYSQLND constant and all the code with it
2022-05-30 15:28:08 +01:00
Máté Kocsis
14da1cb909
Add support for class constants in stubs ( #7434 )
2022-05-22 22:27:23 +02:00
Máté Kocsis
2b4fee03af
Mark ext/mysqli properties as readonly for documentation purposes
2022-04-05 13:24:21 +02:00
Máté Kocsis
62e4ac9439
Add support for custom property links
...
Closes GH-7892
2022-01-07 08:28:26 +01:00
Máté Kocsis
f70ca0acd4
Mark mysqli_driver properties readonly
2022-01-04 08:41:02 +01:00
Kamil Tekiela
8869bbe0e9
Fix bug GH-7746 (mysqli_sql_exception->sqlstate is inaccessible)
...
Closes GH-7747
2021-12-30 14:23:06 +00:00
Máté Kocsis
1bf1481a2a
Specify a few array func info entries ( #7425 )
2021-08-30 14:29:18 +02:00
Máté Kocsis
8e6e9838b0
Add support for generating MAY_BE_ARRAY_OF_REF func info flag ( #7416 )
2021-08-30 13:50:34 +02:00
Máté Kocsis
7d3cdb3681
Fix mysqli stub alias verification issues
...
I had to add a few no-verify annotations since the return type of the function and method counterparts cannot be aligned properly (easily)
2021-08-26 17:36:53 +02:00
Máté Kocsis
17ccabc6b6
Generate optimizer func info from stubs for ext/curl, ext/mysqli, ext/pcre ( #7407 )
2021-08-26 17:11:45 +02:00
Máté Kocsis
fc0d8983d3
Fix some smaller formatting inconsistencies in stubs
2021-07-20 00:52:26 +02:00
Nikita Popov
625b89af2f
Deprecate mysqli::init()
...
In favor of parent::__construct().
Part of https://wiki.php.net/rfc/deprecations_php_8_1 .
2021-07-08 16:45:05 +02:00
Máté Kocsis
6af5b369d7
Merge branch 'PHP-8.0'
...
* mysqli_get_client_info() cannot return null
2021-05-26 17:49:39 +02:00
Máté Kocsis
ceb0951fa5
mysqli_get_client_info() cannot return null
...
This method is already deprecated
2021-05-26 17:48:35 +02:00
Máté Kocsis
01775fa104
Declare tentative return types for ext/mysqli ( #6998 )
2021-05-26 17:29:58 +02:00
Máté Kocsis
1a1a9b2e4a
Merge branch 'PHP-8.0'
...
* Fix the return type of mysqli_connect()
2021-05-26 12:11:09 +02:00
Máté Kocsis
187c56ae2d
Update mysqli stub hash
2021-05-26 12:09:54 +02:00
Máté Kocsis
97f7279353
Fix the return type of mysqli_connect()
2021-05-26 12:07:02 +02:00
Máté Kocsis
a6c9f148b6
Merge branch 'PHP-8.0'
...
* Fix return type of mysqli::connect()
2021-05-26 11:56:21 +02:00
Máté Kocsis
86ef34fc61
Fix the return type of mysqli::connect()
2021-05-26 11:55:03 +02:00
Máté Kocsis
4ece535f19
Merge branch 'PHP-8.0'
...
* Fix return type of php_user_filter::onCreate()
* Fix return type of mysqli::init()
* Fix return type of UConverter::fromUCallback() and UConverter::toUCallback()
2021-05-07 15:23:28 +02:00
Máté Kocsis
e8361eb0e3
Fix return type of mysqli::init()
2021-05-07 15:21:41 +02:00
Kamil Tekiela
54222a6fe4
Implement mysqli_fetch_column ( #6798 )
...
* Implement mysqli_fetch_column
2021-05-01 20:11:47 +01:00
Máté Kocsis
30a082cb16
Make some exception properties typed
...
Closes GH-6891
2021-04-22 10:22:50 +02:00
Máté Kocsis
2bebe104c1
Update mysqli arginfo hash
...
[skip-ci]
2021-04-18 11:03:51 +02:00
Kamil Tekiela
45bad6474e
Mysqli bind in execute ( #6271 )
2021-04-14 12:52:51 +01:00
Nikita Popov
d905e77483
Enforce types when writing to mysqli dynamic properties
...
Previously this just assumed that the value was of a certain type.
I'm doing this in a generic way that checks against the declared
property type -- the handler function can then assume the value
to be of the correct type.
2021-04-13 15:30:56 +02:00
Máté Kocsis
d91051da2c
Update mysqli stub hash
2021-03-18 16:09:25 +01:00
Dharman
7e9f6d2a48
Deprecate OO style mysqli::get_client_info method
...
Deprecate passing connection object to mysqli_get_client_info()
Closes GH-6777.
2021-03-17 20:10:18 +00:00
Máté Kocsis
4833309bd2
Use typed properties in ext/mysqli
...
Closes GH-6739
2021-03-15 13:11:57 +01:00
Máté Kocsis
cad66533f0
Generate class entries from stubs for ldap, libxml, mbstring and mysqli
...
Closes GH-6684
2021-02-16 14:46:19 +01:00