note 121056 rejected from class.divisionbyzeroerror by cmb

From: Date: Sun, 07 May 2017 22:51:29 +0000
Subject: note 121056 rejected from class.divisionbyzeroerror by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-209058@lists.php.net to get a copy of this message
Note Submitter: jakob dot riishede dot moller at gmail dot com ---- I don't get it: When you do something like $a = 16 % 0; you get an "Uncaught DivisionByZeroError", but when you do $a = 16 / 0; you just get a warning: "Division by zero". Shouldn't that also throw the DivisionByZeroError?

« previous php.notes (#209058) next »