Code: Select all
// @codingStandardsIgnoreStart eval('$is_auth = (int) (' . eval($module_auth); . ');'); // @codingStandardsIgnoreEnd return $is_auth;
![Image](https://i.imgur.com/nMwlMFo.png)
but my point is, eval usage should be avoided, no ?
Code: Select all
// @codingStandardsIgnoreStart eval('$is_auth = (int) (' . eval($module_auth); . ');'); // @codingStandardsIgnoreEnd return $is_auth;
In practice it goes like this:
If you're interested, here's what you should do: find out how eval() is being used, how it could be abused and how it could be replaced.A: eval() should be avoided()
B: Why?
A: Because it's bad.
B: Why?
A: It's not safe.
B: Why?
A: It can be used to <whatever>
B: How?
A: I don't know.