Doc #60900 [NEW]: Remove the warning in gettype()'s documentation

From: Date: Fri, 27 Jan 2012 10:18:12 +0000
Subject: Doc #60900 [NEW]: Remove the warning in gettype()'s documentation
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-7874@lists.php.net to get a copy of this message
From: Operating system: PHP version: Irrelevant Package: Documentation problem Bug Type: Documentation Problem Bug description:Remove the warning in gettype()'s documentation Description: ------------ The documentation page for gettype() contains a big warning saying "the returned string may be subject to change in a future version". See http://php.net/gettype But since the release process RFC is now approved, shouldn't this waring be removed a gettype()'s current behavior be marked as stable, for the shake of strict backward compatibility ? See https://wiki.php.net/rfc/releaseprocess Also, the doc says that using is_*() functions is faster than using gettype() because of the string comparison. But a switch(gettype($var)) is way faster than a if (is_*()) ... else if (is_*()) ... Thus, this speed notice is misleading I think. -- Edit bug report at https://bugs.php.net/bug.php?id=60900&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=60900&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=60900&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=60900&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=60900&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=60900&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=60900&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=60900&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=60900&r=needscript Try newer version: https://bugs.php.net/fix.php?id=60900&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=60900&r=support Expected behavior: https://bugs.php.net/fix.php?id=60900&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=60900&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=60900&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=60900&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=60900&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=60900&r=dst IIS Stability: https://bugs.php.net/fix.php?id=60900&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=60900&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=60900&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=60900&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=60900&r=mysqlcfg

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