Skip to content

Commit

Permalink
Add changelog, fix test hlper filenames
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikko Koppanen committed Jun 9, 2010
1 parent 6037f65 commit 937b954
Show file tree
Hide file tree
Showing 29 changed files with 83 additions and 55 deletions.
29 changes: 29 additions & 0 deletions ChangeLog
@@ -0,0 +1,29 @@
?.?.?

0.5.0
- Fix crash when session_regenerate_id(true) is called
- Fix SIGFPE when no servers are added to the pool
- Make configure pkg-config checks more robust

0.4.0
- Fix restore method to use correct timestamp precision
- Dual license under PHP and BSD licenses

0.3.0
- Added multiget for tables. Thanks to Devin
- Fixed binary safety on table methods

0.2.0
- Warnings instead of fatal errors in session handler
- Added TokyoTyrantIterator
- Added getIterator method to TokyoTyrant and TokyoTyrantTable classes

0.1.2
- Make sure that keys and values are binary-safe

0.1.1
- Disabled timeout by default
- Added tune method to change the timeout

0.1.0
- Initial release
9 changes: 4 additions & 5 deletions package.xml
Expand Up @@ -15,19 +15,18 @@ This extension requires Tokyo Cabinet, Tokyo Tyrant and PHP version 5.2.0+.
<email>mkoppanen@php.net</email>
<active>yes</active>
</lead>
<date>2010-03-29</date>
<date>2010-06-09</date>
<version>
<release>0.4.0</release>
<api>0.4.0</api>
<release>0.5.0</release>
<api>0.5.0</api>
</version>
<stability>
<release>beta</release>
<api>beta</api>
</stability>
<license uri="http://www.php.net/license">PHP License</license>
<notes>
- Fix restore method to use correct timestamp precision
- Dual license under PHP and BSD licenses
- Fix crash when session_regenerate_id(true) is called
</notes>
<contents>
<dir name="/">
Expand Down
4 changes: 2 additions & 2 deletions tests/001-connect.phpt
Expand Up @@ -2,11 +2,11 @@
Test connect variations
--SKIPIF--
<?php
include dirname(__FILE__) . "/skipif.inc.php";
include dirname(__FILE__) . "/skipif.inc";
?>
--FILE--
<?php
include 'config.inc.php';
include dirname(__FILE__) . '/config.inc';

$tt = new TokyoTyrant(TT_HOST, TT_PORT, array('persistent' => true));
$tt->connect(TT_HOST, TT_PORT, array('persistent' => false));
Expand Down
4 changes: 2 additions & 2 deletions tests/002-put-and-get.phpt
Expand Up @@ -2,11 +2,11 @@
Test single value put / get variations
--SKIPIF--
<?php
include dirname(__FILE__) . "/skipif.inc.php";
include dirname(__FILE__) . "/skipif.inc";
?>
--FILE--
<?php
include 'config.inc.php';
include dirname(__FILE__) . '/config.inc';

$tt = new TokyoTyrant(TT_HOST, TT_PORT);
$tt->vanish();
Expand Down
4 changes: 2 additions & 2 deletions tests/003-put-and-get-multiple.phpt
Expand Up @@ -2,11 +2,11 @@
Test multiple value put / get variations
--SKIPIF--
<?php
include dirname(__FILE__) . "/skipif.inc.php";
include dirname(__FILE__) . "/skipif.inc";
?>
--FILE--
<?php
include 'config.inc.php';
include dirname(__FILE__) . '/config.inc';

$tt = new TokyoTyrant(TT_HOST, TT_PORT);
$tt->vanish();
Expand Down
4 changes: 2 additions & 2 deletions tests/004-out.phpt
Expand Up @@ -2,11 +2,11 @@
Test removing records
--SKIPIF--
<?php
include dirname(__FILE__) . "/skipif.inc.php";
include dirname(__FILE__) . "/skipif.inc";
?>
--FILE--
<?php
include 'config.inc.php';
include dirname(__FILE__) . '/config.inc';

$tt = new TokyoTyrant(TT_HOST, TT_PORT);
$tt->vanish();
Expand Down
4 changes: 2 additions & 2 deletions tests/005-clone.phpt
Expand Up @@ -2,11 +2,11 @@
Test variations of clone
--SKIPIF--
<?php
include dirname(__FILE__) . "/skipif.inc.php";
include dirname(__FILE__) . "/skipif.inc";
?>
--FILE--
<?php
include 'config.inc.php';
include dirname(__FILE__) . '/config.inc';

$tt = new TokyoTyrant(TT_HOST, TT_PORT);
$tt2 = clone $tt;
Expand Down
4 changes: 2 additions & 2 deletions tests/006-stress-test.phpt
Expand Up @@ -2,11 +2,11 @@
Test put, get and out in a batch
--SKIPIF--
<?php
include dirname(__FILE__) . "/skipif.inc.php";
include dirname(__FILE__) . "/skipif.inc";
?>
--FILE--
<?php
include 'config.inc.php';
include dirname(__FILE__) . '/config.inc';

$values = 100;
$tt = new TokyoTyrant(TT_HOST, TT_PORT);
Expand Down
4 changes: 2 additions & 2 deletions tests/007-add.phpt
Expand Up @@ -2,11 +2,11 @@
Test add int and double
--SKIPIF--
<?php
include dirname(__FILE__) . "/skipif.inc.php";
include dirname(__FILE__) . "/skipif.inc";
?>
--FILE--
<?php
include 'config.inc.php';
include dirname(__FILE__) . '/config.inc';

$tt = new TokyoTyrant(TT_HOST, TT_PORT);
$tt->vanish();
Expand Down
4 changes: 2 additions & 2 deletions tests/008-table-put.phpt
Expand Up @@ -2,11 +2,11 @@
Table put variations
--SKIPIF--
<?php
include dirname(__FILE__) . "/skipif.inc.php";
include dirname(__FILE__) . "/skipif.inc";
?>
--FILE--
<?php
include 'config.inc.php';
include dirname(__FILE__) . '/config.inc';

$tt = new TokyoTyrantTable(TT_TABLE_HOST, TT_TABLE_PORT);
$tt->vanish();
Expand Down
4 changes: 2 additions & 2 deletions tests/009-search.phpt
Expand Up @@ -2,11 +2,11 @@
Table search variations
--SKIPIF--
<?php
include dirname(__FILE__) . "/skipif.inc.php";
include dirname(__FILE__) . "/skipif.inc";
?>
--FILE--
<?php
include 'config.inc.php';
include dirname(__FILE__) . '/config.inc';

$tt = new TokyoTyrantTable(TT_TABLE_HOST, TT_TABLE_PORT);
$tt->sync()->vanish();
Expand Down
4 changes: 2 additions & 2 deletions tests/010-stat.phpt
Expand Up @@ -2,11 +2,11 @@
Make sure that stat returns an array
--SKIPIF--
<?php
include dirname(__FILE__) . "/skipif.inc.php";
include dirname(__FILE__) . "/skipif.inc";
?>
--FILE--
<?php
include 'config.inc.php';
include dirname(__FILE__) . '/config.inc';

$tt = new TokyoTyrant(TT_HOST, TT_PORT);
echo gettype($tt->stat());
Expand Down
4 changes: 2 additions & 2 deletions tests/011-setindex.phpt
Expand Up @@ -2,11 +2,11 @@
Test setting an index on column
--SKIPIF--
<?php
include dirname(__FILE__) . "/skipif.inc.php";
include dirname(__FILE__) . "/skipif.inc";
?>
--FILE--
<?php
include 'config.inc.php';
include dirname(__FILE__) . '/config.inc';

$tt = new TokyoTyrantTable(TT_TABLE_HOST, TT_TABLE_PORT);
$tt->vanish();
Expand Down
4 changes: 2 additions & 2 deletions tests/012-table-out.phpt
Expand Up @@ -2,11 +2,11 @@
Table out variations
--SKIPIF--
<?php
include dirname(__FILE__) . "/skipif.inc.php";
include dirname(__FILE__) . "/skipif.inc";
?>
--FILE--
<?php
include 'config.inc.php';
include dirname(__FILE__) . '/config.inc';

$tt = new TokyoTyrantTable(TT_TABLE_HOST, TT_TABLE_PORT);
$tt->vanish();
Expand Down
4 changes: 2 additions & 2 deletions tests/013-size.phpt
Expand Up @@ -2,11 +2,11 @@
Test size
--SKIPIF--
<?php
include dirname(__FILE__) . "/skipif.inc.php";
include dirname(__FILE__) . "/skipif.inc";
?>
--FILE--
<?php
include 'config.inc.php';
include dirname(__FILE__) . '/config.inc';

$tt = new TokyoTyrant(TT_HOST, TT_PORT);
$tt->vanish();
Expand Down
4 changes: 2 additions & 2 deletions tests/014-fwmkeys.phpt
Expand Up @@ -2,11 +2,11 @@
Test forward matching keys
--SKIPIF--
<?php
include dirname(__FILE__) . "/skipif.inc.php";
include dirname(__FILE__) . "/skipif.inc";
?>
--FILE--
<?php
include 'config.inc.php';
include dirname(__FILE__) . '/config.inc';

$tt = new TokyoTyrant(TT_HOST, TT_PORT);
$tt->vanish();
Expand Down
4 changes: 2 additions & 2 deletions tests/015-num.phpt
Expand Up @@ -2,11 +2,11 @@
Test number of records
--SKIPIF--
<?php
include dirname(__FILE__) . "/skipif.inc.php";
include dirname(__FILE__) . "/skipif.inc";
?>
--FILE--
<?php
include 'config.inc.php';
include dirname(__FILE__) . '/config.inc';

$tt = new TokyoTyrant(TT_HOST, TT_PORT);
$tt->vanish();
Expand Down
4 changes: 2 additions & 2 deletions tests/016-key-prefix.phpt
Expand Up @@ -2,11 +2,11 @@
Testing key prefix
--SKIPIF--
<?php
include dirname(__FILE__) . "/skipif.inc.php";
include dirname(__FILE__) . "/skipif.inc";
?>
--FILE--
<?php
include 'config.inc.php';
include dirname(__FILE__) . '/config.inc';

$tt = new TokyoTyrant(TT_HOST, TT_PORT);
$tt->vanish();
Expand Down
4 changes: 2 additions & 2 deletions tests/017-session-handler.phpt
Expand Up @@ -2,11 +2,11 @@
Session handler
--SKIPIF--
<?php
include dirname(__FILE__) . "/skipif.inc.php";
include dirname(__FILE__) . "/skipif.inc";
?>
--FILE--
<?php
include 'config.inc.php';
include dirname(__FILE__) . '/config.inc';

ini_set("tokyo_tyrant.session_salt", sha1(mt_rand(1, 100)));
ini_set("session.save_path", sprintf("tcp://%s:%d", TT_TABLE_HOST, TT_TABLE_PORT));
Expand Down
4 changes: 2 additions & 2 deletions tests/018-metasearch.phpt
Expand Up @@ -2,14 +2,14 @@
Metasearch test
--SKIPIF--
<?php
include dirname(__FILE__) . "/skipif.inc.php";
include dirname(__FILE__) . "/skipif.inc";

if (!method_exists('TokyoTyrantQuery', 'metaSearch'))
die("skip No metasearch available");
?>
--FILE--
<?php
include 'config.inc.php';
include dirname(__FILE__) . '/config.inc';

$tt = new TokyoTyrantTable(TT_TABLE_HOST, TT_TABLE_PORT);
$tt->vanish();
Expand Down
4 changes: 2 additions & 2 deletions tests/019-hint.phpt
Expand Up @@ -2,14 +2,14 @@
Hint test
--SKIPIF--
<?php
include dirname(__FILE__) . "/skipif.inc.php";
include dirname(__FILE__) . "/skipif.inc";

if (!method_exists('TokyoTyrantQuery', 'hint'))
die("skip No hint available");
?>
--FILE--
<?php
include 'config.inc.php';
include dirname(__FILE__) . '/config.inc';

$tt = new TokyoTyrantTable(TT_TABLE_HOST, TT_TABLE_PORT);
$tt->vanish();
Expand Down
4 changes: 2 additions & 2 deletions tests/020-large-out.phpt
Expand Up @@ -2,11 +2,11 @@
Test a large out query. (Might fail)
--SKIPIF--
<?php
include dirname(__FILE__) . "/skipif.inc.php";
include dirname(__FILE__) . "/skipif.inc";
?>
--FILE--
<?php
include 'config.inc.php';
include dirname(__FILE__) . '/config.inc';

$tt = new TokyoTyrantTable(TT_TABLE_HOST, TT_TABLE_PORT);
$tt->vanish();
Expand Down
4 changes: 2 additions & 2 deletions tests/021-binarysafe.phpt
Expand Up @@ -2,11 +2,11 @@
Test string with null char in the middle of value
--SKIPIF--
<?php
include dirname(__FILE__) . "/skipif.inc.php";
include dirname(__FILE__) . "/skipif.inc";
?>
--FILE--
<?php
include 'config.inc.php';
include dirname(__FILE__) . '/config.inc';

function output_ord($string, $len) {
for ($i = 0; $i < $len; $i++) {
Expand Down
4 changes: 2 additions & 2 deletions tests/022-binarysafe-key.phpt
Expand Up @@ -2,11 +2,11 @@
Test string with null char in the middle of key
--SKIPIF--
<?php
include dirname(__FILE__) . "/skipif.inc.php";
include dirname(__FILE__) . "/skipif.inc";
?>
--FILE--
<?php
include 'config.inc.php';
include dirname(__FILE__) . '/config.inc';

$tt = new TokyoTyrant(TT_HOST, TT_PORT);
$tt->vanish();
Expand Down
4 changes: 2 additions & 2 deletions tests/023-iterate-kv.phpt
Expand Up @@ -2,11 +2,11 @@
Iterate a kv storage
--SKIPIF--
<?php
include dirname(__FILE__) . "/skipif.inc.php";
include dirname(__FILE__) . "/skipif.inc";
?>
--FILE--
<?php
include 'config.inc.php';
include dirname(__FILE__) . '/config.inc';

$tt = new TokyoTyrant(TT_HOST, TT_PORT);
$tt->vanish();
Expand Down
4 changes: 2 additions & 2 deletions tests/024-iterate-table.phpt
Expand Up @@ -2,11 +2,11 @@
Iterate a table storage
--SKIPIF--
<?php
include dirname(__FILE__) . "/skipif.inc.php";
include dirname(__FILE__) . "/skipif.inc";
?>
--FILE--
<?php
include 'config.inc.php';
include dirname(__FILE__) . '/config.inc';

$tt = new TokyoTyrantTable(TT_TABLE_HOST, TT_TABLE_PORT);
$tt->vanish();
Expand Down

0 comments on commit 937b954

Please sign in to comment.