|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2016-12-18 20:39 UTC] gordon dot mcvey at ntlworld dot com
-Summary: Segfault on divide
+Summary: gordon.mcvey@ntlworld.com
[2016-12-18 20:39 UTC] gordon dot mcvey at ntlworld dot com
[2016-12-18 20:41 UTC] gordon dot mcvey at ntlworld dot com
-Summary: gordon.mcvey@ntlworld.com
+Summary: Segfault on divide
[2016-12-18 20:41 UTC] gordon dot mcvey at ntlworld dot com
[2016-12-19 09:22 UTC] gordon dot mcvey at ntlworld dot com
[2016-12-19 13:31 UTC] cmb@php.net
-Status: Open
+Status: Feedback
-Assigned To:
+Assigned To: cmb
[2016-12-19 13:31 UTC] cmb@php.net
[2017-01-01 04:22 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 07 17:00:01 2025 UTC |
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