#28508 [Opn->Csd]: hypot is broken
| From: | iliaa@php.net | Date: | Mon, 24 May 2004 17:03:12 +0000 |
| Subject: | #28508 [Opn->Csd]: hypot is broken | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-59943@lists.php.net to get a copy of this message | ||
ID: 28508
Updated by: iliaa@php.net
Reported By: techtonik at tut dot by
-Status: Open
+Status: Closed
Bug Type: Math related
Operating System: Windows 2000
PHP Version: 4.3.6
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
The underlying C function is not available in win32.
Technically (fixed in CVS) the function shouldn't have been
available in this case, but it was, since it was not
supported it ended up returning NULL.
Previous Comments:
------------------------------------------------------------------------
[2004-05-24 18:27:41] techtonik at tut dot by
Description:
------------
hypot() support seems to be broken on windows. Can anybody confirm?
Reproduce code:
---------------
<?php
$x = hypot(3, 4);
var_dump($x);
?>
Expected result:
----------------
5
Actual result:
--------------
NULL
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=28508&edit=1