Commit graph

170 commits

Author SHA1 Message Date
Christoph Michael Becker
82cff784b0 Merged revision(s) 347600 from phpdoc/en/trunk:
Fix : preg_quote() documented as accepting null for $delimiter, which actually throws
........
Cf. <https://bugs.php.net/bug.php?id=78163#1560771170>.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347611 c90b9560-bf6c-de11-be94-00142212c4b1
2019-06-17 12:35:42 +00:00
Christoph Michael Becker
568cd69529 Fix : preg_quote() documented as accepting null for $delimiter, which actually throws
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347600 c90b9560-bf6c-de11-be94-00142212c4b1
2019-06-14 16:11:17 +00:00
Christoph Michael Becker
d31d783a65 Fix : 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
Christoph Michael Becker
f49e92f06f Add hash to list of special regular expression characters
Patch provided by Huiren Woo.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346423 c90b9560-bf6c-de11-be94-00142212c4b1
2018-12-26 14:20:39 +00:00
Christoph Michael Becker
48bac4e0ab Integrate user note 118893
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345922 c90b9560-bf6c-de11-be94-00142212c4b1
2018-10-28 10:45:30 +00:00
Pasindu De Silva
7e18f0a154 Added change log about preg_quote() escaping the '#' character.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345761 c90b9560-bf6c-de11-be94-00142212c4b1
2018-10-01 17:33:37 +00:00
Christoph Michael Becker
f73a9831d2 With declare(strict_types = 1) null is not an allowed value for the limit parameter.
-- 
Provided by anonymous 89383 ()

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344928 c90b9560-bf6c-de11-be94-00142212c4b1
2018-05-02 22:19:23 +00:00
Christoph Michael Becker
6e796ded26 Fix substr() related markup
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344771 c90b9560-bf6c-de11-be94-00142212c4b1
2018-04-20 16:32:15 +00:00
Christoph Michael Becker
84729f2123 Document PREG_UNMATCHED_AS_NULL
Sans the behavior of trailing unmatched subpatterns,
see https://bugs.php.net/73948.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344668 c90b9560-bf6c-de11-be94-00142212c4b1
2018-04-14 15:40:43 +00:00
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 : 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 : 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 : 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 : 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  (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
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 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 .


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
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 .
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