We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Sample code:
<?php $a = new \Phalcon\Acl\Adapter\Memory(); $a->dropResourceAccess('resource', 'accesslist'); ?>
Happens because:
PHP_METHOD(Phalcon_Acl_Adapter_Memory, dropResourceAccess){ zval *resource_name, *access_list, *access_name = NULL; zval *access_key = NULL; PHALCON_MM_GROW(); phalcon_fetch_params(1, 2, 0, &resource_name, &access_list); if (Z_TYPE_P(access_list) == IS_ARRAY) { /* ... */ } else { PHALCON_INIT_NVAR(access_key); /* access_name == NULL, segfault :-( */ PHALCON_CONCAT_VSV(access_key, resource_name, "!", access_name); phalcon_unset_property_array(this_ptr, SL("_accessList"), access_key TSRMLS_CC); } /* ... */ }
The text was updated successfully, but these errors were encountered:
@phalcon Need your help here, I am not sure what access_key should be in this case…
access_key
Sorry, something went wrong.
I have replaced it with
PHALCON_CONCAT_VSV(access_key, resource_name, "!", access_list);
so far, not sure if it is OK.
Fixed in #1375
No branches or pull requests
Sample code:
Happens because:
The text was updated successfully, but these errors were encountered: