Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If I set empty string then get it by phpFastCache::get(), it returns a string (N;) #21

Closed
marwan2 opened this issue May 12, 2013 · 7 comments
Assignees

Comments

@marwan2
Copy link

marwan2 commented May 12, 2013

If I tried to get data from Cache file

$somedata = phpFastCache::get("myCacheVar");
if($somedata == null)
{
$somedata = "";
phpFastCache::set("myCacheVar",$somedata,60);
}
echo $somedata;

Because $somedata is an empty string it echo what between brackets (N;) or (s:0:"";)
It should echo an empty string

@marwan2 marwan2 closed this as completed May 12, 2013
@marwan2 marwan2 reopened this May 12, 2013
@khoaofgod
Copy link
Member

Ok, I will take care about it

@ghost ghost assigned khoaofgod May 12, 2013
@khoaofgod
Copy link
Member

Done, please download php_fast_cache again.
It's a bug , but only happend on few Web Server base on PHP version.
I just re-code the class again for it can run on all php 5 version from now.

Make sure when you download php_fast_cache again, you will see the first line is "Updated 5/12/2013"

@khoaofgod khoaofgod reopened this May 13, 2013
@marwan2
Copy link
Author

marwan2 commented May 13, 2013

Thanks you Khoaofgod
I'll download and check it and give you my feedback

@marwan2
Copy link
Author

marwan2 commented May 13, 2013

I think there are some conflict in tags or something like that when I get a lot of data.

I returned to an older version till, you check it again
Thanks

@khoaofgod
Copy link
Member

I don't get what you mean on conflict in tags.
Can you tell me more, or screen shoot errors / returned value / code / example.
I am on skype if you want to chat.

@marwan2
Copy link
Author

marwan2 commented May 13, 2013

Before sending you some print screens, once I upload the new php_fast_cache.php file, I found some (not all) cached data print the open triangle bracket (<) and after refresh some data printed successfully and some data not.

I'll check it again and send you print screens

@khoaofgod
Copy link
Member

cool, thanks man. Also, you will see the folder "testing/index.php" , that I just upload yesterday, you can try it for debugging too.

Send me some information for I can understand this bug, I will do my best to update & fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants