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.



12.2k

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

linux: 2.0.9 windows: 2.1.0 RC 1



762
edited Jun '16

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

Documentation Flash: https://docs.phalconphp.com/pt/latest/reference/flash.html



12.2k
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