php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #35595 pseudo-types documentation uses object references
Submitted: 2005-12-08 07:54 UTC Modified: 2005-12-08 10:30 UTC
From: david at tulloh dot id dot au Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2005-12-08 07:54 UTC] david at tulloh dot id dot au
Description:
------------
Example 11-13 from http://www.php.net/manual/en/language.pseudo-types.php shows callback function examples.

The last line is:
call_user_func(array(&$obj, 'myCallbackMethod'));

The pointer should no longer be used, this should now be:
call_user_func(array($obj, 'myCallbackMethod'));


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-12-08 10:30 UTC] vrana@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.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Nov 20 06:00:01 2025 UTC