37 Commits

Author SHA1 Message Date
KOSEKI Kengo 2226ad08fd Restore type juggling caution for return value of user comparison callback (#2368)
Create an XML sort.callback.description entity which contains the description of this parameter with the caution

Co-authored-by: George Peter Banyard <girgias@php.net>
2023-03-23 13:08:38 +00:00
Chuong 2ca0903429 fix: true return type for return true always function (#2154)
Various functions and method have had their return type changed to true.

Fix this and add changelog entries.

Co-authored-by: George Peter Banyard <girgias@php.net>
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
2023-02-20 16:16:37 +00:00
Christoph M. Becker 31cacb6f26 Fix #80699: array_map no longer passes by reference 2021-12-31 19:21:39 +01:00
Salomon88 6a6f43d1c4 Documentation of index reset effect of some array functions - issue #876 (#1077)
Co-authored-by: Alexey Kryuchkov <alexey.kryuchkov@jetbrains.com>

Closes GH-1077.
2021-11-09 13:01:19 +01:00
George Peter Banyard d1df62fe77 Update array sorting docs
These always return true, even in PHP 7
Clarify sorting is unstable prior to PHP 8.0
Normalize the docs between the functions

Closes GH-686
2021-08-19 15:46:00 +01:00
Christoph Michael Becker cd943f94a0 Generate array methodsynopses based on stubs
Partial merge of <https://github.com/php/doc-en/pull/266>.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351860 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-04 00:35:15 +00:00
Christoph Michael Becker 32952c4ddc Fix #51229: consecutives sorting with usort and uasort
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@339490 c90b9560-bf6c-de11-be94-00142212c4b1
2016-06-25 14:42:12 +00:00
Nikita Popov 3ce14fde5c Normalize parameter names of array functions
Normalizing parameter names in docs first to later update arginfos from that.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@331477 c90b9560-bf6c-de11-be94-00142212c4b1
2013-09-24 13:06:51 +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 8519fee981 Cleaning up and refactoring the callback descriptions for functions which use a user-defined comparison function.
Adds an entity to global.ent defining a generic callback prototype, which is common to several sorting functions.
Adds a language snippet describing the comparison function return value, which is common to several sorting functions.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@323049 c90b9560-bf6c-de11-be94-00142212c4b1
2012-02-03 21:07:23 +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
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 876c81c602 fixed properties
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@283800 c90b9560-bf6c-de11-be94-00142212c4b1
2009-07-11 06:30:45 +00:00
Philip Olson 768052f230 Cleaned up SeeAlso for the array sorting functions,
and linked them to the new array sorting chapter


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@277530 c90b9560-bf6c-de11-be94-00142212c4b1
2009-03-20 20:40:34 +00:00
Philip Olson 84525eff8e Changed deprecated ereg to preferred preg from SeeAlso and Examples
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@270042 c90b9560-bf6c-de11-be94-00142212c4b1
2008-11-28 20:34:00 +00:00
Mehdi Achour 885d702e25 Switch to new doc style
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@249444 c90b9560-bf6c-de11-be94-00142212c4b1
2007-12-30 19:17:05 +00:00
Richard Quadling a1496cecfe WS - Removal of TABs.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@245390 c90b9560-bf6c-de11-be94-00142212c4b1
2007-11-01 16:40:42 +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
Hannes Magnusson c3bc936236 WS, preparation for the new doc style...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@222577 c90b9560-bf6c-de11-be94-00142212c4b1
2006-10-31 11:24:02 +00:00
Jakub Vrana caec5e0640 Change example to something different than krsort()
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@210690 c90b9560-bf6c-de11-be94-00142212c4b1
2006-04-05 08:28:14 +00:00
Jakub Vrana 49ad52325c Typo in example (bug #36958)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@210609 c90b9560-bf6c-de11-be94-00142212c4b1
2006-04-03 15:04:09 +00:00
Jakub Vrana 5ace950dc8 Use foreach
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@189684 c90b9560-bf6c-de11-be94-00142212c4b1
2005-07-01 13:07:50 +00:00
Jakub Vrana c148211fa2 Replace <parameter>&amp; by <parameter role="reference">
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@172416 c90b9560-bf6c-de11-be94-00142212c4b1
2004-11-10 08:30:50 +00:00
Yannick Torres 47cce4de27 use more entities
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@171823 c90b9560-bf6c-de11-be94-00142212c4b1
2004-11-01 12:39:29 +00:00
Jakub Vrana c8196b0236 Parameters passed by reference
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@165051 c90b9560-bf6c-de11-be94-00142212c4b1
2004-08-03 10:24:06 +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
Jakub Vrana 313b98ba94 sort functions return true or false
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@147340 c90b9560-bf6c-de11-be94-00142212c4b1
2003-12-26 09:56:59 +00:00
Jakub Vrana b4833d1ae6 Definition of cmp_function
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@147142 c90b9560-bf6c-de11-be94-00142212c4b1
2003-12-22 10:01:48 +00:00
Mehdi Achour e8844eadb3 some more CS
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@146748 c90b9560-bf6c-de11-be94-00142212c4b1
2003-12-18 17:46:56 +00:00
Heilig (Cece) Szabolcs 23396d4d4e applying PEAR coding standards on examples
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@138081 c90b9560-bf6c-de11-be94-00142212c4b1
2003-08-17 12:21:03 +00:00
Derick Rethans 0b93bd27f7 - Fixed structures. The structure for adding examples is:
<para>
 <example>
  <title />
  <programlisting>
<![CDATA[
<?php
echo "foo\n";
?>
]]>
  </programlisting>
  <para>
   The output is:
  </para>
  <screen>
<![CDATA[
foo
]]>
  </screen>
 </example>
</para>


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@131857 c90b9560-bf6c-de11-be94-00142212c4b1
2003-06-16 12:03:39 +00:00
Philip Olson 736a15f139 Added php tags (<?php ?>) to examples.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@129443 c90b9560-bf6c-de11-be94-00142212c4b1
2003-05-30 18:12:53 +00:00
Hartmut Holzgraefe e22d9639b8 ongoing changes to callback pseudo-type
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@101469 c90b9560-bf6c-de11-be94-00142212c4b1
2002-10-26 20:40:42 +00:00
Adrian Jurjica 2f7966f92e no message
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@81901 c90b9560-bf6c-de11-be94-00142212c4b1
2002-05-12 08:19:28 +00:00
Adrian Jurjica de71bf7038 Translation of array functions.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@81898 c90b9560-bf6c-de11-be94-00142212c4b1
2002-05-12 08:10:34 +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