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.
1 parent e410e3d commit 3a77227Copy full SHA for 3a77227
WebFiori/Http/RequestParameter.php
@@ -722,8 +722,8 @@ public function setType(string $type) : bool {
722
$this->type = $sType;
723
724
if ($sType == ParamType::DOUBLE) {
725
- $this->maxVal = defined('PHP_FLOAT_MAX') ? PHP_FLOAT_MAX : 1.7976931348623E+308;
726
- $this->minVal = defined('PHP_FLOAT_MIN') ? PHP_FLOAT_MIN : 2.2250738585072E-308;
+ $this->maxVal = 1e50;
+ $this->minVal = -1e50;
727
} else if ($sType == ParamType::INT) {
728
$this->minVal = defined('PHP_INT_MIN') ? PHP_INT_MIN : ~PHP_INT_MAX;
729
$this->maxVal = PHP_INT_MAX;
0 commit comments