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 Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or 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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Tue May 07 05:01:30 2024 UTC