We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3dacef9 + f4f0545 commit 6190a21Copy full SHA for 6190a21
lib/internal/Magento/Framework/DB/FieldDataConverter.php
@@ -128,7 +128,8 @@ private function getBatchSize()
128
{
129
if (null !== $this->envBatchSize) {
130
$batchSize = (int) $this->envBatchSize;
131
- if (bccomp($batchSize, PHP_INT_MAX, 0) >= 0 || $batchSize < 1) {
+ $envBatchSize = preg_replace('#[^0-9]+#', '', $this->envBatchSize);
132
+ if (bccomp($envBatchSize, (string)PHP_INT_MAX, 0) === 1 || $batchSize < 1) {
133
throw new \InvalidArgumentException(
134
'Invalid value for environment variable ' . self::BATCH_SIZE_VARIABLE_NAME . '. '
135
. 'Should be integer, >= 1 and < value of PHP_INT_MAX'
0 commit comments