php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59389 put() casts its 1st arg to string
Submitted: 2010-08-27 09:08 UTC Modified: 2010-08-28 06:49 UTC
From: anon at domain dot tld Assigned:
Status: Closed Package: tokyo_tyrant (PECL)
PHP Version: 5.3.2 OS: CentOS 5.3
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.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: anon at domain dot tld
New email:
PHP Version: OS:

 

 [2010-08-27 09:08 UTC] anon at domain dot tld
Description:
------------
TokyoTyrant::put() casts its 1st argument to string.

Reproduce code:
---------------
<?php

$tt = new TokyoTyrant($addr, $port);
$key = 1;
$tt->put($key, 'value');
echo gettype($key);


Expected result:
----------------
integer

Actual result:
--------------
string

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-08-28 06:49 UTC] mkoppanen@php.net
Fixed in git master and should be in the next release.
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Fri Dec 04 17:01:23 2020 UTC