note 121056 added to class.divisionbyzeroerror
| From: | jakob dot riishede dot moller at gmail dot com | Date: | Sat, 06 May 2017 21:59:59 +0000 |
| Subject: | note 121056 added to class.divisionbyzeroerror | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-209055@lists.php.net to get a copy of this message | ||
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?
----
Server IP: 72.52.91.14
Probable Submitter: 90.185.65.50
----
Manual Page -- http://php.net/manual/en/class.divisionbyzeroerror.php
Edit -- https://master.php.net/note/edit/121056
Del: integrated -- https://master.php.net/note/delete/121056/integrated
Del: useless -- https://master.php.net/note/delete/121056/useless
Del: bad code -- https://master.php.net/note/delete/121056/bad+code
Del: spam -- https://master.php.net/note/delete/121056/spam
Del: non-english -- https://master.php.net/note/delete/121056/non-english
Del: in docs -- https://master.php.net/note/delete/121056/in+docs
Del: other reasons-- https://master.php.net/note/delete/121056
Reject -- https://master.php.net/note/reject/121056
Search -- https://master.php.net/manage/user-notes.php