From f3727e461cdfd68331dacc87e666a9e929c76d36 Mon Sep 17 00:00:00 2001 From: Richard Quadling Date: Tue, 23 Nov 2010 12:41:38 +0000 Subject: [PATCH] WinCache serializes objects. Refer to __sleep() and __wakeup(). git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@305691 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/wincache/functions/wincache-ucache-add.xml | 5 ++++- reference/wincache/functions/wincache-ucache-get.xml | 5 ++++- reference/wincache/functions/wincache-ucache-set.xml | 5 ++++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/reference/wincache/functions/wincache-ucache-add.xml b/reference/wincache/functions/wincache-ucache-add.xml index 55f52d348d..4510529554 100644 --- a/reference/wincache/functions/wincache-ucache-add.xml +++ b/reference/wincache/functions/wincache-ucache-add.xml @@ -43,7 +43,9 @@ Value of a variable to store. Value supports all data types except resources, such as file handles. This paramter is ignored if first argument is an array. A general guidance is to pass NULL - as value while using array as key. + as value while using array as key. If value is an + object, or an array containing objects, then the objects will be serialized. See + __sleep() for details on serializing objects. @@ -153,6 +155,7 @@ string(1) "6" wincache_ucache_exists wincache_ucache_meminfo wincache_ucache_info + __sleep() diff --git a/reference/wincache/functions/wincache-ucache-get.xml b/reference/wincache/functions/wincache-ucache-get.xml index 73155ed07e..b51ab70b61 100644 --- a/reference/wincache/functions/wincache-ucache-get.xml +++ b/reference/wincache/functions/wincache-ucache-get.xml @@ -29,7 +29,9 @@ The key that was used to store the variable in the cache. key is case sensitive. key can be an array of keys. In this case the return value will be an array of values of each element - in the key array. + in the key array. If an object, or an array containing objects, + is returned, then the objects will be unserialized. See + __wakeup() for details on unserializing objects. @@ -121,6 +123,7 @@ bool(true) wincache_ucache_exists wincache_ucache_meminfo wincache_ucache_info + __wakeup() diff --git a/reference/wincache/functions/wincache-ucache-set.xml b/reference/wincache/functions/wincache-ucache-set.xml index 3161a7e082..b3da272da2 100644 --- a/reference/wincache/functions/wincache-ucache-set.xml +++ b/reference/wincache/functions/wincache-ucache-set.xml @@ -44,7 +44,9 @@ Value of a variable to store. Value supports all data types except resources, such as file handles. This paramter is ignored if first argument is an array. A general guidance is to pass NULL - as value while using array as key. + as value while using array as key. If value is an + object, or an array containing objects, then the objects will be serialized. See + __sleep() for details on serializing objects. @@ -152,6 +154,7 @@ string(1) "6" wincache_ucache_exists wincache_ucache_meminfo wincache_ucache_info + __sleep()