Kernel : Linux vmi616275.contaboserver.net 5.4.0-84-generic #94-Ubuntu SMP Thu Aug 26 20:27:37 UTC 2021 x86_64
Disable function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Safe mode : OFF
Host : diestoffstrasse.com | Server ip : 127.0.0.1 | Your ip : 127.0.0.1 | Time @ Server : 24 Aug 2025 06:44:12
MySQL : OFF | MSSQL : OFF | cURL : ON | Oracle : OFF | wget : ON | Perl : ON

/home/dev2.destoffenstraat.com/vendor-1/magento/framework/DB/Query/

HOME about upload exec mass file domain root vuln newfile newfolder kill me

File Path : /home/dev2.destoffenstraat.com/vendor-1/magento/framework/DB/Query/BatchIterator.php

<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\Framework\DB\Query; use Magento\Framework\DB\Adapter\AdapterInterface; use Magento\Framework\DB\Select; /** * Query batch iterator */ class BatchIterator implements BatchIteratorInterface { /** * @var int */ private $batchSize; /** * @var Select */ private $select; /** * @var int */ private $minValue = 0; /** * @var string */ private $correlationName; /** * @var string */ private $rangeField; /** * @var Select */ private $currentSelect; /** * @var AdapterInterface */ private $connection; /** * @var int */ private $iteration = 0; /** * @var string */ private $rangeFieldAlias; /** * @var bool */ private $isValid = true; /** * Initialize dependencies. * * @param Select $select * @param int $batchSize * @param string $correlationName * @param string $rangeField * @param string $rangeFieldAlias */ public function __construct( Select $select, $batchSize, $correlationName, $rangeField, $rangeFieldAlias ) { $this->batchSize = $batchSize; $this->select = $select; $this->correlationName = $correlationName; $this->rangeField = $rangeField; $this->rangeFieldAlias = $rangeFieldAlias; $this->connection = $select->getConnection(); } /** * Returns current select * * @return Select */ public function current() { if (null == $this->currentSelect) { $this->currentSelect = $this->initSelectObject(); $itemsCount = $this->calculateBatchSize($this->currentSelect); $this->isValid = $itemsCount > 0; } return $this->currentSelect; } /** * Returns next select * * @return Select */ public function next() { if (null == $this->currentSelect) { $this->current(); } $select = $this->initSelectObject(); $itemsCountInSelect = $this->calculateBatchSize($select); $this->isValid = $itemsCountInSelect > 0; if ($this->isValid) { $this->iteration++; $this->currentSelect = $select; } else { $this->currentSelect = null; } return $this->currentSelect; } /** * Returns key * * @return int */ public function key() { return $this->iteration; } /** * Returns is valid * * @return bool */ public function valid() { return $this->isValid; } /** * Rewind * * @return void */ public function rewind() { $this->minValue = 0; $this->currentSelect = null; $this->iteration = 0; $this->isValid = true; } /** * Calculate batch size for select. * * @param Select $select * @return int */ private function calculateBatchSize(Select $select) { $wrapperSelect = $this->connection->select(); $wrapperSelect->from( $select, [ new \Zend_Db_Expr('MAX(' . $this->rangeFieldAlias . ') as max'), new \Zend_Db_Expr('COUNT(*) as cnt') ] ); $row = $this->connection->fetchRow($wrapperSelect); $this->minValue = $row['max']; return (int)$row['cnt']; } /** * Initialize select object. * * @return \Magento\Framework\DB\Select */ private function initSelectObject() { $object = clone $this->select; $object->where( $this->connection->quoteIdentifier($this->correlationName) . '.' . $this->connection->quoteIdentifier($this->rangeField) . ' > ?', $this->minValue ); $object->limit($this->batchSize); /** * Reset sort order section from origin select object */ $object->order($this->correlationName . '.' . $this->rangeField . ' ' . \Magento\Framework\DB\Select::SQL_ASC); return $object; } }