#46334 [NEW]: Documentation enhancement request -- Type Juggling help page

From: Date: Fri, 17 Oct 2008 16:30:49 +0000
Subject: #46334 [NEW]: Documentation enhancement request -- Type Juggling help page
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-1214@lists.php.net to get a copy of this message
From: hek at theeks dot net Operating system: Irrelevant PHP version: Irrelevant PHP Bug Type: Documentation problem Bug description: Documentation enhancement request -- Type Juggling help page Description: ------------ On the "Type Juggling" help page at http://us.php.net/manual/en/language.types.type-juggling.php (or on some other related page) it would be useful to document the precedence (for lack of a better word) PHP follows when type juggling. This entry currently explains that "if either operand is a float, then both operands are evaluated as floats, and the result will be a float" but could (and I think should) provide a hierarchy that indicates, for instance, "between an int and a boolean, int wins; between a float and an int, float wins; between a string and a float, string wins" and so on (and don't count on my example accurately capturing the true hierarchy, as I haven't actually done the tests to figure it out). Thanks! -- Edit bug report at http://bugs.php.net/?id=46334&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=46334&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=46334&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=46334&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=46334&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=46334&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=46334&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=46334&r=needscript Try newer version: http://bugs.php.net/fix.php?id=46334&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=46334&r=support Expected behavior: http://bugs.php.net/fix.php?id=46334&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=46334&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=46334&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=46334&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=46334&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=46334&r=dst IIS Stability: http://bugs.php.net/fix.php?id=46334&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=46334&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=46334&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=46334&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=46334&r=mysqlcfg

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