Commit graph

327 commits

Author SHA1 Message Date
Yoshinari Takaoka
52bd05eb26
more fix about unset cast removed info. 2021-08-12 22:56:16 +09:00
Christoph M. Becker
83a17a7324
Fix notes section of is_callable()
Cf. <https://github.com/php/doc-en/pull/689#pullrequestreview-687134126>.
2021-06-18 10:51:28 +02:00
Larry Garfield
4807f1a19e
Fold in comments from is_callable() page
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>

Closes GH-689.
2021-06-17 23:51:24 +02:00
Máté Kocsis
5770355a66
Various methodsynopsis updates based on recent stub changes
* Update ext/zip methodsynopses based on stubs
* Update resource-related ext/standard methodsynopses based on stubs
* Update ext/dom methodsynopses based on stubs
* Update ext/ffi methodsynopses based on stubs
* Update ext/fileinfo methodsynopses based on stubs
* Update ext/soap methodsynopses based on stubs
* Update ext/sodium methodsynopses based on stubs
* Update ext/ldap methodsynopses based on stubs

Closes GH-598.
2021-05-22 15:24:20 +02:00
Sergey Panteleev
8cdc6621f9
Remove PHP 5, 7 references (#563)
- array functions
- datetime functions
- mbstring functions
- strings functions
- var functions
- xml functions
- json functions
2021-05-16 22:07:40 +03:00
Yoshinari Takaoka
0edc11c6c4
fixed example title. 2021-05-10 17:42:39 +09:00
markrandall
51aee00be4
Improve get_debug_type() docs
Closes GH-591.
2021-05-09 22:50:18 +02:00
Kim Hallberg
ccc438a27b
Update miscellaneous variable handling functions. (#579)
Fix `print_r` Notes section before examples.
Fix `is_object`, `gettype` Example section before changelog.
Fix `get_defined_vars` No parameters sections.
2021-05-03 11:55:42 +02:00
Sergey Panteleev
f9c4a68ef4
Removed references to PHP 5, PHP 7.0 (#548) 2021-04-26 11:46:55 +03:00
Sergey Panteleev
a0ae28d3bc
Removed references to PHP 5, PHP 7.0 (#545) 2021-04-24 20:01:17 +03:00
Sergey Panteleev
5fabd07880
Removed Changelog entries for PHP 5, PHP 7.0 (#543) 2021-04-22 17:52:58 +03:00
Samuel Gfeller
d6cd01d707
Added empty string case to is_numeric code example doc
Closes GH-508.

Signed-off-by: Christoph M. Becker <cmbecker69@gmx.de>
2021-03-30 12:36:25 +02:00
Rowan Tommins
d08d2e887f Rewrite debug_zval_dump manual based on current (>=7.0) behaviour
- The recommended use of a call-time pass-by-reference has been
  impossible since PHP 5.4, making the examples unusable.
- The re-design of references in PHP 7.0 means that the refcount
  no longer reflects these.

Closes GH-466.
2021-03-03 15:34:17 +01:00
Alex Erohin
e4c3d5d495 Update example
mysql_connect() and new_xmldoc() are deprecated/removed.

Closes GH-454.
2021-02-17 11:54:42 +01:00
Yoshinari Takaoka
94f0332bf0 deleted empty note. 2021-02-16 07:39:57 +09:00
Tyson Andre
565d140248 Update note on print_r() and var_export() using output buffering
var_export stopped using output buffering to convert output to a string
long before php 7.0. See
https://github.com/php/php-src/blob/PHP-7.0/ext/standard/var.c#L564-L582

highlight_string/highlight_file are still using output buffering.

```
<?php
function my_buffer($value) {
    fprintf(STDERR, "var_export output: %s\n", var_export(array(), true));
    fprintf(STDERR, "print_r output: %s\n", print_r(array(), true));
    //fprintf(STDERR, "highlight_string output: %s\n", highlight_string('2+2', true));
    return $value;
}
ob_start('my_buffer');
echo "test";
$result = ob_get_clean();
echo "Result: $result\n";
```

Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>

Closes GH-381.
2021-02-15 15:32:20 +01:00
Christoph Michael Becker
0c9c2dd669 Generate some standard methodsynopses based on stubs
Cf. <https://github.com/php/doc-en/pull/289>.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352191 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-26 19:26:31 +00:00
Christoph Michael Becker
3ae0b14dd0 Fix #79126: empty() documentation does not mention SimpleXML objects from empty tags
To avoid duplication, we refer to falsey values instead.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351947 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-07 14:40:21 +00:00
Christoph Michael Becker
e77680d775 Fix #79880: Fatal error: Uncaught Error: Invalid serialization data for DateTime object
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351869 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-04 13:12:56 +00:00
Christoph Michael Becker
1987cb8e71 Fix typo
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351823 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-01 16:23:33 +00:00
Christoph Michael Becker
22529a07ac Fix #80453: Documentation example error
Actually, this example should better be rewritten to something simpler or at
least something relevant.  However, the unserialize() page has the counter
example, so we postpone that, and apply an odd fix instead.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351822 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-01 16:22:07 +00:00
Christoph Michael Becker
4754397753 Revert revision 351727 from phpdoc/en/trunk:
Document false and null return types

Cf. <https://news-web.php.net/php.doc.cvs/17645>.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351729 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-28 17:58:32 +00:00
Jakub Vrana
69bd53265b Document false and null return types
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351727 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-28 15:12:46 +00:00
George Peter Banyard
d494ffa4d9 Add a page about numeric strings
Closes GH-215

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351700 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-27 15:56:30 +00:00
Christoph Michael Becker
ac20506c2a Added documentation for the get_resource_id function
Closes GH-227.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351584 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-24 17:52:54 +00:00
Christoph Michael Becker
75a1a31dc0 Fix #80401: Inaccurate documentation on gettype (for Integer)
We also fix the markup (this is not about types, but rather about
literal strings), and use a more appropriate `<simplelist>`.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351521 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-23 01:59:21 +00:00
Christoph Michael Becker
86e6094e86 Use canonical type names
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351133 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-02 15:39:04 +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
ccfd117024 is_float() is deprecated and removed
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350756 c90b9560-bf6c-de11-be94-00142212c4b1
2020-10-04 11:06:52 +00:00
Christoph Michael Becker
3e15d2894f Remove more changelog entries, mostly from PHP 5.4 era
Patch contributed by Sobak <msobaczewski@gmail.com>.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350656 c90b9560-bf6c-de11-be94-00142212c4b1
2020-09-26 14:15:17 +00:00
Christoph Michael Becker
7f569e1f17 Remove more changelog entries, mostly from PHP 5.3 era
Patch contributed by Sobak <msobaczewski@gmail.com>.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350655 c90b9560-bf6c-de11-be94-00142212c4b1
2020-09-26 14:08:59 +00:00
Christoph Michael Becker
be5b0f33a1 Remove more changelog entries, mostly from PHP 5.1 era
Patch contributed by Sobak <msobaczewski@gmail.com>.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350653 c90b9560-bf6c-de11-be94-00142212c4b1
2020-09-26 13:45:57 +00:00
Christoph Michael Becker
5ebd63a4b5 Reflect removal of functions dropped in minor or patch releases
Patch contributed by Sobak <msobaczewski@gmail.com>.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350652 c90b9560-bf6c-de11-be94-00142212c4b1
2020-09-26 13:40:03 +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
468e71623d Fix #80110: object with __invoke method is considered callable
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350580 c90b9560-bf6c-de11-be94-00142212c4b1
2020-09-17 10:11:40 +00:00
Christoph Michael Becker
e1438a020b Document the __serialize/__unserialize magic in PHP 7.4
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349590 c90b9560-bf6c-de11-be94-00142212c4b1
2020-04-01 23:15:30 +00:00
Christoph Michael Becker
d4e3166e8c Typo fix
Patch provided by Larry Garfield.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349581 c90b9560-bf6c-de11-be94-00142212c4b1
2020-04-01 07:08:43 +00:00
Christoph Michael Becker
bb2cebd575 is_numeric() accepts leading whitespace
Cf. bug #67719.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349477 c90b9560-bf6c-de11-be94-00142212c4b1
2020-03-17 09:03:45 +00:00
Christoph Michael Becker
9ddc8b6946 Fix broken changelog and wrong version number
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349260 c90b9560-bf6c-de11-be94-00142212c4b1
2020-02-28 14:00:14 +00:00
Nikita Popov
68601c39b9 var_export: Mention 7.3.0 change for stdClass
Patch by hikari-no-yume.

Closes php/doc-en#49.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349259 c90b9560-bf6c-de11-be94-00142212c4b1
2020-02-28 10:40:04 +00:00
Pieter Hordijk
f491e90003 Added conversion values for true and false in the examples area
-- 
Provided by anonymous 99841 (chris@env.ms)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@348405 c90b9560-bf6c-de11-be94-00142212c4b1
2019-12-03 16:44:44 +00:00
George Peter Banyard
d693ad157f Adapting some anonymous user contributions.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@348339 c90b9560-bf6c-de11-be94-00142212c4b1
2019-11-24 05:12:07 +00:00
George Peter Banyard
9651001802 Use type tag for resource
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@348211 c90b9560-bf6c-de11-be94-00142212c4b1
2019-10-24 09:49:47 +00:00
Christoph Michael Becker
8088fbe7ef Fix parameter name
Based on a patch provided by jasny@php.net.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347807 c90b9560-bf6c-de11-be94-00142212c4b1
2019-07-27 11:25:45 +00:00
George Peter Banyard
652367cc9d Remove PHP 4 and 5.0.0 mentions.
This includes changelogs but also some paragraphs and notes which mention PHP 4.

These should be the last ones from the core extensions.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347577 c90b9560-bf6c-de11-be94-00142212c4b1
2019-06-08 15:52:28 +00:00
George Peter Banyard
cec5c740b5 Fix Doc Bug #74842
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347047 c90b9560-bf6c-de11-be94-00142212c4b1
2019-03-24 20:06:21 +00:00
Christoph Michael Becker
a2148bbab3 Improve wording
Patch provided by an anonymous user.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346966 c90b9560-bf6c-de11-be94-00142212c4b1
2019-03-03 13:49:34 +00:00
Christoph Michael Becker
18da52a535 Clarify serialize() exceptions
Inspired by a patch provided by an anonymous user.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346043 c90b9560-bf6c-de11-be94-00142212c4b1
2018-11-26 12:02:22 +00:00
Christoph Michael Becker
b6d3b6bc18 Fix “typo”
Patch provided by anonymous user.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345219 c90b9560-bf6c-de11-be94-00142212c4b1
2018-06-26 17:27:50 +00:00
Christoph Michael Becker
87054c1c43 Refer to the (unset) casting section
Inspired by a patch provided by an anonymous user.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345151 c90b9560-bf6c-de11-be94-00142212c4b1
2018-06-16 12:34:51 +00:00