Commit graph

56 commits

Author SHA1 Message Date
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
Sergey Panteleev
8a058e9acd
Removed references to PHP 5, 7.0 (#549)
PDO and PCRE sections
2021-04-27 12:53:38 +03: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
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
09483f34bc Fix #78168: Reference Format is \n instead of \\n
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349366 c90b9560-bf6c-de11-be94-00142212c4b1
2020-03-10 09:11:07 +00:00
Christoph Michael Becker
d31d783a65 Fix #77848: Documentation on the /e removal is misleading
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347268 c90b9560-bf6c-de11-be94-00142212c4b1
2019-04-17 14:21:49 +00:00
Maciej Sobaczewski
95bdd6883b Another round of PHP 4 content removal (mostly inline mentions)
Review is welcome

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@341282 c90b9560-bf6c-de11-be94-00142212c4b1
2016-12-05 10:17:07 +00:00
Christoph Michael Becker
c01961f079 Fix typos
Patch provided by anon users.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@341136 c90b9560-bf6c-de11-be94-00142212c4b1
2016-11-25 12:22:13 +00:00
Christoph Michael Becker
91b8b05f52 fix #72341: Inconsitent $ escaping in preg_replace replacement patterns
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@339301 c90b9560-bf6c-de11-be94-00142212c4b1
2016-06-06 16:54:44 +00:00
Christoph Michael Becker
d62d6b01c4 minor fixes by anon users
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@338862 c90b9560-bf6c-de11-be94-00142212c4b1
2016-03-31 18:48:08 +00:00
Maciej Sobaczewski
86727eb89e Document PREG_REPLACE_EVAL removal
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@336806 c90b9560-bf6c-de11-be94-00142212c4b1
2015-05-20 05:15:44 +00:00
Dan Ackroyd
cc6711c55b Corrected order. The example is showing that the order is unexpected, and that you need to sort to get the 'right' order.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@335841 c90b9560-bf6c-de11-be94-00142212c4b1
2015-01-29 19:33:59 +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
Maciej Sobaczewski
afc3f34c68 Remove changelogs for PHP 4 - 1st round
Useful changelogs entries remain untouched.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@334592 c90b9560-bf6c-de11-be94-00142212c4b1
2014-08-23 17:55:23 +00:00
Philip Olson
00a507863e Clarify a bit that \e is deprecated
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@330943 c90b9560-bf6c-de11-be94-00142212c4b1
2013-07-17 04:35:39 +00:00
Adam Harvey
8ad0d94e1c Add initial migration guide for PHP 5.5.
What's done: the migration guide itself, updates to existing functions and
functionality, and new language features.

What's not done: stub pages for new functions and methods. (I'd rather get this
in now, though, than have it languish on my hard drive any longer so that other
people can contribute.)

What could use help: the generator chapter is pretty rough and ready. Better
examples would be awesome. I certainly won't argue if somebody wants to add the
function stubs, either.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@328430 c90b9560-bf6c-de11-be94-00142212c4b1
2012-11-20 15:17:23 +00:00
Justin Martin
27440bfeed Removed eval modifier example from preg_replace reference.
Added caution to eval modifier reference about its addslashes behaviour.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@320388 c90b9560-bf6c-de11-be94-00142212c4b1
2011-12-04 21:54:27 +00:00
Justin Martin
ee7bf3100e Clarified e-modifier example behavior, as per bug #60401.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@320298 c90b9560-bf6c-de11-be94-00142212c4b1
2011-12-03 04:28:40 +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
Richard Quadling
7605db79ce Fixed grammar.
Fix bug #53073


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@304409 c90b9560-bf6c-de11-be94-00142212c4b1
2010-10-15 08:28:18 +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
Daniel Egeberg
1b6cf34f23 Changed example #2 in preg_replace() to have the arrays initialized before writing to them.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@292327 c90b9560-bf6c-de11-be94-00142212c4b1
2009-12-19 12:05:56 +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
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
Philip Olson
02f5774954 Added preg_filter() info
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@278477 c90b9560-bf6c-de11-be94-00142212c4b1
2009-04-09 04:01:09 +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
Jakub Vrana
984ebf240c Backslash in replacement (bug #43532)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@268519 c90b9560-bf6c-de11-be94-00142212c4b1
2008-11-07 14:42:12 +00:00
Jakub Vrana
5cd86bd54a Typo
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@268518 c90b9560-bf6c-de11-be94-00142212c4b1
2008-11-07 14:38:01 +00:00
Felipe Pena
f7ef445f8f Add information about return value in case of error
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@250181 c90b9560-bf6c-de11-be94-00142212c4b1
2008-01-09 00:15:33 +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
Mehdi Achour
90fc7ae81c Add ChangeLog
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@237878 c90b9560-bf6c-de11-be94-00142212c4b1
2007-06-17 02:08:16 +00:00
Martin Samesch
ae72e57f32 typo
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@230763 c90b9560-bf6c-de11-be94-00142212c4b1
2007-02-25 16:07:44 +00:00
Nuno Lopes
cce3db21a1 fix bug #40395: document which chars are escaped when running with '/e' modifier
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@229572 c90b9560-bf6c-de11-be94-00142212c4b1
2007-02-11 19:48:34 +00:00
Mehdi Achour
311ebbd64c Document parameters in the good place
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@228787 c90b9560-bf6c-de11-be94-00142212c4b1
2007-02-02 22:44:17 +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
Philip Olson
9dfd4d483b Removed use of PL, RC, and BETA from PHP versions as they go against our
conventions.
# Thanks to etienne and nuno for being regex masters ;-)


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@228614 c90b9560-bf6c-de11-be94-00142212c4b1
2007-02-01 00:46:02 +00:00
Sean Coates
aa62978193 bug #38999; fix language
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@220832 c90b9560-bf6c-de11-be94-00142212c4b1
2006-09-30 18:20:02 +00:00
Etienne Kneuss
b287313c6b Fix #36112 (Bad example removed)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@214904 c90b9560-bf6c-de11-be94-00142212c4b1
2006-06-16 13:44:09 +00:00
Nuno Lopes
fb8a1a92d8 switch to new style and document the new count parameter
#an english reviewer wanted.. :)


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@182957 c90b9560-bf6c-de11-be94-00142212c4b1
2005-03-27 12:38:19 +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
Sean Coates
884d0238bb /e -> 'e'
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@174727 c90b9560-bf6c-de11-be94-00142212c4b1
2004-12-14 18:35:42 +00:00
Aidan Lister
996071ceab Added extra example showing stripping of whitespace (this question is asked atleast 3 times a day)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@174081 c90b9560-bf6c-de11-be94-00142212c4b1
2004-12-05 15:12:10 +00:00
Dave Barr
a49c33ff31 - html -> HTML where appropriate.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@147048 c90b9560-bf6c-de11-be94-00142212c4b1
2003-12-21 01:05:43 +00:00
Mehdi Achour
27960e632c Merry XHTML and CS compliant christmas all \!
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@146503 c90b9560-bf6c-de11-be94-00142212c4b1
2003-12-15 16:55:22 +00:00
Derick Rethans
dd203bae9d - Clarify the use of "array" here. (Bug #26508)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@145462 c90b9560-bf6c-de11-be94-00142212c4b1
2003-12-03 14:40:56 +00:00
Mehdi Achour
477aa9f95c adding role attribute and php tags
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@138007 c90b9560-bf6c-de11-be94-00142212c4b1
2003-08-16 18:59:12 +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
Simone Cortesi
70add6159e typos
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@114185 c90b9560-bf6c-de11-be94-00142212c4b1
2003-01-31 21:28:07 +00:00