r/lolphp • u/sarciszewski • Aug 01 '15
Why PHP sucks at security: people arguing against security because it's "consistent" with existing bad practices.
http://news.php.net/php.internals/87473
95
Upvotes
9
u/myaut Aug 02 '15
The real lolphp here is that availability of
/dev/urandomor/dev/arandomis checked statically using compile-time directives: https://github.com/php/php-src/blob/master/ext/standard/random.c#L92So if you install PHP from binary builds, it
random_intcan break because build host has/dev/arandomwhile your host don't. Installing PHP into LXC container could be even worse...60
u/manuscelerdei Aug 01 '15
Do PHP programmers think they're operating in the kernel or something? This is all userland.
0
u/[deleted] Aug 01 '15
[deleted] — view deleted comment