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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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: Sun Jan 05 08:01:28 2025 UTC