Edin Kadribasic wrote: >>>+ /* 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? > > > To get this warning you need to try base convert of a *very* large number > ( > 1500 digits). This would indicate to me that something went wrong so an > E_WARNING is in order. > > Edin >
Ok. I didn't understand whole function, so I mgiht be wrong. If empty_string is enough to know there is an error, E_NOTICE would be nice, since PHP should not raise warning that may depends of user inputs. IMO. It seems it's rare to have error with this function (user should check input before supply value to the function, probably) It's not important, though. Just checking error raising policy. -- Yasuo Ohgaki -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php