note 114227 added to memcache.get

From: Date: Mon, 27 Jan 2014 09:19:40 +0000
Subject: note 114227 added to memcache.get
Groups: php.notes 
Request: Send a blank email to php-notes+get-198358@lists.php.net to get a copy of this message
Signature is not correct. <?php $memcache = new Memcache(); $memcache->connect('localhost', 11211); class Test { public $property = "testvalue"; } $test = new Test(); $memcache->set("asdf", $test); var_dump($memcache->get("asdf")); /* will return the object, not the string: class Test#3 (1) { public $property => string(9) "testvalue" } */ ?> ---- Server IP: 87.106.1.137 Probable Submitter: 213.61.34.148 ---- Manual Page -- http://php.net/manual/en/memcache.get.php Edit -- https://master.php.net/note/edit/114227 Del: integrated -- https://master.php.net/note/delete/114227/integrated Del: useless -- https://master.php.net/note/delete/114227/useless Del: bad code -- https://master.php.net/note/delete/114227/bad+code Del: spam -- https://master.php.net/note/delete/114227/spam Del: non-english -- https://master.php.net/note/delete/114227/non-english Del: in docs -- https://master.php.net/note/delete/114227/in+docs Del: other reasons-- https://master.php.net/note/delete/114227 Reject -- https://master.php.net/note/reject/114227 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#198358) next »