blob: e7ed2d0eadedbe982f295355382dbf47bcee96a0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
<?php
/**
* This file supplies a Memcached store backend for OpenID servers and
* consumers.
*
* PHP versions 4 and 5
*
* LICENSE: See the COPYING file included in this distribution.
*
* @package OpenID
* @author JanRain, Inc. <openid@janrain.com>
* @copyright 2005 Janrain, Inc.
* @license http://www.gnu.org/copyleft/lesser.html LGPL
*
*/
require('Interface.php');
function mkstemp($dir) {
foreach (range(0, 4) as $i) {
$name = tempnam($dir, "php_openid_filestore_");
$fd = fopen($name, 'x+', 0600);
if ($fd === false) {
return false;
} else {
return array($fd, $name);
}
}
return false;
}
class Net_OpenID_FileStore extends Net_OpenID_OpenIDStore {
}
?>
|