This appears to be regularly confused with EACCES. To quote from SUSv3:
Examples include:
In general, EACCES seems more to be used for file permission conflicts, while EPERM seems more likely to be used for process-related permission conflicts. But you can see that even system calls use them differently.
actually, EACCES for permissions based things (different owners, file permissions, etc) while EPERM covers things where you are trying to break the rules.
Your powers are great; limits exist however. This is one of them.
43 pages link to EPERM:
lib/plugin/WlugLicense.php:99: Warning: Invalid argument supplied for foreach()
lib/plugin/WlugLicense.php:111: Warning: in_array() [<a href='function.in-array'>function.in-array</a>]: Wrong datatype for second argument