Prechádzať zdrojové kódy

[TESTS] partial revert of r18521 to allow usage of ext/bcmath

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@18525 44c647ce-9c0f-0410-b52a-842ac1e357ba
matthew 16 rokov pred
rodič
commit
a953c7f746
1 zmenil súbory, kde vykonal 3 pridanie a 3 odobranie
  1. 3 3
      library/Zend/Locale/Format.php

+ 3 - 3
library/Zend/Locale/Format.php

@@ -307,7 +307,7 @@ class Zend_Locale_Format
         if ($format === null) {
             $format  = Zend_Locale_Data::getContent($options['locale'], 'decimalnumber');
             if (iconv_strpos($format, ';') !== false) {
-                if (call_user_func(array('Zend_Locale_Math', 'comp'), $value, 0, $options['precision']) < 0) {
+                if (call_user_func(Zend_Locale_Math::$comp, $value, 0, $options['precision']) < 0) {
                     $tmpformat = iconv_substr($format, iconv_strpos($format, ';') + 1);
                     if ($tmpformat[0] == '(') {
                         $format = iconv_substr($format, 0, iconv_strpos($format, ';'));
@@ -324,7 +324,7 @@ class Zend_Locale_Format
             // previous conditional; it should be refactored to a protected
             // method to prevent code duplication.
             if (iconv_strpos($format, ';') !== false) {
-                if (call_user_func(array('Zend_Locale_Math', 'comp'), $value, 0, $options['precision']) < 0) {
+                if (call_user_func(Zend_Locale_Math::$comp, $value, 0, $options['precision']) < 0) {
                     $tmpformat = iconv_substr($format, iconv_strpos($format, ';') + 1);
                     if ($tmpformat[0] == '(') {
                         $format = iconv_substr($format, 0, iconv_strpos($format, ';'));
@@ -400,7 +400,7 @@ class Zend_Locale_Format
             $number = $value;
         }
 
-        $prec = call_user_func(array('Zend_Locale_Math', 'sub'), $value, $number, $options['precision']);
+        $prec = call_user_func(Zend_Locale_Math::$sub, $value, $number, $options['precision']);
         $prec = Zend_Locale_Math::normalize($prec);
         if (iconv_strpos($prec, '-') !== false) {
             $prec = iconv_substr($prec, 1);