-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[BUG] Cannot Remove A Property From Phalcon Persistent Storage (Session Bag) #1637
Comments
Confirmed, both 1.2.5 and 1.3.0 |
has and isset will always return the same value as they are both implemented by the same method. They both act much like |
Okay, maybe that is the intended behavior. |
There are two PRs open to fix this :-) |
I think this can be closed now? |
Yes, thank you very much |
I originally asked this on stackoverflow. I don't know if this is a bug or not.
I'm new to Phalcon PHP framework and currently I'm trying to use the persistent storage in Controller (accessed via
$this->persistent
). I know that persistent storage usesSession\Bag
and according to the API I can remove a property viaremove()
or__unset
magic method. So, I create this little Controller to test the persistent storage:When I access that action, this is the result I got:
Now that's strange, I expect after calling
->remove('anu')
andsetting anu = null
, thehas()
andisset()
would returnfalse
, but it didn't. Why is that?The text was updated successfully, but these errors were encountered: