NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
[resolved] Empty string returned with pelm_get_attribute


Joined: 21 Aug 2011
Posts: 10
Reply with quote
Hi,

In the license I have set 2 attributes:
users and servers

I cannot read them, pelm_get_attribute return ALWAYS an empty string.
Somehow the attributes are set, cause if I remove on, pelm_get_attribute returns false so the value is not returned.

I tried the following output:

var_dump(pelm_is_licensed(), pelm_license_filename(), pelm_get_attribute('users'), pelm_get_attribute('servers'), pelm_get_attribute('Expires'));

Output:
bool(true) string(40) "D:\work\projectse\WebDbAdmin\license.lic" string(0) "" string(0) "" bool(false)

You see here the empty strings.

Please advise, it's pretty urgent.
Regards.

PS: you cannot add images to post, fix it.
View user's profileFind all posts by klodoma1Send private message


Joined: 21 Aug 2011
Posts: 10
Reply with quote
Definitely a bug in nu-coder or keygen. If the attribute value is a 1 char string or number, then it is completely ignored. If it has 2 chars then it works.

Could you please announce when this bug could be fixed?

Regards, Andrei.
View user's profileFind all posts by klodoma1Send private message
Site Admin

Joined: 13 Jul 2003
Posts: 8334
Reply with quote
Did you create the license in GUI front-end or using the command line tool?
In latter case, could you please show an example of how it was used?
I just tested the latest 3031 build and got no problems so far:

>php.exe test.php
bool(true)
string(26) "C:\encoded\license1.txt"
string(17) "valid, user, name"
string(7) "1, 3, 5"
bool(false)

Although I have to admit that there is indeed a problem with attributes containing just 1 character -- they are treated as empty. We'll fix this in the next build.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 21 Aug 2011
Posts: 10
Reply with quote
Hi Dmitri,

It seems that the problem is indeed only with the 1 char strings/values.

I've tested it from GUI and Command Line tool, the same result.
The problem may as well lie in phpexpress.


Regards,
Andrei.
View user's profileFind all posts by klodoma1Send private message
[resolved] Empty string returned with pelm_get_attribute
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic