Bug #73780 [Opn]: gordon.mcvey@ntlworld.com
| From: | gordon dot mcvey at ntlworld dot com | Date: | Sun, 18 Dec 2016 20:39:54 +0000 |
| Subject: | Bug #73780 [Opn]: gordon.mcvey@ntlworld.com | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-206116@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=73780&edit=1
ID: 73780
User updated by: gordon dot mcvey at ntlworld dot com
Reported by: gordon dot mcvey at ntlworld dot com
-Summary: Segfault on divide
+Summary: gordon.mcvey@ntlworld.com
Status: Open
Type: Bug
Package: GNU MP related
Operating System: Mac OSX 10.11.6
PHP Version: 7.1.0
Block user comment: N
Private report: N
New Comment:
FYI, php -i gives the following data about the GMP extension:
gmp
gmp support => enabled
GMP version => 5.1.1
Previous Comments:
------------------------------------------------------------------------
[2016-12-18 20:30:15] gordon dot mcvey at ntlworld dot com
Description:
------------
Any attempt to divide using GMP functions triggers a segmentation fault
Test script:
---------------
$a = gmp_init ("5");
$b = gmp_init ("2");
echo gmp_add ($a, $b) . PHP_EOL;
echo gmp_sub ($a, $b) . PHP_EOL;
echo gmp_mul ($a, $b) . PHP_EOL;
echo gmp_div_q ($a, $b) . PHP_EOL;
Expected result:
----------------
7
3
10
2, 2.5 or 3
Actual result:
--------------
7
3
10
Segmentation fault: 11
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=73780&edit=1