Linux vmi2545633.contaboserver.net 6.1.0-32-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.129-1 (2025-03-06) x86_64
Apache/2.4.62 (Debian)
Server IP : 127.0.0.1 & Your IP : 127.0.0.1
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
share /
php /
tests /
mongodb /
tests /
cursor /
Delete
Unzip
Name
Size
Permission
Date
Action
bug0671-001.phpt
653
B
-rw-r--r--
2025-04-09 02:56
bug0732-001.phpt
934
B
-rw-r--r--
2025-04-09 02:56
bug0849-001.phpt
1013
B
-rw-r--r--
2025-04-09 02:56
bug0924-001.phpt
1.46
KB
-rw-r--r--
2025-04-09 02:56
bug0924-002.phpt
1.87
KB
-rw-r--r--
2025-04-09 02:56
bug1050-001.phpt
2.66
KB
-rw-r--r--
2025-04-09 02:56
bug1050-002.phpt
3.16
KB
-rw-r--r--
2025-04-09 02:56
bug1151-001.phpt
821
B
-rw-r--r--
2025-04-09 02:56
bug1151-002.phpt
924
B
-rw-r--r--
2025-04-09 02:56
bug1151-003.phpt
763
B
-rw-r--r--
2025-04-09 02:56
bug1151-004.phpt
866
B
-rw-r--r--
2025-04-09 02:56
bug1152-001.phpt
4.69
KB
-rw-r--r--
2025-04-09 02:56
bug1152-002.phpt
4.59
KB
-rw-r--r--
2025-04-09 02:56
bug1162-001.phpt
942
B
-rw-r--r--
2025-04-09 02:56
bug1274-001.phpt
2.16
KB
-rw-r--r--
2025-04-09 02:56
bug1274-002.phpt
3.32
KB
-rw-r--r--
2025-04-09 02:56
bug1274-003.phpt
2.85
KB
-rw-r--r--
2025-04-09 02:56
bug1274-004.phpt
2.24
KB
-rw-r--r--
2025-04-09 02:56
bug1274-005.phpt
3.39
KB
-rw-r--r--
2025-04-09 02:56
bug1274-006.phpt
2.93
KB
-rw-r--r--
2025-04-09 02:56
bug1419-001.phpt
1.18
KB
-rw-r--r--
2025-04-09 02:56
bug1529-001.phpt
3.18
KB
-rw-r--r--
2025-04-09 02:56
bug1713-001.phpt
472
B
-rw-r--r--
2025-04-09 02:56
cursor-001.phpt
355
B
-rw-r--r--
2025-04-09 02:56
cursor-IteratorIterator-001.phpt
827
B
-rw-r--r--
2025-04-09 02:56
cursor-IteratorIterator-002.phpt
1001
B
-rw-r--r--
2025-04-09 02:56
cursor-IteratorIterator-003.phpt
1020
B
-rw-r--r--
2025-04-09 02:56
cursor-NoRewindIterator-001.phpt
1.59
KB
-rw-r--r--
2025-04-09 02:56
cursor-destruct-001.phpt
1.56
KB
-rw-r--r--
2025-04-09 02:56
cursor-getmore-001.phpt
913
B
-rw-r--r--
2025-04-09 02:56
cursor-getmore-002.phpt
903
B
-rw-r--r--
2025-04-09 02:56
cursor-getmore-003.phpt
1.05
KB
-rw-r--r--
2025-04-09 02:56
cursor-getmore-004.phpt
1.04
KB
-rw-r--r--
2025-04-09 02:56
cursor-getmore-005.phpt
1.51
KB
-rw-r--r--
2025-04-09 02:56
cursor-getmore-006.phpt
1.65
KB
-rw-r--r--
2025-04-09 02:56
cursor-isDead-001.phpt
735
B
-rw-r--r--
2025-04-09 02:56
cursor-isDead-002.phpt
827
B
-rw-r--r--
2025-04-09 02:56
cursor-iterator-001.phpt
1.3
KB
-rw-r--r--
2025-04-09 02:56
cursor-iterator-002.phpt
1.25
KB
-rw-r--r--
2025-04-09 02:56
cursor-iterator-003.phpt
859
B
-rw-r--r--
2025-04-09 02:56
cursor-iterator-004.phpt
1.66
KB
-rw-r--r--
2025-04-09 02:56
cursor-iterator_handlers-001.phpt
2
KB
-rw-r--r--
2025-04-09 02:56
cursor-rewind-001.phpt
2.32
KB
-rw-r--r--
2025-04-09 02:56
cursor-session-001.phpt
1.5
KB
-rw-r--r--
2025-04-09 02:56
cursor-session-002.phpt
1.32
KB
-rw-r--r--
2025-04-09 02:56
cursor-session-003.phpt
1.62
KB
-rw-r--r--
2025-04-09 02:56
cursor-session-004.phpt
1.58
KB
-rw-r--r--
2025-04-09 02:56
cursor-setTypeMap_error-001.phpt
3.73
KB
-rw-r--r--
2025-04-09 02:56
cursor-setTypeMap_error-002.phpt
1.2
KB
-rw-r--r--
2025-04-09 02:56
cursor-setTypeMap_error-003.phpt
1.07
KB
-rw-r--r--
2025-04-09 02:56
cursor-setTypeMap_error-004.phpt
1.84
KB
-rw-r--r--
2025-04-09 02:56
cursor-tailable-001.phpt
1.82
KB
-rw-r--r--
2025-04-09 02:56
cursor-tailable-002.phpt
1.88
KB
-rw-r--r--
2025-04-09 02:56
cursor-tailable-003.phpt
1.16
KB
-rw-r--r--
2025-04-09 02:56
cursor-tailable_error-001.phpt
2.08
KB
-rw-r--r--
2025-04-09 02:56
cursor-tailable_error-002.phpt
2.25
KB
-rw-r--r--
2025-04-09 02:56
cursor-toArray-001.phpt
1.26
KB
-rw-r--r--
2025-04-09 02:56
cursor-toArray-002.phpt
957
B
-rw-r--r--
2025-04-09 02:56
cursor_error-001.phpt
245
B
-rw-r--r--
2025-04-09 02:56
cursorid-getId-001.phpt
1.43
KB
-rw-r--r--
2025-04-09 02:56
cursorinterface-001.phpt
680
B
-rw-r--r--
2025-04-09 02:56
cursorinterface-002.phpt
227
B
-rw-r--r--
2025-04-09 02:56
cursorinterface-003.phpt
230
B
-rw-r--r--
2025-04-09 02:56
Save
Rename
--TEST-- PHPC-1274: Cursor destruct should not kill cursor from parent process (disableClientPersistence=true) --SKIPIF-- <?php if (!function_exists('pcntl_fork')) { die('skip pcntl_fork() not available'); } ?> <?php require __DIR__ . "/../utils/basic-skipif.inc"; ?> <?php skip_if_not_live(); ?> <?php skip_if_not_clean(); ?> --FILE-- <?php require_once __DIR__ . "/../utils/basic.inc"; class CommandLogger implements MongoDB\Driver\Monitoring\CommandSubscriber { private $pid; public function __construct() { $this->pid = getmypid(); } public function commandStarted(MongoDB\Driver\Monitoring\CommandStartedEvent $event): void { $command = $event->getCommand(); $commandName = $event->getCommandName(); $process = $this->pid === getmypid() ? 'Parent' : 'Child'; if ($commandName === 'find' || $commandName === 'getMore') { printf("%s executes %s with batchSize: %d\n", $process, $commandName, $command->batchSize); return; } printf("%s executes %s\n", $process, $commandName); } public function commandSucceeded(MongoDB\Driver\Monitoring\CommandSucceededEvent $event): void { } public function commandFailed(MongoDB\Driver\Monitoring\CommandFailedEvent $event): void { } } $manager = create_test_manager(URI, [], ['disableClientPersistence' => true]); $bulk = new MongoDB\Driver\BulkWrite(); $bulk->insert(['x' => 1]); $bulk->insert(['x' => 2]); $bulk->insert(['x' => 3]); $manager->executeBulkWrite(NS, $bulk); MongoDB\Driver\Monitoring\addSubscriber(new CommandLogger); $query = new MongoDB\Driver\Query([], ['batchSize' => 2]); $cursor = $manager->executeQuery(NS, $query); $childPid = pcntl_fork(); if ($childPid === 0) { echo "Child exits\n"; exit; } if ($childPid > 0) { $waitPid = pcntl_waitpid($childPid, $status); if ($waitPid === $childPid) { echo "Parent waited for child to exit\n"; } printf("Parent fully iterated cursor for %d documents\n", iterator_count($cursor)); } ?> ===DONE=== <?php exit(0); ?> --EXPECT-- Parent executes find with batchSize: 2 Child exits Parent waited for child to exit Parent executes getMore with batchSize: 2 Parent fully iterated cursor for 3 documents ===DONE===