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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
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-2024 The PHP Group
All rights reserved.
Last updated: Fri May 10 20:01:37 2024 UTC