Page 2 of 2 <12
Topic Options
#122860 - 2004-07-15 07:43 AM Re: array out of bounds...
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
seems like a bug.
but not a hugely bad one.
_________________________
!

download KiXnet

Top
#122861 - 2004-07-15 09:47 AM Re: array out of bounds...
jechilt Offline
Starting to like KiXtart

Registered: 2000-12-01
Posts: 102
Loc: Denver Colorado
took the advise
Code:
 ;the ubound($string) equals 3
;calling string[4] will cause an error.
$string = "a:b:c:d"
$string = split($string,":")
$var = $string[4]



;but, this does not cause an error...
$string = "a:b:c:d"
$var = split($string,":")[4]



changed
Code:
 
$aPerms=Split($line,':')
$sPerms=$aPerms[1]



to
Code:
 $aPerms=Split($line,':')[1] 



no errors
_________________________
John
LM Contractor
One of the 2 dads

Top
#122862 - 2004-07-15 09:56 AM Re: array out of bounds...
MightyR1 Offline
MM club member
*****

Registered: 1999-09-09
Posts: 1264
Loc: The Netherlands
Bug???

Anyone know if it is reported already???
_________________________
Greetz,
Patrick Rutten

- We'll either find a way or make one...
- Knowledge is power; knowing how to find it is more powerful...
- Problems don't exist; they are challenges...

Top
#122863 - 2004-07-15 10:28 AM Re: array out of bounds...
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
probably not.
in 4.50 alpha there is no ()[] stuff anymore.
ruud said he will look into putting that back but currently it's an ending street.
_________________________
!

download KiXnet

Top
#122864 - 2004-07-15 02:06 PM Re: array out of bounds...
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
Quote:

Bryce,

how come the second one doesn't crash???

I'm a bit confused...




I have no idea.....

Top
#122865 - 2004-07-15 02:47 PM Re: array out of bounds...
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
One needs to be careful when exploiting hidden features as they could disappear in the next version. Always better to go the textbook way.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#122866 - 2004-07-18 05:47 PM Re: array out of bounds...
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
So we can't exploit all the hidden KiXforms gems either, anymore ? :-(
_________________________
There are two types of vessels, submarines and targets.

Top
#122867 - 2004-07-18 06:00 PM Re: array out of bounds...
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
That's different. I know where Shawn lives and I've watched him sleep.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
Page 2 of 2 <12


Moderator:  Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 2141 anonymous users online.
Newest Members
BeeEm, min_seow, Audio, Hoschi, Comet
17882 Registered Users

Generated in 0.038 seconds in which 0.02 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org