php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #42561 cosh() accepts array
Submitted: 2007-09-05 12:15 UTC Modified: 2008-08-02 18:52 UTC
From: phpbugs dot 20 dot zsh at spamgourmet dot com Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 5.2.4 OS: Irrelevant
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: phpbugs dot 20 dot zsh at spamgourmet dot com
New email:
PHP Version: OS:

 

 [2007-09-05 12:15 UTC] 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)


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-08-02 18:52 UTC] kalle@php.net
This seems to be fixed in 5.3
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Jan 03 05:01:29 2025 UTC