#29847 [Csd->Bgs]: bcsqrt crashes - problem reproducable
| From: | pollita@php.net | Date: | Fri, 27 Aug 2004 15:15:42 +0000 |
| Subject: | #29847 [Csd->Bgs]: bcsqrt crashes - problem reproducable | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-65363@lists.php.net to get a copy of this message | ||
ID: 29847
Updated by: pollita@php.net
Reported By: aliendesaster at hotmail dot com
-Status: Closed
+Status: Bogus
Bug Type: BC math related
Operating System: WinXP
PHP Version: 5.0.1
New Comment:
Yes, but since this was actually a duplicate of a bug that was already
fixed (which is why the snapsshot works for you) it should actually be
marked 'Bogus'. Nothing personal about you or the bug, just part of
the statistical analysis.
Previous Comments:
------------------------------------------------------------------------
[2004-08-27 16:07:00] aliendesaster at hotmail dot com
well, I can close myself, do I? Let´s check...
------------------------------------------------------------------------
[2004-08-27 16:06:16] aliendesaster at hotmail dot com
True, since I only got 56k I usually don´t update that often but the
latest CVS snapshot works. Might be closed then. Thanks for your help
:)
------------------------------------------------------------------------
[2004-08-27 00:54:39] iliaa@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5.0-win32-latest.zip
Seems to work fine with latest CVS, the result is
6.70820393249936908922752100619382 for all 3 sample codes.
------------------------------------------------------------------------
[2004-08-26 12:52:11] aliendesaster at hotmail dot com
Description:
------------
It´s simple: bcsqrt doesn´t work at all, it´s always causing a crash
unlike sqrt, which works! I dunno if bcsqrt working in other php
version.
I´m installed the php 5.01 win-binary version (zip) from php.net.
Reproduce code:
---------------
<?PHP
bcscale(32);
echo bcsqrt('45.0'); //causes crash
?>
or
<?PHP
bcscale(32);
echo bcsqrt(45.0); //causes crash too
?>
or
<?PHP
bcscale(32);
echo bcsqrt(45); //always crashing, yeah
?>
Expected result:
----------------
result should be similar to what sqrt(45) returns.
Actual result:
--------------
A nice reproducable crash in apache:
AppName: apache.exe AppVer: 2.0.47.0 ModName: php5ts.dll
ModVer: 5.0.0.0 Offset: 0008238f
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=29847&edit=1