Derick Rethans wrote:
> derick                Mon Jun 24 04:00:54 2002 EDT
> 
>   Modified files:              (Branch: PHP_4_2_0)
>     /php4/ext/standard        math.c 
>   Log:
>   - MFH
>   
>   
> Index: php4/ext/standard/math.c
> diff -u php4/ext/standard/math.c:1.80.2.2 php4/ext/standard/math.c:1.80.2.3
> --- php4/ext/standard/math.c:1.80.2.2 Thu May 23 10:38:08 2002
> +++ php4/ext/standard/math.c  Mon Jun 24 04:00:51 2002
> @@ -19,7 +19,7 @@
>     +----------------------------------------------------------------------+
>  */
>  
> -/* $Id: math.c,v 1.80.2.2 2002/05/23 14:38:08 edink Exp $ */
> +/* $Id: math.c,v 1.80.2.3 2002/06/24 08:00:51 derick Exp $ */
>  
>  #include "php.h"
>  #include "php_math.h"
> @@ -757,7 +757,7 @@
>   * the number.
>   */
>  PHPAPI char *
> -_php_math_zvaltobase(zval *arg, int base)
> +_php_math_zvaltobase(zval *arg, int base TSRMLS_DC)
>  {
>       static char digits[] = "0123456789abcdefghijklmnopqrstuvwxyz";
>  
> @@ -770,6 +770,13 @@
>               char *ptr, *end;
>               char buf[(sizeof(double) << 3) + 1];
>  
> +             /* Don't try to convert +/- infinity */
> +             if (fvalue == HUGE_VAL || fvalue == -HUGE_VAL) {
> +                     php_error(E_WARNING, "Number too large in %s() call",
> +                             get_active_function_name(TSRMLS_C));

Isn't E_WARNING is better to be E_NOTICE?

--
Yasuo Ohgaki


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to