We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Flash getmessages different behaviour on Windows and Linux

here is a little code:

<?php
var_dump($this->flash->has('justLogin'));
var_dump($this->flash->getMessages('bbbb'));
var_dump($this->flash->has('justLogin'));

befre running it, I set both justLogin and bbbb. The result on Windows:

true, bbbb, true

while on Linux:

true, bbbb, false

it looks like even if asked for "bbbb" key, getMessages removes everything from the session.

That's odd. Provide your full GNU/Linux setup, and Phalcon version at first place.



28.1k

with: php -r "echo Phalcon\Version::get();"

linux: 2.0.9 windows: 2.1.0 RC 1



950
edited Jun '16

I didn't find this method : $this->flash->getMessages('bbbb')

Documentation Flash: https://docs.phalcon.io/pt/latest/reference/flash.html



28.1k
edited Jun '16

I did

edited Jun '16

You have two major versions in use, where the latter is still 'unstable' and in RC stage and thus should not be used for production.

Try to match latest stable PhalconPHP version on both setups (i.e. v2.0.13).

with: php -r "echo Phalcon\Version::get();"

linux: 2.0.9 windows: 2.1.0 RC 1