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

PHP syntax error in Session_memcached_driver.php #5526

Closed
RobinMICHELAT opened this issue Jun 14, 2018 · 5 comments
Closed

PHP syntax error in Session_memcached_driver.php #5526

RobinMICHELAT opened this issue Jun 14, 2018 · 5 comments
Labels
Milestone

Comments

@RobinMICHELAT
Copy link

$this->_memcached-get($this->_key_prefix.$id);

Syntax error generates PHP Fatal error : Call to undefined function get() in .../system/libraries/Session/drivers/Session_memcached_driver.php on line 308

Fix :
$this->_memcached->get($this->_key_prefix.$id);

@narfbg
Copy link
Contributor

narfbg commented Jun 15, 2018

I could swear I ran the linter on this, so I did again:

$ php -l system/libraries/Session/drivers/Session_memcached_driver.php 
No syntax errors detected in system/libraries/Session/drivers/Session_memcached_driver.php

After a closer look, it probably reads it as $this->_memcached minus get($this->_key_prefix.$id) ... I'm speechless.

@cyoon84
Copy link

cyoon84 commented Jun 28, 2018

when will this fix merge to the master?

@jim-parry
Copy link
Contributor

@cyoon84 This has been flagged for 3.1.10, but that does not have a specific release date.

@cyoon84
Copy link

cyoon84 commented Jun 28, 2018 via email

@jim-parry
Copy link
Contributor

@cyoon84 You could always make the change manually in your Session_memcached_driver, which would then be over-written by the next release. Not normally a recommended practice, but it seems to fit in this case.

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

No branches or pull requests

4 participants