<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>2392</bug_id>
          
          <creation_ts>2003-03-20 10:57:54 +0300</creation_ts>
          <short_desc>php-4.3.0-alt0.cvs20030207 из ALT Linux Master 2.2 - Segmentation fault при вызове функции number_format()</short_desc>
          <delta_ts>2004-06-04 18:01:02 +0400</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>php</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P4</priority>
          <bug_severity>critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="raVen">raven98</reporter>
          <assigned_to name="Alexey Gladkov">legion</assigned_to>
          <cc>legion</cc>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2174</commentid>
    <comment_count>0</comment_count>
    <who name="raVen">raven98</who>
    <bug_when>2003-03-20 10:57:54 +0300</bug_when>
    <thetext>$ rpm -qv php
php-4.3.0-alt0.cvs20030207

$ cat number_format_test.php
&amp;lt;?php

    $number = 0.00056;

    $format = number_format($number, 2);

    echo $format;

?&amp;gt;

$ php number_format_test.php
Segmentation fault

Проблема возникает, если в $number больше двух нулей после десятичной точки.

Версия php из текущего Sisyphus не подвержена этой ошибке.
---

---
На мой взгляд, новая версия php должна попасть в updates к ALT Linux Master 2.2.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14746</commentid>
    <comment_count>1</comment_count>
    <who name="inger@altlinux.org">inger</who>
    <bug_when>2004-06-04 18:01:02 +0400</bug_when>
    <thetext>ну коли в сизифе всё нормально - закрываю. 
 </thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>