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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
4 + 23 = ?
Subscribe to this entry?

 
 [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: Thu Apr 25 05:01:33 2024 UTC