Commit graph

26466 commits

Author SHA1 Message Date
Christoph Michael Becker
a331ac8a86 Generate sapi methodsynopses based on stubs
Closes GH-285.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352190 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-26 14:27:07 +00:00
Christoph Michael Becker
902c2b77f8 Generate odbc methodsynopses based on stubs
Closes GH-286.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352189 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-26 14:11:36 +00:00
Christoph Michael Becker
fd71d9c2d9 Generate sodium methodsynopses based on stubs
Closes GH-288.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352185 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-26 12:53:42 +00:00
Christoph Michael Becker
038bdb1d98 Remove introductory MySQLi example
This example does not use modern best practices to avoid security issues
(prepared statements, proper output escaping), and is heavily criticized for
that.  Fixing that would make the introductory example even more complex;
turning that section into a small tutorial (what was likely the original
intent) would make sense, but apparently nobody ever worked on that, so we
remove this example section altogether.

Cf. <https://github.com/php/doc-en/pull/278>.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352184 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-26 11:55:03 +00:00
Yoshinari Takaoka
260c0b8f4d Fixed oop return type of DateTimeInterface::getOffset.
Closes CH-282.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352182 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-26 10:20:49 +00:00
Christoph Michael Becker
7f5f26fab6 Add missing modifiers to XMLReader::XML()
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352172 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-22 17:57:03 +00:00
Christoph Michael Becker
2550f62c6a Fix #80543: ArrayObject::asort() and ::ksort() expect an optional int
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352168 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-22 16:28:26 +00:00
Christoph Michael Becker
e1e96098db Fix #80542: Missing information
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352166 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-22 11:49:50 +00:00
Kamil Tekiela
ce753ccd3d Doc Bug #72393 mysqli_stmt_field_count undocumented
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352160 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-21 23:07:01 +00:00
George Peter Banyard
e132ef28fd Fix Attribute constant name in title
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352158 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-21 16:17:18 +00:00
George Peter Banyard
ad08d7c566 Minor nits to English docs provided by anonymous users.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352156 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-21 16:09:00 +00:00
Christoph Michael Becker
0ec192da9f date_timestamp_get() and aliases do no longer return false on failure
Cf. <b67c232189 (r45293163)>.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352146 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-20 22:35:30 +00:00
Christoph Michael Becker
4d5206538d Fix return types
All these aliases may return false.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352145 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-20 18:36:10 +00:00
Christoph Michael Becker
9d45296587 Calling (gm)mktime() without arguments is deprecated as of PHP 7.0.0
We drop the duplicate notes section, but instead of moving the information down
to the end of the page, we add it to the function description.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352144 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-20 16:18:40 +00:00
Christoph Michael Becker
34188f8256 Generate ext/date methodsynopses based on stubs
Closes GH-185.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352143 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-20 15:06:41 +00:00
Christoph Michael Becker
4473119c07 Revert revision 352076 from phpdoc/en/trunk/reference/mysqli:
MySQL's utf8 has *at* *most* 3 byte per codepoint

........

As pointed out by dharman, the new info is wrong.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352139 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-19 16:46:03 +00:00
Christoph Michael Becker
de8b75ccb6 $num_points parameter of image*polygon() is now optional
Cf. <https://github.com/php/php-src/pull/4885>.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352128 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-19 00:10:21 +00:00
Christoph Michael Becker
b86704d0f7 Clarify that phar.require_hash does not provide security
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352124 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-18 16:03:28 +00:00
Christoph Michael Becker
8ebad33b9c Fix #69962: php://temp / php://memory don't support stat()
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352123 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-18 12:44:03 +00:00
Christoph Michael Becker
45c7531e42 Fix #66777: strftime returns empty string when input fmt string exceeds 1024
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352122 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-18 12:37:56 +00:00
Christoph Michael Becker
4642b715f3 Fix #80528: No waring/error for some nested ternary operators without explicit parentheses
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352118 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-17 18:00:58 +00:00
Christoph Michael Becker
d9466fcf93 Fix #80526: Typo in the example
Closes GH-280.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352117 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-17 13:18:46 +00:00
Christoph Michael Becker
bcf13bff7b Fix PharData inheritance
As the comment notes, PharData does not extend Phar.  However, in the meantime
the PharData methods have been documented, so there is no need to additionally
list the Phar methods.

We also document that PharData implements Countable and ArrayAccess.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352110 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-16 14:06:42 +00:00
Christoph Michael Becker
5055b86ea5 Fix class name
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352109 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-16 13:48:04 +00:00
Christoph Michael Becker
487660f1b4 Fix Phar signature info
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352108 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-16 13:14:29 +00:00
Christoph Michael Becker
24436aff58 Add missing PharData method visibility modifiers
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352107 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-16 13:11:27 +00:00
George Peter Banyard
d152dc1021 Revert unintentional whitespace change
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352101 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-15 18:07:23 +00:00
George Peter Banyard
9f15bbc675 Sync with EN
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352099 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-15 17:58:42 +00:00
George Peter Banyard
37be0e0626 Mimic 'Alternative signature' prompt for setcookie in other functions which set cookies
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352083 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-14 23:19:07 +00:00
George Peter Banyard
c35c07ab6a Changelog section should be before examples section
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352082 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-14 23:14:55 +00:00
George Peter Banyard
f88b2cc042 Fix minor errors, provided by anonymous users.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352079 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-14 22:36:00 +00:00
Christoph Michael Becker
565b5f3de9 Fix example output for PHP 7.0.0 and up
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352077 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-14 20:10:29 +00:00
Christoph Michael Becker
d2dd88a60c MySQL's utf8 has *at* *most* 3 byte per codepoint
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352076 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-14 19:14:32 +00:00
Christoph Michael Becker
ee4558e955 utf8 has been deprecated for past 10 years
Closes GH-252.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352075 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-14 19:07:56 +00:00
Christoph Michael Becker
e9f972da69 Remove obsolete Phar information
Phar 2.0.0 has been released 2009-07-29, so older versions are certainly
no longer relevant for the PHP manual.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352054 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-13 16:38:57 +00:00
Christoph Michael Becker
43130349a3 Remove obsolete GMP info
PHP 7.0 requires GMP 4.2 anyway.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352053 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-13 13:02:26 +00:00
Christoph Michael Becker
bd5bfc56ae Update GMP language snippet
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352052 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-13 12:51:03 +00:00
Yoshinari Takaoka
50d9745e66 fixed missing paramater replacement.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352047 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-13 01:27:32 +00:00
Christoph Michael Becker
039ab719e6 Generate gmp methodsynopses based on stubs
Closes GH-225.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352046 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-13 00:15:23 +00:00
Christoph Michael Becker
053609a5c9 Updating mysqli: free result
Closes GH-240.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352045 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-12 22:26:28 +00:00
Christoph Michael Becker
b9ba4fca83 Updating mysqli: Remove pre-deprecation notice
Closes GH-247.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352044 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-12 22:15:36 +00:00
Yoshinari Takaoka
02177b182e fixed example comment to be consistent with methodsynopses.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352042 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-12 19:06:45 +00:00
Christoph Michael Becker
71c12b1583 set_error_handler: clarify callback parameters and PHP 8.0 changes
Closes GH-276.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352038 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-12 18:36:18 +00:00
Christoph Michael Becker
a3db55f0df Fix order of sections
Also, one example section is enough.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352035 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-12 18:11:57 +00:00
Yoshinari Takaoka
0dc8bbd88c fixed typo
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352034 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-12 17:50:48 +00:00
Yoshinari Takaoka
9240fafbb2 s/regs/matches/g
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352032 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-12 17:35:43 +00:00
Yoshinari Takaoka
1187e24a84 deleted duplicate changelog entry.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352031 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-12 17:17:34 +00:00
Christoph Michael Becker
479a89e372 svn:ignore reference/stats/entities.*.xml
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352030 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-12 16:35:01 +00:00
Christoph Michael Becker
ab493e941a Add missing entity definition
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352029 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-12 16:33:19 +00:00
Christoph Michael Becker
92f1b8b177 Generate ext/mbstring methodsynopses based on stubs
Closes GH-190.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352028 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-12 16:32:35 +00:00