php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #50120 Error in documentation.
Submitted: 2009-11-09 11:24 UTC Modified: 2009-11-09 11:48 UTC
From: grzegorz dot drozd at esky dot pl Assigned:
Status: Closed Package: Documentation problem
PHP Version: 5.2.11 OS:
Private report: No CVE-ID: None
 [2009-11-09 11:24 UTC] grzegorz dot drozd at esky dot pl
Description:
------------
Error in documentation SplObjectStorage::attach() expects exactly 1 parameter, 2 given.

Reproduce code:
---------------
$obj = new SplObjectStorage();
$obj->attach($processor, get_class($processor));

---
From manual page: splobjectstorage.attach#Description
---


Expected result:
----------------
No errors

Actual result:
--------------
Warning: SplObjectStorage::attach() expects exactly 1 parameter, 2 given.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-11-09 11:48 UTC] svn@php.net
Automatic comment from SVN on behalf of rquadling
Revision: http://svn.php.net/viewvc/?view=revision&revision=290411
Log: Added changelog for SPLObjectStorage->attach(). Fix bug#50120
 [2009-11-09 11:48 UTC] rquadling@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.

The data parameter was introduced in PHP V5.3.0. Documentation updated.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sat Oct 10 09:00:01 2026 UTC