--TEST-- GH-15034 (Integer overflow on stream_notification_callback byte_max parameter with files bigger than 2GB) --SKIPIF-- --INI-- allow_url_fopen=1 --FILE-- $pid, 'uri' => $uri] = http_server($responses); $params = ['notification' => function( int $notification_code, int $severity, ?string $message, int $message_code, int $bytes_transferred, int $bytes_max ) { global $max; $max = $bytes_max; }]; $contextResource = stream_context_create([], $params); $resource = fopen($uri, 'r', false, $contextResource); fclose($resource); http_server_kill($pid); var_dump($max); ?> --EXPECT-- int(3000000000)