File: pecl63142.phpt

package info (click to toggle)
php-memcache 3.0.8-5
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 676 kB
  • ctags: 703
  • sloc: ansic: 4,380; php: 775; xml: 744; sh: 35; makefile: 2
file content (33 lines) | stat: -rw-r--r-- 722 bytes parent folder | download | duplicates (10)
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
--TEST--
PECL bug #63142 (memcache 3.0.7 segfaults with object (un)serialization)
--SKIPIF--
<?php include 'connect.inc'; ?>
--INI--
;fix me later
report_memleaks=0
--FILE--
<?php

include 'connect.inc';

$obj = new StdClass;
$obj->obj = $obj;
$memcache = new Memcache;
$memcache->connect('127.0.0.1', 11211);
$memcache->set('x', $obj, false, 300);
$x = $memcache->get('x'); echo ".";
$x = $memcache->get('x'); echo ".";
$x = $memcache->get('x'); echo ".";
$x = $memcache->get('x'); echo ".";
$x = $memcache->get('x'); echo ".";
$x = $memcache->get('x'); echo ".";
$x = $memcache->get('x'); echo ".";
$x = $memcache->get('x'); echo ".";
$x = $memcache->get('x'); echo ".\n";

echo "Done\n";

?>
--EXPECTF--
.........
Done