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

Added error reporting to session code #301

Merged
merged 2 commits into from
Jan 24, 2017

Conversation

dyeldandi
Copy link
Contributor

This is a replacement for pull request #165

@@ -442,6 +442,7 @@ PS_READ_FUNC(memcached)
*val = ZSTR_EMPTY_ALLOC();
return SUCCESS;
} else {
php_error_docref(NULL TSRMLS_CC, E_WARNING, "error getting session from memcached: %s", memcached_last_error_message(memc_sess->memc_sess));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this can be memc instead of memc_sess->memc_sess

@sodabrew
Copy link
Contributor

php_memcached_session.c:475:118: error: ‘memc_sess’ undeclared (first use in this function)
    php_error_docref(NULL TSRMLS_CC, E_WARNING, "error saving session to memcached: %s", memcached_last_error_message(memc_sess->memc_sess));
                                  

@sodabrew sodabrew modified the milestones: 3.0.0, 3.0.1 Jan 24, 2017
@dyeldandi
Copy link
Contributor Author

Ah, yes, you are correct. Fixed.

@sodabrew sodabrew modified the milestones: 3.0.0, 3.0.1 Jan 24, 2017
@sodabrew sodabrew merged commit e1932dc into php-memcached-dev:master Jan 24, 2017
@sodabrew
Copy link
Contributor

Thanks!

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

Successfully merging this pull request may close these issues.

2 participants