Commit graph

161 commits

Author SHA1 Message Date
Christoph Michael Becker
90251a0f83 Fix grammar
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@342565 c90b9560-bf6c-de11-be94-00142212c4b1
2017-06-08 09:47:05 +00:00
Christoph Michael Becker
952a9acd72 Add note on avoiding substr() with $offset
-- 
Provided by anonymous 61891 (rasmus@mindplay.dk)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@342563 c90b9560-bf6c-de11-be94-00142212c4b1
2017-06-08 09:30:36 +00:00
Christoph Michael Becker
f6b3cb3437 Fix #73709: preg_match_all PREG_OFFSET_CAPTURE documentation incorrect
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@341360 c90b9560-bf6c-de11-be94-00142212c4b1
2016-12-10 16:29:17 +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
441f9436b4 Fix #66664: preg_match_all + PREG_PATTERN_ORDER + PCRE_INFO_JCHANGED, output wrong result
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@340012 c90b9560-bf6c-de11-be94-00142212c4b1
2016-09-10 00:25:03 +00:00
Christoph Michael Becker
8adbf24fe9 Document failure return value
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@339933 c90b9560-bf6c-de11-be94-00142212c4b1
2016-08-23 13:34:21 +00:00
Christoph Michael Becker
b64ba59d6a Fix #64516: preg_quote() doesn't work to escape the replacement
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@339916 c90b9560-bf6c-de11-be94-00142212c4b1
2016-08-20 13:02:09 +00:00
Christoph Michael Becker
4e713319a0 Add missing markup
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@339915 c90b9560-bf6c-de11-be94-00142212c4b1
2016-08-20 12:57:20 +00:00
Christoph Michael Becker
20ccb21520 Integrate user note 115687
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@339914 c90b9560-bf6c-de11-be94-00142212c4b1
2016-08-20 12:49:18 +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
Adam Harvey
72af2380f5 Cut down the preg_replace_callback_array() part of the migration guide.
I've removed the example: it was terrific, but the function reference has a
good example, and it was much too long for the page.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337869 c90b9560-bf6c-de11-be94-00142212c4b1
2015-09-21 12:17:02 +00:00
Simion Onea
7050d96265 Corrected/added SVN properties, especially svn:keywords.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337516 c90b9560-bf6c-de11-be94-00142212c4b1
2015-08-17 15:27:48 +00:00
Christoph Michael Becker
e9be1b6379 The page for strstr() recommends using strpos(). preg_match() should match this recommendation.
-- 
Provided by anonymous 62208 (Liam Morland)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337467 c90b9560-bf6c-de11-be94-00142212c4b1
2015-08-15 01:16:19 +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
Christoph Michael Becker
84a87a7fa9 documented PREG_JIT_STACKLIMIT_ERROR
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337283 c90b9560-bf6c-de11-be94-00142212c4b1
2015-08-04 02:14:47 +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
Adam Harvey
7506ffce44 Include delimiter in preg_quote() example.
Fixes doc bug #68632 (Bad practice preg_quote() example).


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@335316 c90b9560-bf6c-de11-be94-00142212c4b1
2014-12-19 23:23:36 +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
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
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
Joe Watkins
fa51bf600c add tip for #65468
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@331152 c90b9560-bf6c-de11-be94-00142212c4b1
2013-08-19 05:17:59 +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
Philip Olson
c05234126b Added the word escaped to help deal with PHP Bug #64876 and added a 'See Also' for good measure.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@330635 c90b9560-bf6c-de11-be94-00142212c4b1
2013-06-24 23:17:24 +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
Peter Cowburn
773da2681a CS
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@329662 c90b9560-bf6c-de11-be94-00142212c4b1
2013-03-05 20:27:18 +00:00
Justin Martin
a440d85ce3 Added example output for examples 1 and 2.
Contribution by Ole Aass.
Closes bug #63869.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@329086 c90b9560-bf6c-de11-be94-00142212c4b1
2013-01-12 00:11:56 +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
Sherif Ramadan
a657bdcaf4 Modified ambiguous wording for return values and added return.falseproblem warning. This fixes Bug #62161
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@326871 c90b9560-bf6c-de11-be94-00142212c4b1
2012-07-30 03:37:52 +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
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
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
Peter Cowburn
cfabc6b2ed correct changelog order
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@314593 c90b9560-bf6c-de11-be94-00142212c4b1
2011-08-09 09:00:42 +00:00
Jakub Vrana
290ee6f491 Invalid offset since PHP 5.3.6 (thanks to David Grudl)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@314243 c90b9560-bf6c-de11-be94-00142212c4b1
2011-08-04 11:25:10 +00:00
Peter Cowburn
bf9f426796 use entity for null
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@313291 c90b9560-bf6c-de11-be94-00142212c4b1
2011-07-16 18:06:48 +00:00
Jakub Vrana
6f184ec8cc Parameter matches is optional
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@312711 c90b9560-bf6c-de11-be94-00142212c4b1
2011-06-30 16:57:08 +00:00
Jakub Vrana
9b22dffc68 Fix protos
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@308256 c90b9560-bf6c-de11-be94-00142212c4b1
2011-02-11 14:16:57 +00:00
Jakub Vrana
d3c871ae1e Fix protos
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@308253 c90b9560-bf6c-de11-be94-00142212c4b1
2011-02-11 13:16:13 +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
Richard Quadling
c6faf8807d Add <initializer>'s to preg_match and preg_match_all.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@305275 c90b9560-bf6c-de11-be94-00142212c4b1
2010-11-11 13:03:16 +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
Gustavo André dos Santos Lopes
594e79d60c - Changed the language on the documentation of preg_filter to make it clear that it returns the subjects where that was a match, not the matches themselves.
- Closes bug #52111

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@303177 c90b9560-bf6c-de11-be94-00142212c4b1
2010-09-08 14:56:00 +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
2b587ab01f Normalized initializer NULL-values to use the &null; entity:
for file in `find -name '*.xml'`; do sed -i -e 's/<initializer>null<\/initializer>/<initializer>\&null;<\/initializer>/i' $file; done



git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@298918 c90b9560-bf6c-de11-be94-00142212c4b1
2010-05-03 17:10:04 +00:00