#42561 [Opn->Csd]: cosh() accepts array
| From: | kalle@php.net | Date: | Sat, 02 Aug 2008 18:52:10 +0000 |
| Subject: | #42561 [Opn->Csd]: cosh() accepts array | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-127512@lists.php.net to get a copy of this message | ||
ID: 42561
Updated by: kalle@php.net
Reported By: phpbugs dot 20 dot zsh at spamgourmet dot com
-Status: Open
+Status: Closed
Bug Type: Feature/Change Request
Operating System: Irrelevant
PHP Version: 5.2.4
New Comment:
This seems to be fixed in 5.3
Previous Comments:
------------------------------------------------------------------------
[2007-09-05 12:15:11] phpbugs dot 20 dot zsh at spamgourmet dot com
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 this bug report at http://bugs.php.net/?id=42561&edit=1