Doc #62969 [NEW]: Documentation does not mention change of behavior in 5.3.9 caused by is_a chang

From: Date: Wed, 29 Aug 2012 13:31:57 +0000
Subject: Doc #62969 [NEW]: Documentation does not mention change of behavior in 5.3.9 caused by is_a chang
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-8789@lists.php.net to get a copy of this message
From: ar at ez dot no Operating system: Any PHP version: Irrelevant Package: Documentation problem Bug Type: Documentation Problem Bug description:Documentation does not mention change of behavior in 5.3.9 caused by is_a chang Description: ------------ --- From manual page: http://www.php.net/function.is-subclass-of#refsect1-function.is- subclass-of-changelog --- The documentation should somehow make the reader aware that is_subclass_of did not work reliable with interfaces before 5.3.9 when https://bugs.php.net/bug.php? id=53727 and https://bugs.php.net/bug.php?id=55475 where fixed. It should maybe point the reader to class_implements() for a way to realiable check that a class name (string) implements a given interface. Test script: --------------- <?php interface MyInterface {} class MyClass implements MyInterface {} // This will fail on 5.3.8 and earlier, this has been fixed // in #53727, but doc does not reflect that. echo (is_subclass_of('MyClass', 'MyInterface') ? 'true' : 'false'); Expected result: ---------------- true Actual result: -------------- false -- Edit bug report at https://bugs.php.net/bug.php?id=62969&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=62969&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=62969&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=62969&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=62969&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=62969&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=62969&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=62969&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=62969&r=needscript Try newer version: https://bugs.php.net/fix.php?id=62969&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=62969&r=support Expected behavior: https://bugs.php.net/fix.php?id=62969&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=62969&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=62969&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=62969&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=62969&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=62969&r=dst IIS Stability: https://bugs.php.net/fix.php?id=62969&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=62969&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=62969&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=62969&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=62969&r=mysqlcfg

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