php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #74285 Closure::bindto documentation is missing change in PHP7.0.0
Submitted: 2017-03-21 13:25 UTC Modified: 2017-03-25 12:37 UTC
From: bburnichon at gmail dot com Assigned: cmb (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2017-03-21 13:25 UTC] bburnichon at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/closure.bindto
---

Same changelog as below should be added to bindto.

http://php.net/manual/en/closure.bind.php#refsect1-closure.bind-changelog

Also, it is not clear to me that only "stdClass" or stdClass instances are not accepted by both methods since PHP 7.0.0.

I have read documentation several times and thought that instances were not allowed and that only strings were valid. I was wrong and restriction is about "stdClass" scope and not about type of parameter called "scope".


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-03-25 12:31 UTC] cmb@php.net
-Status: Open +Status: Verified -Assigned To: +Assigned To: cmb
 [2017-03-25 12:31 UTC] cmb@php.net
> Same changelog as below should be added to bindto.

ACK.

> I have read documentation several times and thought that
> instances were not allowed and that only strings were valid.

The documentation states[1]:

| If an object is given, the type of the object will be used
| instead.

[1]
<http://php.net/manual/en/closure.bindto.php#refsect1-closure.bindto-parameters>
 [2017-03-25 12:36 UTC] cmb@php.net
Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=342186
Log: Fix #74285: Closure::bindto documentation is missing change in PHP7.0.0
 [2017-03-25 12:37 UTC] cmb@php.net
-Status: Verified +Status: Closed
 [2017-03-25 12:37 UTC] cmb@php.net
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.
 [2020-02-07 06:06 UTC] phpdocbot@php.net
Automatic comment on behalf of cmb
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=57348daadc443b9b529ef2739e995d6852110f85
Log: Fix #74285: Closure::bindto documentation is missing change in PHP7.0.0
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 15:01:28 2024 UTC