News for hackers. Stuff that matters.
Re:A call to PHP's mt_rand generates only odd numbers by sarciszewski on Friday July 24, 2015 @10:46AM (#9942327)
Even worse, some of the Internals teams argue in favor of silently trucking along instead of, e.g. throwing an exception: http://www.serverphorums.com/read.php?7,1250372

EDIT: because of HN's annoying "you are posting too fast" limit I cannot reply to the comment below.

The arguments against Exceptions began in the comments on the relevant pull request: https://github.com/php/php-src/pull/1397

Re:A call to PHP's mt_rand generates only odd numbers by _lce0 on Friday July 24, 2015 @12:02PM (#9942901)
from that thread..

   At what point do we stop blaming the developers for not knowing how to
   use our badly designed features, and accept responsibility for exposing
   an API that is hostile towards simple, efficient, and correct implementations?
Re:A call to PHP's mt_rand generates only odd numbers by paragon_init on Friday July 24, 2015 @12:23PM (#9943078)
It might be worth noting that 'sarciszewski was the author of that remark.
Re:A call to PHP's mt_rand generates only odd numbers by juliangregorian on Friday July 24, 2015 @11:38AM (#9942708)
Wow, that thread is current! This mentality really is systemic to PHP. It's like the exact opposite of "let it crash".
Re:A call to PHP's mt_rand generates only odd numbers by claar on Friday July 24, 2015 @11:59AM (#9942876)
Actually that thread seems to strongly argue that either an Exception or fatal error should be thrown. I'm not seeing anyone in that thread wanting to silently truck along -- am I missing it?