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

CoreEnforcer.php There is an incorrect resolution [Bug] #923

Closed
490626721 opened this issue Dec 3, 2021 · 2 comments
Closed

CoreEnforcer.php There is an incorrect resolution [Bug] #923

490626721 opened this issue Dec 3, 2021 · 2 comments
Assignees
Labels

Comments

@490626721
Copy link

Describe the bug
An error occurred while trying to create the RBAC model.

array_combine(): Both parameters should have an equal number of elements

Check the error code address and find that the error exists in line CoreEnforcer.php 645

{ "file": "E:\\phpstudy_pro\\WWW\\c.com\\vendor\\casbin\\casbin\\src\\CoreEnforcer.php", "line": 645, "function": "array_combine", "args": [ [ "p_sub", "p_obj", "p_act" ], [ "测试, /admin/setup/wx", "ANY" ] ] }

It processes "test" and "/ admin / setup / Wx" into one field. The correct one should be

[ "测试“, ”/admin/setup/wx", "ANY" ]

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@casbin-bot
Copy link
Member

@tangyang9464 @closetool @sagilio

@hsluoyz
Copy link
Member

hsluoyz commented Dec 3, 2021

@490626721 this repo is for Golang Casbin. Please send the issue to PHP-Casbin.

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

3 participants