php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22202 number_format dumps core (Bus error)
Submitted: 2003-02-13 06:20 UTC Modified: 2003-02-13 06:25 UTC
From: vermut at elex dot lv Assigned:
Status: Closed Package: Reproducible crash
PHP Version: 4CVS-2003-02-13 (stable) OS: FreeBSD 4.7-STABLE
Private report: No CVE-ID: None
 [2003-02-13 06:20 UTC] vermut at elex dot lv
-bash-2.05b# php
<?php
        print number_format((1/10240)*100,1);
?>
Bus error (core dumped)
-bash-2.05b# php -v
PHP 4.3.1-dev (cli) (built: Jan 30 2003 17:53:50)
Copyright (c) 1997-2003 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2003 Zend Technologies
-bash-2.05b# uname -a
FreeBSD mail.atl.lv 4.7-STABLE FreeBSD 4.7-STABLE #3: Sun Jan 26 15:48:46 EET 2003     root@mail.atl.lv:/var/obj/var/src/sys/IDE_FW  i386

#0  0x80bfa13 in _php_math_number_format ()
#1  0x80bff3a in zif_number_format ()
#2  0x814259a in execute ()
#3  0x8130942 in zend_execute_scripts ()
#4  0x8109272 in php_execute_script ()
#5  0x814a236 in main ()
#6  0x8062e36 in _start ()


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-02-13 06:25 UTC] edink@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, 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/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 04:01:29 2024 UTC