Doc #74098 [Ver->Csd]: Misleading information on static function calls.
| From: | cmb@php.net | Date: | Fri, 17 Feb 2017 18:22:05 +0000 |
| Subject: | Doc #74098 [Ver->Csd]: Misleading information on static function calls. | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-14447@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=74098&edit=1
ID: 74098
Updated by: cmb@php.net
Reported by: apokryfos84 at gmail dot com
Summary: Misleading information on static function calls.
-Status: Verified
+Status: Closed
Type: Documentation Problem
Package: Documentation problem
PHP Version: Irrelevant
Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.
Thank you for the report, and for helping us make our documentation better.
Previous Comments:
------------------------------------------------------------------------
[2017-02-17 18:21:32] cmb@php.net
Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&revision=341922
Log: Fix #74098: Misleading information on static function calls.
A feature that is available as of PHP 5.4.0 should not be exemplified
by code requiring a newer version, even though the example would be
less verbose.
------------------------------------------------------------------------
[2017-02-17 17:39:42] cmb@php.net
Also anonymous classes are available only as of PHP 7.0.0.
------------------------------------------------------------------------
[2017-02-15 09:08:25] apokryfos84 at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/functions.anonymous
---
It reads:
"As of PHP 5.4, anonymous functions may be declared statically. This prevents them from having
the current class automatically bound to them. Objects may also not be bound to them at
runtime."
However both examples provided are using a PHP 7+ syntax of declaring and instantly calling a
function. This requires some clarification.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=74098&edit=1