X7ROOT File Manager
Current Path:
/opt/alt/tests/alt-php81-pecl-scoutapm_1.10.0-1.el8/tests
opt
/
alt
/
tests
/
alt-php81-pecl-scoutapm_1.10.0-1.el8
/
tests
/
ðŸ“
..
📄
001-check-ext-loaded.phpt
(375 B)
📄
002-file_get_contents.phpt
(701 B)
📄
003-scoutapm_get_calls-clears-calls-list.phpt
(480 B)
📄
004-namespaced-fgc-is-not-logged.phpt
(1.66 KB)
📄
005-requiring-external-files-handled.phpt
(292 B)
📄
006-anonymous-classes-handled.phpt
(349 B)
📄
007-evaled-code-handled.phpt
(289 B)
📄
008-class-with-no-constructor-call-handled.phpt
(275 B)
📄
009-curl_exec.phpt
(892 B)
📄
010-fwrite-fread-fopen.phpt
(894 B)
📄
010-fwrite-fread-tmpfile.phpt
(876 B)
📄
011-pdo-exec.phpt
(910 B)
📄
011-pdo-query.phpt
(814 B)
📄
011-pdostatement-execute-pdo-prepare.phpt
(1.05 KB)
📄
012-file_put_contents.phpt
(668 B)
📄
013-fix-memory-leak-when-scoutapm_get_calls-not-called.phpt
(510 B)
📄
014-predis-support.phpt
(4 KB)
📄
015-phpredis-support.phpt
(3.13 KB)
📄
016-memcached-support.phpt
(4.36 KB)
📄
017-elastic-7-support.phpt
(2.24 KB)
📄
018-do-not-instrument-by-default.phpt
(694 B)
📄
019-url-method-capture-fgc.phpt
(942 B)
📄
020-url-method-capture-curl-post.phpt
(887 B)
📄
021-url-method-capture-curl-customreq.phpt
(914 B)
📄
022-elastic-8-support.phpt
(2.63 KB)
📄
bug-47.phpt
(545 B)
📄
bug-49.phpt
(589 B)
📄
bug-55.phpt
(855 B)
📄
bug-71.phpt
(704 B)
📄
bug-88.phpt
(979 B)
📄
bug-93.phpt
(530 B)
📄
external.inc
(50 B)
Editing: 015-phpredis-support.phpt
--TEST-- PHP Redis C extension functions are instrumented --SKIPIF-- <?php if (!extension_loaded("scoutapm")) die("skip scoutapm extension required."); if (!extension_loaded("redis")) die("skip redis extension required."); if (!getenv('CI')) { // Check Redis is running & can connect to it // Run with: docker run --rm --name redis -p 6379:6379 -d redis $client = new Redis(); try { $client->connect('127.0.0.1', 6379); } catch (\RedisException $e) { die("skip " . $e->getMessage()); } } ?> --FILE-- <?php echo implode("\n", array_intersect( [ 'redis->append', 'redis->decr', 'redis->decrby', 'redis->get', 'redis->getbit', 'redis->getrange', 'redis->getset', 'redis->incr', 'redis->incrby', 'redis->mget', 'redis->mset', 'redis->msetnx', 'redis->set', 'redis->setbit', 'redis->setex', 'redis->psetex', 'redis->setnx', 'redis->setrange', 'redis->strlen', 'redis->del', ], scoutapm_list_instrumented_functions() )) . "\n"; scoutapm_enable_instrumentation(true); $client = new Redis(); $client->connect('127.0.0.1', 6379); // Simple operations $client->set('foo', 'bar'); var_dump($client->get('foo')); $client->append('foo', 'baz'); $client->del('foo'); $client->getSet('foo', 'bat'); $client->getRange('foo', 0, 2); $client->setRange('foo', 0, 'qux'); $client->setEx('expire1', 1, 'value1'); $client->pSetEx('expire2', 1, 'value2'); $client->setNx('fuu', 'new'); $client->strlen('fuu'); // Increment/Decrement $client->set('count', 0); $client->incr('count'); $client->decr('count'); $client->incrBy('count', 2); $client->decrBy('count', 2); // Multi-operations $client->mSet(['a' => 'a', 'b' => 'b']); $client->mSetNx(['c' => 'c', 'd' => 'd']); $client->mGet(['a', 'b', 'c', 'd']); // Bit operations $client->set('bit', 0); $client->setBit('bit', 8, 1); $client->getBit('bit', 8); $calls = scoutapm_get_calls(); var_dump(array_column($calls, 'function')); ?> --EXPECTF-- redis->append redis->decr redis->decrby redis->get redis->getbit redis->getrange redis->getset redis->incr redis->incrby redis->mget redis->mset redis->msetnx redis->set redis->setbit redis->setex redis->psetex redis->setnx redis->setrange redis->strlen redis->del string(%s) "bar" array(%d) { [%d]=> string(%d) "Redis->set" [%d]=> string(%d) "Redis->get" [%d]=> string(%d) "Redis->append" [%d]=> string(%d) "Redis->del" [%d]=> string(%d) "Redis->get%cet" [%d]=> string(%d) "Redis->getRange" [%d]=> string(%d) "Redis->setRange" [%d]=> string(%d) "Redis->setex" [%d]=> string(%d) "Redis->psetex" [%d]=> string(%d) "Redis->setnx" [%d]=> string(%d) "Redis->strlen" [%d]=> string(%d) "Redis->set" [%d]=> string(%d) "Redis->incr" [%d]=> string(%d) "Redis->decr" [%d]=> string(%d) "Redis->incrBy" [%d]=> string(%d) "Redis->decrBy" [%d]=> string(%d) "Redis->mset" [%d]=> string(%d) "Redis->msetnx" [%d]=> string(%d) "Redis->mget" [%d]=> string(%d) "Redis->set" [%d]=> string(%d) "Redis->setBit" [%d]=> string(%d) "Redis->getBit" }
Upload File
Create Folder