Juliette
41c8533ff5
PCRE: add missing "Errors/Exceptions" section
...
All PCRE pattern matching functions will throw a warning when an invalid regex is passed to the `$pattern` parameter.
See: https://3v4l.org/WkVIW
This was thus far undocumented behaviour.
This PR adds:
* The "Errors/Exceptions" section to each of the PCRE pattern matching function documentation pages (if it didn't exist yet).
* Adds a macro for the text snippet about the warning to display in the section and uses that in the "Errors/Exceptions" section for each function.
Co-authored-by: jrfnl <jrfnl@users.noreply.github.com>
Closes GH-1057.
2021-11-08 13:01:56 +01:00
Christoph Michael Becker
22e850b66c
Generate pcre methodsynopses based on stubs
...
Based on a patch contributed by Máté Kocsis <kocsismate@woohoolabs.com>.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351490 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-22 12:38:46 +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
53bdffa6b9
Removed some of the PHP5 changelogs
...
Patch contributed by Sobak <msobaczewski@gmail.com>.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350645 c90b9560-bf6c-de11-be94-00142212c4b1
2020-09-26 12:32:19 +00:00
Christoph Michael Becker
5d3f4f8b94
PHP 7.4: PCRE: document new $flags param for preg_replace_callback[_array]()
...
The PHP 7.4 `$flags` parameter as added to the `preg_replace_callback()` and `preg_replace_callback_array()` function was not yet included in the documentation.
In this PR, I'm
* Adding the parameter to the function signature.
* Adding minimal parameter documentation with a reference to the more detailed explanation in the parameter documentation of the [`preg_match()`](https://www.php.net/manual/en/function.preg-match.php ) function.
* Adding a changelog entry for the parameter to each function.
Refs:
* https://github.com/php/php-src/pull/3958
* 2f1398dad9/UPGRADING (L304-L308)
Patch contributed by jrfnl.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349965 c90b9560-bf6c-de11-be94-00142212c4b1
2020-05-23 15:01:09 +00:00
Thomas Punt
03393b1f43
Added preg_replace_callback_array function
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337413 c90b9560-bf6c-de11-be94-00142212c4b1
2015-08-12 15:39:47 +00:00
Daniel Convissor
f08a981a30
Add preg_quote() to See Also
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@335337 c90b9560-bf6c-de11-be94-00142212c4b1
2014-12-22 16:03:21 +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
Jakub Vrana
fcf6390340
Prefer anonymous function over create_function()
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@330241 c90b9560-bf6c-de11-be94-00142212c4b1
2013-05-16 18:25:02 +00:00
Jakub Vrana
f68abbe82c
Document callback signatures
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@330240 c90b9560-bf6c-de11-be94-00142212c4b1
2013-05-16 18:24:33 +00:00
Jakub Vrana
5faa7a6747
Document and use callable type hint introduced in PHP 5.4
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@324122 c90b9560-bf6c-de11-be94-00142212c4b1
2012-03-12 05:55:59 +00:00
Richard Quadling
a56106f691
Standardized on double quotes for attributes.
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@317502 c90b9560-bf6c-de11-be94-00142212c4b1
2011-09-30 14:21:51 +00:00
Philip Olson
802ee88411
- Added PCRE modifier link to 'See Also' section of relevant PCRE functions
...
- Moved the 'e' tip from preg_replace to the modifier documentation, and added link instead of 'e' docs
- Closes PHP Bug #53546
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@307739 c90b9560-bf6c-de11-be94-00142212c4b1
2011-01-25 19:10:19 +00:00
Kalle Sommer Nielsen
776fca5c5e
Fixed bug #53570 (Deprecated functions in suggestion list)
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@306477 c90b9560-bf6c-de11-be94-00142212c4b1
2010-12-20 01:22:59 +00:00
Peter Cowburn
e5c2e20550
see also preg_last_error, doc bug #51864
...
- added preg_last_error see also link for preg_* functions
- also added other useful see-also links for preg funcs
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@300271 c90b9560-bf6c-de11-be94-00142212c4b1
2010-06-08 12:51:02 +00:00
Daniel Egeberg
96c9d88bad
Converted to utf-8
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@297028 c90b9560-bf6c-de11-be94-00142212c4b1
2010-03-28 22:10:10 +00:00
Florian Anderiasch
bbd0696ac1
fix #49685 - returns NULL on errors
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@289097 c90b9560-bf6c-de11-be94-00142212c4b1
2009-10-02 20:31:21 +00:00
Torben Wilson
af4410a7e1
Normalized the sgml-default-dtd-file local-variable line for those
...
still using this, after discussion on the phpdoc list.
From now on, manual.ced will need to be found at ~/.phpdoc/manual.ced.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@288721 c90b9560-bf6c-de11-be94-00142212c4b1
2009-09-25 07:04:39 +00:00
Jakub Vrana
5367ec851c
Link anonymous functions/preg-replace-callback.xml
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@286543 c90b9560-bf6c-de11-be94-00142212c4b1
2009-07-30 09:20:16 +00:00
Nilgün Belma Bugüner
751d46fd60
fixed properties
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@283830 c90b9560-bf6c-de11-be94-00142212c4b1
2009-07-11 08:31:40 +00:00
Jakub Vrana
6125c0100d
Initializers - part 4
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@273634 c90b9560-bf6c-de11-be94-00142212c4b1
2009-01-16 12:08:51 +00:00
Hannes Magnusson
c030e2adf7
Upgrade to DocBook5:
...
- All id attributes are now xml:id
- Add docbook namespace to all root elements
- Replace <ulink /> with <link xlink:href />
- Minor markup fixes here and there
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@238160 c90b9560-bf6c-de11-be94-00142212c4b1
2007-06-20 22:25:43 +00:00
Martin Samesch
979eb4d641
the subject returned isn't the parameter 'subject' that was passed
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@229041 c90b9560-bf6c-de11-be94-00142212c4b1
2007-02-05 14:42:26 +00:00
Martin Samesch
71337d2152
typo
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@229040 c90b9560-bf6c-de11-be94-00142212c4b1
2007-02-05 14:34:28 +00:00
Mehdi Achour
039d648a12
ref.pcre: switch to new doc style
...
# And fix #40215
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@228785 c90b9560-bf6c-de11-be94-00142212c4b1
2007-02-02 22:11:46 +00:00
Mehdi Achour
64a1c7cc9e
WS, preparing for new doc style
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@228784 c90b9560-bf6c-de11-be94-00142212c4b1
2007-02-02 22:09:12 +00:00
Etienne Kneuss
c29f0e9a74
New example using recursion
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@215180 c90b9560-bf6c-de11-be94-00142212c4b1
2006-06-21 17:08:39 +00:00
Jakub Vrana
88e8d865bd
See preg_replace for parameters description (bug #35356 )
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@210611 c90b9560-bf6c-de11-be94-00142212c4b1
2006-04-03 15:10:11 +00:00
Jakub Vrana
df3388acc3
count parameter
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@188605 c90b9560-bf6c-de11-be94-00142212c4b1
2005-06-17 08:29:29 +00:00
Nuno Lopes
e5dacc095d
WS. prepare for new doc style
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@181961 c90b9560-bf6c-de11-be94-00142212c4b1
2005-03-12 20:29:57 +00:00
Horst Schirmeier
119febb453
callback type "see also" added
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@181255 c90b9560-bf6c-de11-be94-00142212c4b1
2005-03-03 13:42:12 +00:00
Mehdi Achour
45a0f65851
CS : Function declarations follow the 'one true brace' convention
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@148756 c90b9560-bf6c-de11-be94-00142212c4b1
2004-01-15 12:43:50 +00:00
Dallas Wang
de86619595
WS fixes.
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@139621 c90b9560-bf6c-de11-be94-00142212c4b1
2003-09-04 21:04:03 +00:00
Derick Rethans
9d8e216f95
- Layout and whitespace
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@132064 c90b9560-bf6c-de11-be94-00142212c4b1
2003-06-16 20:03:02 +00:00
Damien Seguy
defa2af2f3
detect constant plus see also
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@118507 c90b9560-bf6c-de11-be94-00142212c4b1
2003-02-28 23:50:36 +00:00
Hartmut Holzgraefe
799fe843ab
some functions really desere examples
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@117296 c90b9560-bf6c-de11-be94-00142212c4b1
2003-02-20 10:27:20 +00:00
Hartmut Holzgraefe
d60c0ba6e2
- parameter type for the callback changed from "mixed" to "callback"
...
- version history removed as this is already auto-included
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@107603 c90b9560-bf6c-de11-be94-00142212c4b1
2002-12-11 12:51:23 +00:00
Hartmut Holzgraefe
5b9fc29465
revision tags added
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@78496 c90b9560-bf6c-de11-be94-00142212c4b1
2002-04-17 06:45:35 +00:00
Hartmut Holzgraefe
a4b6d72ad3
banana-split
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@78202 c90b9560-bf6c-de11-be94-00142212c4b1
2002-04-15 00:12:54 +00:00