if (function_exists('gzcompress')) die(FUNCTION_NOT_FOUND);
is giving me a
syntax error, unexpected 'if', expecting 'function' or 'const'
I am updating this code from PHP5.3 to PHP7.4 and I can't figure out what the syntax problem is since PHP allows this. I am using Eclipse PHP to do the conversion.