#42561 [NEW]: cosh() accepts array

From: Date: Wed, 05 Sep 2007 12:15:11 +0000
Subject: #42561 [NEW]: cosh() accepts array
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-117161@lists.php.net to get a copy of this message
From: phpbugs dot 20 dot zsh at spamgourmet dot com Operating system: Irrelevant PHP version: 5.2.4 PHP Bug Type: Math related Bug description: cosh() accepts array Description: ------------ cosh() does not properly check the type of the passed parameter. Reproduce code: --------------- <?php var_dump(cosh(array())); ?> Expected result: ---------------- Warning: cosh() expects parameter 1 to be long, array given in %s on line %d NULL Actual result: -------------- float(1) -- Edit bug report at http://bugs.php.net/?id=42561&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=42561&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=42561&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=42561&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=42561&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=42561&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=42561&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=42561&r=needscript Try newer version: http://bugs.php.net/fix.php?id=42561&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=42561&r=support Expected behavior: http://bugs.php.net/fix.php?id=42561&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=42561&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=42561&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=42561&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42561&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=42561&r=dst IIS Stability: http://bugs.php.net/fix.php?id=42561&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=42561&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=42561&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=42561&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=42561&r=mysqlcfg

« previous php.bugs (#117161) next »