Doc #64221 [NEW]: incomplete manual

From: Date: Fri, 15 Feb 2013 19:48:09 +0000
Subject: Doc #64221 [NEW]: incomplete manual
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-9525@lists.php.net to get a copy of this message
From: wowkise at gmail dot com Operating system: PHP version: 5.4.11 Package: Documentation problem Bug Type: Documentation Problem Bug description:incomplete manual Description: ------------ --- From manual page: http://www.php.net/function.is-callable#refsect1-function.is-callable-examples --- The Manual should clearly states that calling "is_callable()" on class that has a method with holds the same name as the className will return false for backwards compatibility. i wasted hours trying to understand why until i hit a bug that dealt with this issue. Test script: --------------- class test { public function __construct() {} public function test() {} } var_dump( is_callable( ['test','test'] ) ); Expected result: ---------------- it should return Boolean(true), but for compatibility reasons its returns Boolean(false), which in my opinion makes no since if the class has __construct() Actual result: -------------- Boolean(false) -- Edit bug report at https://bugs.php.net/bug.php?id=64221&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=64221&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=64221&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=64221&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=64221&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=64221&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=64221&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=64221&r=needscript Try newer version: https://bugs.php.net/fix.php?id=64221&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=64221&r=support Expected behavior: https://bugs.php.net/fix.php?id=64221&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=64221&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=64221&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=64221&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=64221&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=64221&r=dst IIS Stability: https://bugs.php.net/fix.php?id=64221&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=64221&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=64221&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=64221&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=64221&r=mysqlcfg

« previous php.doc.bugs (#9525) next »