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

Fix postgres rule unserialization #394

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pawelkania
Copy link
Contributor

Yii2 migration for Postgres uses bytea for field "data" (see: yiisoft/yii2@2379027#diff-9dc218c5c0834622090067e24bb745073a454b843a5e150d1498af80ebdd73fa) and bytea is resource in php so unserialize will throw error.

This code is taken from Yii2 DbManager:
https://github.com/yiisoft/yii2/blob/master/framework/rbac/DbManager.php#L449

Yii2 migration for Postgres uses bytea for field "data" (see: yiisoft/yii2@2379027#diff-9dc218c5c0834622090067e24bb745073a454b843a5e150d1498af80ebdd73fa) and bytea is resource in php so unserialize will throw error. 

This code is taken from Yii2 DbManager:
https://github.com/yiisoft/yii2/blob/master/framework/rbac/DbManager.php#L449
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.

1 participant