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 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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Wed Jan 15 15:01:31 2025 UTC