On Feb 13, 2008 11:05 AM, Felipe Pena <[EMAIL PROTECTED]> wrote: > Em Qua, 2008-02-13 às 09:47 +0100, Pierre Joye escreveu: > > I can't test the patch right now but does it change the result or only > > raises > > a notice? > > It changes the result when a string is given, and issue notice when the > string starts with numeric. > > var_dump(acos("nonsense")); > Warning: acos() expects parameter 1 to be double, string given ... > NULL
That's a BC but it seems to be sane to do it. It is amazing that the current version returns acos(0) (obvious but still amazing :). > var_dump(acos("1000ABC")); > Notice: A non well formed numeric value encountered ... > float(NAN) No BC here, as far as I can tell. It returns the same result as before. Thanks for your great work! :) -- Pierre http://blog.thepimp.net | http://www.libgd.org -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php