There is no copy-on-write for objects in PHP

fixes #8088
This commit is contained in:
Johannes Meyer 2014-12-22 09:37:01 +01:00
parent f50d0bc3cf
commit f0438d1ea0

View File

@ -30,7 +30,7 @@
<td> <td>
<?php <?php
// TODO(el): $role->without(...) or $role->shift(...) would be nice! // TODO(el): $role->without(...) or $role->shift(...) would be nice!
$restrictions = $role; $restrictions = clone $role;
unset($restrictions['users']); unset($restrictions['users']);
unset($restrictions['groups']); unset($restrictions['groups']);
unset($restrictions['permissions']); unset($restrictions['permissions']);