Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Create gh_500.phpt
  • Loading branch information
xPaw authored Feb 17, 2022
commit 6d103a2c6f157c985f62b3924407cd5509db44df
25 changes: 25 additions & 0 deletions tests/gh_500.phpt
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
--TEST--
Test for Github issue 500
--SKIPIF--
<?php include "skipif.inc";?>
--FILE--
<?php
include dirname (__FILE__) . '/config.inc';

$m = new Memcached();
$newServers = array(
array(MEMC_SERVER_HOST, MEMC_SERVER_PORT),
);
$m->addServers($newServers);

$m->set('floatpoint', 100.200);
$n = $m->get('floatpoint');
var_dump($n);

$m->set('floatpoint_neg', -300.400);
$n = $m->get('floatpoint_neg');
var_dump($n);
?>
--EXPECT--
float(100.200)
float(-300.400)