php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #46316 call_user_func_array php5.x differences
Submitted: 2008-10-16 15:45 UTC Modified: 2010-10-20 09:11 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: rpeters at icomproductions dot ca Assigned: kalle (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: rpeters at icomproductions dot ca
New email:
PHP Version: OS:

 

 [2008-10-16 15:45 UTC] rpeters at icomproductions dot ca
Description:
------------
return call_user_func_array(array($this, 'parent::__construct'), $arrParentArgs); causes a warning in 5.1.1, but works in 5.2.6

$parent_class=get_parent_class($this);
call_user_func_array(array($parent_class, '__construct'), $arrParentArgs); causes an e_strict message in 5.2.6, but works in 5.1.1

The documentation needs to state when this change occurred, so that applications can test the PHP version and behave appropriately.

Expected result:
----------------
The documentation should reflect this behavior change, and inform developers of how to work with it. It should also describe the current correct way of calling parent functions.

Actual result:
--------------
The documentation says nothing about using parent in call_user_func_array.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-10-20 09:11 UTC] kalle@php.net
Automatic comment from SVN on behalf of kalle
Revision: http://svn.php.net/viewvc/?view=revision&revision=304537
Log: Fixed bug #46316 (call_user_func_array php5.x differences)
 [2010-10-20 09:11 UTC] kalle@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: kalle
 [2010-10-20 09:11 UTC] kalle@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:09 UTC] phpdocbot@php.net
Automatic comment on behalf of kalle
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=e8289cd5f61a864e50096d8afe9962cf59f3d14c
Log: Fixed bug #46316 (call_user_func_array php5.x differences)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 22:01:29 2024 UTC