--TEST-- Test function gzfile() by substituting argument 1 with emptyUnsetUndefNull values. --SKIPIF-- --FILE-- @$unset_var, 'undefined var' => @$undefined_var, 'empty string DQ' => "", 'empty string SQ' => '', 'uppercase NULL' => NULL, 'lowercase null' => null, ); foreach ( $variation as $var ) { try { var_dump(gzfile( $var , $use_include_path ) ); } catch (\ValueError $e) { echo $e->getMessage() . \PHP_EOL; } } ?> --EXPECT-- Path cannot be empty Path cannot be empty Path cannot be empty Path cannot be empty Path cannot be empty Path cannot be empty