diff options
author | Bob Weinand <bobwei9@hotmail.com> | 2015-07-02 01:54:08 +0200 |
---|---|---|
committer | Bob Weinand <bobwei9@hotmail.com> | 2015-07-02 02:20:58 +0200 |
commit | 007d7ac7ca6d52ba5e7a0ba7b2c582a04ddc50df (patch) | |
tree | 1a3615bd2fb103b7a0e9703fd869891613a57510 /Zend/tests/compound_assign_with_numeric_strings.phpt | |
parent | f9724b93f6592d2f77fa9165038a0ba0db3da0c6 (diff) | |
download | php-git-007d7ac7ca6d52ba5e7a0ba7b2c582a04ddc50df.tar.gz |
Use DivisionByZeroError instead of exception for %/intdiv()
Diffstat (limited to 'Zend/tests/compound_assign_with_numeric_strings.phpt')
-rw-r--r-- | Zend/tests/compound_assign_with_numeric_strings.phpt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Zend/tests/compound_assign_with_numeric_strings.phpt b/Zend/tests/compound_assign_with_numeric_strings.phpt index 518ed9ee7e..fbfc1605ec 100644 --- a/Zend/tests/compound_assign_with_numeric_strings.phpt +++ b/Zend/tests/compound_assign_with_numeric_strings.phpt @@ -11,7 +11,7 @@ $n = "-1"; try { $n <<= $n; var_dump($n); -} catch (Exception $e) { +} catch (Throwable $e) { echo "\nException: " . $e->getMessage() . "\n"; } @@ -23,7 +23,7 @@ $n = "-1"; try { $n >>= $n; var_dump($n); -} catch (Exception $e) { +} catch (Throwable $e) { echo "\nException: " . $e->getMessage() . "\n"; } @@ -31,7 +31,7 @@ $n = "0"; try{ $n %= $n; var_dump($n); -} catch (Exception $e) { +} catch (Throwable $e) { echo "\nException: " . $e->getMessage() . "\n"; } @@ -46,5 +46,5 @@ int(0) Exception: Bit shift by negative number -Exception: Division by zero +Exception: Modulo by zero int(0) |