has_value type error should be warning.
Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=3173
Reported by Martin Nilsson, IDA nilsson@pike.ida.liu.se
> has_value( ({ "3","7","9" }), "3" );
(3) Result: 1
> has_value( ({ "3","7","9" }), "4" );
(4) Result: 0
> has_value( ({ 3,7,9 }), 3 );
(5) Result: 1
> has_value( ({ 3,7,9 }), 4 );
Compiler Error: 1:Bad argument 2 to has_value.
Compiler Error: 1:Expected: function(string, string | int : int) |
function(array((0=mixed)), 0 : int) | function(multiset, int : int) |
function(mapping(mixed:(1=mixed)), 1 : int) | function(object, mixed : int)
Compiler Error: 1:Got : function(array(int(9..9) | int(7..7) |
int(3..3)), int(4..4) : void | mixed)