API call for ACL roles no longer works
I am not sure why you are using civicrm_api3_get. The standard way for v3 api calling is civicrm_api3('entityName', 'action', $params).

Just try replacing the snippet from above question to below:

 $entity_id = $group["id"];
 $apiParams = array(
   "entity_id" =&gt; $entity_id,
   "entity_table" =&gt; "civicrm_group",
   "is_active" =&gt; 1
 );

 $entity_name = "Acl_Role";
 $result = civicrm_api3($entity_name, 'get', $apiParams);


HTH

Pradeep