Page 1 of 1 1
Topic Options
#48070 - 1999-08-20 12:00 AM var name with more than 12 identical chars=> value corruption
Anonymous
Unregistered


As far as i know no limit about variable names is documented. My testing shows that
variable names with more than 12 identical
characters are not handled correctly in varaiable assignments in version 3.45 and 3.55

Who can fix this bug?

Regards

Michael Holzer

Hewlett-Packard Germany

Code sample:

; variable names with more than 12 char

$123456789012 = "a"
? "123456789012:" $123456789012
$123456789012_a = "b"
? "123456789012:" $123456789012


$longer_than_12_char = "a"
? "longer_than_12_char:" $longer_than_12_char
? "Assignment to longer_than_12_char_A"
$longer_than_12_char_a = "b"

? "First variable value named 'longer_than_12_char' corrupt!"
? "longer_than_12_char:" $longer_than_12_char
? "longer_than_12_char_A:" $longer_than_12_char_A

exit



Top
#48071 - 1999-08-23 03:43 AM Re: var name with more than 12 identical chars=> value corruption
Anonymous
Unregistered


Even Microsoft doesn't know what the maximum lenght of a variable name is. (I know cause I asked them)

------------------
Lon Geefshuysen (MCP)
kixtart.to/lon
lon@kixtart.to


Top
#48072 - 1999-08-24 09:58 AM Re: var name with more than 12 identical chars=> value corruption
Anonymous
Unregistered


In relation to name lenghts.
It seems Kixtart 3.55 has a limitation that did not exist in ver3.2.
In the situation where you have a Global group name of more than 20 characters Kix falls over.
eg. If a user is associated with a global group where the global group name is 21 charaters or more the username variable will not be available during the login process. Therefore it's not possible to capture the @userid.
Enterprise Administrator does alow group names of more than 20 characters.

(another oddity is that if a script is run after login the @userid is available)
At present I have asked for all global group names be restricted to 20 Characters.
Any other suggestions.

Top
Page 1 of 1 1


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

Who's Online
1 registered (Allen) and 271 anonymous users online.
Newest Members
Sir_Barrington, batdk82, StuTheCoder, M_Moore, BeeEm
17886 Registered Users

Generated in 0.147 seconds in which 0.088 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