#48138 [NEW]: call_user_func documentation confusing and vague for callback usage.
| From: | cythrawll at codeangel dot org | Date: | Sun, 03 May 2009 19:07:23 +0000 |
| Subject: | #48138 [NEW]: call_user_func documentation confusing and vague for callback usage. | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-2190@lists.php.net to get a copy of this message | ||
From: cythrawll at codeangel dot org
Operating system:
PHP version: Irrelevant
PHP Bug Type: Documentation problem
Bug description: call_user_func documentation confusing and vague for callback usage.
Description:
------------
Documentation for call_user_func implicitly mentions methods of calling
static methods from a class, but fails to mention that any callback is
valid, this seemed to cause confusion that methods from an object can not
be called from this function.
User was convinced this wouldn't work because of the documentation:
call_user_func(array($objinstance, 'methodname'), $arg);
--
Edit bug report at http://bugs.php.net/?id=48138&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=48138&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=48138&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=48138&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=48138&r=fixedcvs
Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=48138&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=48138&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=48138&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=48138&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=48138&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=48138&r=support
Expected behavior: http://bugs.php.net/fix.php?id=48138&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=48138&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=48138&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=48138&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48138&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=48138&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=48138&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=48138&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=48138&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=48138&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=48138&r=mysqlcfg