1
0
mirror of https://github.com/php/doc-en.git synced 2026-03-24 07:42:10 +01:00

24 Commits

Author SHA1 Message Date
Mikhail Alferov
d58ee8eaaa Add a link to the explanation of the term 'symbol table' + slightly adjust the code of the examples (#3666)
* globals.xml: add a link to the explanation of the term "symbol table"

+ amend the code examples

* extract.xml: add a link to the explanation of the term "symbol table"

+ amend the code examples

* compact.xml: add a link to the explanation of the term "symbol table"

+ amend the code examples

* references.xml: add a link to the explanation of the term "symbol table"

+ amend the code examples

* Nits

---------

Co-authored-by: Gina Peter Banyard <girgias@php.net>
2024-08-25 23:22:41 +01:00
Hideki Kinjyo
e311803cd2 compact() issues an E_WARNING as of PHP 8.0 (#2776)
PHP 8.0 converted a number of notice to warnings via the "Reclassifying engine warnings" RFC:
https://wiki.php.net/rfc/engine_warnings
2023-09-19 18:42:22 +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
9e0f03ac35 Proper variadics instead of pseudo variadics
We markup variadic parameters with the `rep=repeat` standard DocBook
attribute of `<methodparam>`, and use proper variable names instead of
using the old pseudo variable name `...`.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351129 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-02 11:17:26 +00:00
Christoph Michael Becker
930f983b23 Fix example wrt. recent PHP versions
As of PHP 7.3.0, the usage of undefined variables with compact() trigger
a notice, and as their support should be considered legacy behavior.
Therefore we remove the variable from the example.

Patch provided by anonymous user.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347684 c90b9560-bf6c-de11-be94-00142212c4b1
2019-06-30 09:39:45 +00:00
Christoph Michael Becker
0ea2fa3e03 Document compact() change for 7.3
Based on a patch provided by Gabriel Caruso.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345170 c90b9560-bf6c-de11-be94-00142212c4b1
2018-06-19 14:55:51 +00:00
Christoph Michael Becker
e9be040e16 Integrate user note 101775
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345049 c90b9560-bf6c-de11-be94-00142212c4b1
2018-05-25 14:09:07 +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
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
Mehdi Achour
c10971d592 Switch to new doc style
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@249451 c90b9560-bf6c-de11-be94-00142212c4b1
2007-12-30 23:05:06 +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
Antony Dovgal
8feaa6b90d fix typos
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@228476 c90b9560-bf6c-de11-be94-00142212c4b1
2007-01-30 09:19:32 +00:00
Hannes Magnusson
e44970bf48 Fix examples to print the output and fix output
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@228472 c90b9560-bf6c-de11-be94-00142212c4b1
2007-01-30 09:06:51 +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
Philip Olson
72abc2a3a6 Document bug #30935 (may not use Superglobals)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@177506 c90b9560-bf6c-de11-be94-00142212c4b1
2005-01-18 03:03:14 +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
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