Modify

Opened 12 years ago

Closed 12 years ago

#2646 closed Bug (No Bug)

_ArraySearch still has a bug!

Reported by: milos83 Owned by:
Milestone: Component: AutoIt
Version: 3.3.8.1 Severity: None
Keywords: Cc:

Description

Producer

Dim $Proxys[3] $Proxys[0] = 0 $Proxys[1] = "user:pass@127.0.0.2" $Proxys[2] = "user:pass@127.0.0.3" $SearchProxy = "a14.64.74.22" $wtf = _ArraySearch($Proxys,$SearchProxy) ConsoleWrite(@error & @LF) ConsoleWrite($wtf & @LF)

_ArraySearch will return 0 and will not set @error = 0 (zero is undocumented)
Correct result would be return -1 , @error = 6

Attachments (0)

Change History (3)

comment:1 by anonymous, 12 years ago

Producer

Dim $Proxys[3]
$Proxys[0] = 0
$Proxys[1] = "user:pass@127.0.0.2"
$Proxys[2] = "user:pass@127.0.0.3"

$SearchProxy = "a14.64.74.22"

$wtf = _ArraySearch($Proxys,$SearchProxy)

ConsoleWrite(@error & @LF)
ConsoleWrite($wtf & @LF)

_ArraySearch will return 0 and will not set @error = 0 (zero is undocumented)
Correct result would be return -1 , @error = 6

comment:2 by Melba23, 12 years ago

Actually this is no longer a bug as the addition of the $iCompare parameter as explained in ticket http://www.autoitscript.com/trac/autoit/ticket/1569.

M23

comment:3 by Melba23, 12 years ago

Resolution: No Bug
Status: newclosed

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.