parent
fb8cf474be
commit
4835534e74
@ -117,10 +117,10 @@ class MessageBuffer {
|
|||||||
$memory_limit_bytes = static::getMemoryLimit();
|
$memory_limit_bytes = static::getMemoryLimit();
|
||||||
|
|
||||||
if ($maxMessagePayloadSize === null) {
|
if ($maxMessagePayloadSize === null) {
|
||||||
$maxMessagePayloadSize = $memory_limit_bytes / 4;
|
$maxMessagePayloadSize = intval($memory_limit_bytes / 4);
|
||||||
}
|
}
|
||||||
if ($maxFramePayloadSize === null) {
|
if ($maxFramePayloadSize === null) {
|
||||||
$maxFramePayloadSize = $memory_limit_bytes / 4;
|
$maxFramePayloadSize = intval($memory_limit_bytes / 4);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!is_int($maxFramePayloadSize) || $maxFramePayloadSize > 0x7FFFFFFFFFFFFFFF || $maxFramePayloadSize < 0) { // this should be interesting on non-64 bit systems
|
if (!is_int($maxFramePayloadSize) || $maxFramePayloadSize > 0x7FFFFFFFFFFFFFFF || $maxFramePayloadSize < 0) { // this should be interesting on non-64 bit systems
|
||||||
|
Loading…
Reference in New Issue
Block a user