Doc #74098 [Opn->Ver]: Misleading information on static function calls.

From: Date: Fri, 17 Feb 2017 17:39:42 +0000
Subject: Doc #74098 [Opn->Ver]: Misleading information on static function calls.
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-14446@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: Open +Status: Verified Type: Documentation Problem Package: Documentation problem PHP Version: Irrelevant Block user comment: N Private report: N New Comment: Also anonymous classes are available only as of PHP 7.0.0. Previous Comments: ------------------------------------------------------------------------ [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

« previous php.doc.bugs (#14446) next »