note 119654 added to memcached.ispristine

From: Date: Tue, 26 Jul 2016 15:37:06 +0000
Subject: note 119654 added to memcached.ispristine
Groups: php.notes 
Request: Send a blank email to php-notes+get-206107@lists.php.net to get a copy of this message
From the source code of contructor, the "recently" means the connection to server of the instence is recently created, that is the instance was created without a persistent_id parameter or the first to use the persistent_id. For instance, the gives a bool(true): $memcached = new Memcached(); $isPristine = $memcached->isPristine(); var_dump($isPristine); This also gives a bool(true): $memcached = new Memcached('pid1'); $isPristine = $memcached->isPristine(); var_dump($isPristine); while this gives a bool(false): $memcached = new Memcached('pid1'); $memcached2 = new Memcached('pid1'); $isPristine = $memcached2->isPristine(); var_dump($isPristine); ---- Server IP: 72.52.91.14 Probable Submitter: 114.240.112.191 ---- Manual Page -- http://php.net/manual/en/memcached.ispristine.php Edit -- https://master.php.net/note/edit/119654 Del: integrated -- https://master.php.net/note/delete/119654/integrated Del: useless -- https://master.php.net/note/delete/119654/useless Del: bad code -- https://master.php.net/note/delete/119654/bad+code Del: spam -- https://master.php.net/note/delete/119654/spam Del: non-english -- https://master.php.net/note/delete/119654/non-english Del: in docs -- https://master.php.net/note/delete/119654/in+docs Del: other reasons-- https://master.php.net/note/delete/119654 Reject -- https://master.php.net/note/reject/119654 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#206107) next »