|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-03-28 00:46 UTC] chuanm at gmail dot com
[2021-03-25 16:37 UTC] cmb@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: cmb
[2021-03-25 16:37 UTC] cmb@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 17:00:01 2025 UTC |
Description: ------------ memcache call fallback only once Test script: --------------- ?php function fail(){ print_r(func_get_args()); } function foo(){ $mem = new Memcache(); $server = array( 'host'=>'8.8.8.8', 'port'=>'11211', 'persistent'=>1 ); $mem->addServer($server['host'],$server['port'],$server['persistent'],1,1,15,true,'fail'); $mem->get('xx'); } foo(); echo "over 1\n"; foo(); echo "over 2\n"; Expected result: ---------------- Array ( [0] => 8.8.8.8 [1] => 11211 [2] => 0 [3] => Connection timed out [4] => 110 ) over 1 Array ( [0] => 8.8.8.8 [1] => 11211 [2] => 0 [3] => Connection timed out [4] => 110 ) over 2 Actual result: -------------- Array ( [0] => 8.8.8.8 [1] => 11211 [2] => 0 [3] => Connection timed out [4] => 110 ) over 1 over 2