Commit graph

163 commits

Author SHA1 Message Date
Larry Garfield
8d7f21b1c1
register_shutdown_function() updates based on comments (#1493)
* Note that shutdown functions may still register shutdown functions.

* Add note about max execution time.

* Add cross reference to fastcgi_finish_request.

* Correct grammar.
2022-04-08 11:19:19 -06:00
Martin Samesch
39752929cd
Typo 2022-04-06 12:04:02 +02:00
Rowan Tommins
5065e44c26
Add closure versions of all create_function examples
Basically the only reason people should be looking at the manual
for create_function right now is to see how *not* to use it. So,
for every example that was already included, I've added the
corresponding version using real anonymous functions.

Also, I've reworded the purpose and description, because these
functions aren't anonymous, as evidenced by the return value being
their name.

Closes GH-1500.
2022-04-05 13:59:01 +02:00
沈唁
de42b5016e
Fix 80971: func_get_args() didnt work when using named args (#650)
* Fix 80971: func_get_args() didnt work when using named args

* Update language-snippets.ent

Co-authored-by: George Peter Banyard <girgias@php.net>

* Update language-snippets.ent

* Update language-snippets.ent

Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>

* Update language-snippets.ent

Co-authored-by: George Peter Banyard <girgias@php.net>
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
2021-11-10 11:39:50 -05:00
Christoph M. Becker
2eb43ad4f4
Fix #73238: call_user_func() doesn't pass-by-ref; variable functions do 2021-09-22 13:57:05 +02:00
Máté Kocsis
7973fd5333
Generate some standard methodsynopses based on stubs (#289) 2021-09-19 12:30:47 +01:00
Christoph M. Becker
e72a6312b9
Don't pass objects by-ref, unless really needed
This appears to be a leftover from PHP 4 times.
2021-08-31 14:28:35 +02:00
George Peter Banyard
06779b0612 Fix section order issues in funchand/ folder
Part of #658
2021-06-06 18:03:03 +01:00
Sergey Panteleev
eec6a4a36b
Remove PHP 5, 7 references (#564)
- zookeeper
- zlib
- zip
- yaf
- uopz
- uodbc
- openssl
- funchand
2021-06-04 09:13:56 +03:00
Máté
c44475e1fa
Generate methodsynopses based on stubs for Zend functions and methods
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>

Closes GH-168.
2021-05-22 16:48:16 +02:00
Yoshinari Takaoka
924e111f78 Added PHP 8 into versions.xml for funchand based on stubs.
Closes GH-403.
2021-01-26 18:59:01 +01:00
Christoph Michael Becker
4d4301be41 create_function has been removed in PHP 8
Closes GH-290.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352192 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-26 19:34:18 +00:00
Christoph Michael Becker
0c9c2dd669 Generate some standard methodsynopses based on stubs
Cf. <https://github.com/php/doc-en/pull/289>.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352191 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-26 19:26:31 +00:00
Christoph Michael Becker
e41806c30b Revert revision(s) 351724 from phpdoc/en/trunk:
Document false and null return types

Cf. <https://news-web.php.net/php.doc.cvs/17645>.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351730 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-28 18:05:44 +00:00
Jakub Vrana
c80da7c04a Document false and null return types
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351724 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-28 12:54:59 +00:00
Christoph Michael Becker
9e0f03ac35 Proper variadics instead of pseudo variadics
We markup variadic parameters with the `rep=repeat` standard DocBook
attribute of `<methodparam>`, and use proper variable names instead of
using the old pseudo variable name `...`.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351129 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-02 11:17:26 +00:00
George Peter Banyard
cdaea04215 Remove mention of PHP 5 in Language Reference section
This does not cover the OOP nor Error sections, but everything else should be covered

Closes GH-156

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351112 c90b9560-bf6c-de11-be94-00142212c4b1
2020-10-31 19:13:58 +00:00
Christoph Michael Becker
80872147aa Get rid of "callback" types
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350788 c90b9560-bf6c-de11-be94-00142212c4b1
2020-10-06 09:11:05 +00:00
Christoph Michael Becker
7f569e1f17 Remove more changelog entries, mostly from PHP 5.3 era
Patch contributed by Sobak <msobaczewski@gmail.com>.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350655 c90b9560-bf6c-de11-be94-00142212c4b1
2020-09-26 14:08:59 +00:00
Yoshinari Takaoka
b7fedfcbcb fixed parameter name. conform it with methodsynopsis.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@348964 c90b9560-bf6c-de11-be94-00142212c4b1
2020-01-20 10:35:29 +00:00
Christoph Michael Becker
ae90534d15 Fix return type
Based on a patch provided by an anonymous user.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346902 c90b9560-bf6c-de11-be94-00142212c4b1
2019-02-25 12:12:10 +00:00
Christoph Michael Becker
43377a3318 Removed duplicate empty param "..."
-- 
Provided by anonymous 95384 ()

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346404 c90b9560-bf6c-de11-be94-00142212c4b1
2018-12-20 17:50:35 +00:00
Christoph Michael Becker
962214a5cc Simplify signature of variadic functions
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346102 c90b9560-bf6c-de11-be94-00142212c4b1
2018-11-27 19:09:14 +00:00
Christoph Michael Becker
47814777fd Update wrt. pass-by-reference warning
Based on a patch provided by an anonymous user.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345197 c90b9560-bf6c-de11-be94-00142212c4b1
2018-06-24 13:18:06 +00:00
Christoph Michael Becker
ac51aaac3b Fix changelog entries
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344866 c90b9560-bf6c-de11-be94-00142212c4b1
2018-04-27 15:08:50 +00:00
Andrey Andreev
028513e94b Document PHP 7.2 deprecations as the result of https://wiki.php.net/rfc/deprecations_php_7_2
Also, simplify the first paragraph of 'Traditional assertions' in assert() docs

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@342126 c90b9560-bf6c-de11-be94-00142212c4b1
2017-03-14 11:30:59 +00:00
Christoph Michael Becker
d0df80cbd2 The optional paramater exclude_disabled has been added to get_defined_functions()
See <http://git.php.net/?p=php-src.git;a=commit;h=63d116e5>.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@341597 c90b9560-bf6c-de11-be94-00142212c4b1
2017-01-04 15:11:23 +00:00
Christoph Michael Becker
4d616f071c Add example about passing references
Original patch provided by Esteban Marin

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@340342 c90b9560-bf6c-de11-be94-00142212c4b1
2016-10-07 08:51:26 +00:00
Christoph Michael Becker
67b64521e4 Fix return value info (provided by anon user)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@340058 c90b9560-bf6c-de11-be94-00142212c4b1
2016-09-19 16:19:13 +00:00
Christoph Michael Becker
674b07e333 fixed #71113: Undocumented behavior of func_get_arg(s)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@338280 c90b9560-bf6c-de11-be94-00142212c4b1
2015-12-17 09:45:42 +00:00
Christoph Michael Becker
893bcb1227 fixed #71124: wrong version info
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@338260 c90b9560-bf6c-de11-be94-00142212c4b1
2015-12-15 16:41:30 +00:00
Maciej Sobaczewski
92bff06867 Update bunch of versions.xml for PHP 7
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337985 c90b9560-bf6c-de11-be94-00142212c4b1
2015-10-12 07:06:29 +00:00
Peter Cowburn
4ac3664895 fix build
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@336771 c90b9560-bf6c-de11-be94-00142212c4b1
2015-05-14 08:55:44 +00:00
Peter Cowburn
743a40810e WS
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@336768 c90b9560-bf6c-de11-be94-00142212c4b1
2015-05-14 08:26:35 +00:00
Peter Cowburn
50bb6c96bc Added missing output in func-get-arg 1st example
-- 
Provided by jonid.bendo@gmail.com via online editor

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@336767 c90b9560-bf6c-de11-be94-00142212c4b1
2015-05-14 08:23:00 +00:00
Pasindu De Silva
394c58587d Removed br from example (By Jonid Bendo)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@336598 c90b9560-bf6c-de11-be94-00142212c4b1
2015-04-20 07:10:24 +00:00
Peter Cowburn
24afbb0d4f fixed comment in example of call_user_func with array (doc bug #62080)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@335189 c90b9560-bf6c-de11-be94-00142212c4b1
2014-11-17 20:47:41 +00:00
Simion Onea
14af302c9c Making the XML definition consistent across the entire project.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@334762 c90b9560-bf6c-de11-be94-00142212c4b1
2014-09-05 07:44:07 +00:00
Adam Harvey
84630c830d See also: splat.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@334626 c90b9560-bf6c-de11-be94-00142212c4b1
2014-08-28 03:05:02 +00:00
Maciej Sobaczewski
8b5940cade Remove changelogs for PHP 4 - 2nd round
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@334605 c90b9560-bf6c-de11-be94-00142212c4b1
2014-08-26 14:28:17 +00:00
Nikita Popov
a0efd60818 Remove mentions of create_function from docs. Add caution to create_function docs advising to use anon funcs instead.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@331556 c90b9560-bf6c-de11-be94-00142212c4b1
2013-09-28 15:43:16 +00:00
Yannick Torres
33040b3b1b Typo found by online editor user
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@331135 c90b9560-bf6c-de11-be94-00142212c4b1
2013-08-16 09:25:19 +00:00
Jakub Vrana
1634a88641 Delete redundant <!-- Membership: -->
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@330340 c90b9560-bf6c-de11-be94-00142212c4b1
2013-05-23 17:38:21 +00:00
Reeze Xia
698c0b0911 typo fix
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@328488 c90b9560-bf6c-de11-be94-00142212c4b1
2012-11-24 19:28:17 +00:00
Peter Cowburn
2156ae971c Adding a note that shutdown functions won't be executed if the script gets a SIGTERM or SIGKILL, though you can pcntl_signal() for the TERM and exit;. (doc #63275)
--
Provided by anonymous #22227 (mail+php@requinix.net)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@328335 c90b9560-bf6c-de11-be94-00142212c4b1
2012-11-12 22:34:43 +00:00
Hannes Magnusson
858cacd62c mark bunch of extensions with "membership" PI (like the membership comment)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@326064 c90b9560-bf6c-de11-be94-00142212c4b1
2012-06-09 17:34:56 +00:00
Gustavo André dos Santos Lopes
a63563da67 Fixed typo.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@325661 c90b9560-bf6c-de11-be94-00142212c4b1
2012-05-11 22:44:28 +00:00
Gustavo André dos Santos Lopes
233b7b9803 - Updated docs for call_user_func_array() in light of PHP 5.4 developments.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@325660 c90b9560-bf6c-de11-be94-00142212c4b1
2012-05-11 20:42:17 +00:00
Jakub Vrana
84b8fca68f Use <function> for language constructs (now supported by PhD)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@325214 c90b9560-bf6c-de11-be94-00142212c4b1
2012-04-15 21:45:34 +00:00
Jakub Vrana
a9b26c34e4 Display language constructs without parentheses
Side effect of this change is that include, require and return are now properly linked. They weren't because they don't live inside <refentry> so PhD doesn't know about them.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@324522 c90b9560-bf6c-de11-be94-00142212c4b1
2012-03-25 08:39:30 +00:00