-
Notifications
You must be signed in to change notification settings - Fork 327
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 5.6.7 Redis::scan() expected to be a reference #178
Comments
Yep same problem |
I'm not using scan anymore so I can't test of this is still an issue. @luishdez - what version php, snc, and redis extension are you using? |
I'm the same problem with :
|
@ddproxy Sorry I missed the comment I've used the next versions: php 5.6.19 also tested with 7 |
If you still want to use snc (for the logs, connections,..) you can call the scan method trough call_user_func_array to pass the argument by reference: $redis = $this->container->get('snc_redis.data');
$iterator = null;
$arguments = array(&$iterator);
call_user_func_array(array($redis, 'scan'), $arguments)); |
@GeoffroyR 's workaround doesn't work for me. Will this issue be fixed? |
I have the same issue on PHP 7.0 |
Solves issue `Warning: Parameter 1 to Redis::scan() expected to be a reference, value given` in snc#178
@ddproxy @luishdez @romaincorral @GeoffroyR @chteuchteu @abguy this works now and can be closed! |
I'm getting the following error:
With the following code:
I'm using Symfony 2.6 and Redis Extension 2.2.7
I've narrowed down a possible cause of this issue.
Client\Phpredis\BaseClient
http://php.net/manual/en/function.call-user-func-array.php
Without SncRedisBundle and using the Redis object directly,
I get my expected return.
The text was updated successfully, but these errors were encountered: