If you're retrieving the value of a global variable, you must also precede the variable name with the global keyword
SELECT @@global.max_binlog_size;