Hi,
tonight i read some math.c-source, and stumbled over some things,
that appeared a little strange to me. Please have a look at the
following list. If you are the opinion, that i should make a bug-
report for this ones, i will do. If you can fix it without a report,
i will be even more happy (will save my time :))I have tested the
described behavior on a redhat 7.1 with php-4.2.0 dev.
- PROTO-change:abs():
-- /* {{{ proto int abs(int number)
++ /* {{{ proto mixed abs(mixed number)
[takes and returns floats and integers. Maybe MIXED is not really the
best solution, but INT is imho definatley not the right value.]
- PROTO-change:bindec():
--/* {{{ proto int bindec(string binary_number)
++/* {{{ proto mixed bindec(string binary_number)
[returns doubles, too. Maybe MIXED is not really the best solution,
but INT is imho definatley not the right value.]
- BUG OR FEATURE: dechex():
returns always the biggest possible Hexnumber for this function
(7fffffff)
instead of an error when number is too big (>2147483647).
- BUG OR FEATURE: hexdec():
does not return errors when values of arguments are wrong:
ie: ff34ZZff give the same result as without "zz" (ff34ff) without
giving a warning or error.
does take a string up to 255 f's (1.1235582092889E+307)
[system-dependend?
- we should note this in manual], but even if the inputvalue is too big
(more than 255 f's), there is no error returned but a double containing
the value "INF" (says gettype()).
with best regards,
-Wolfgang
--
Deutscher PHP-Knotenpunkt Dynamic Web Pages: http://www.dynamicwebpages.de
Scripte, Tutorials, Installation, B�cher, BestofGML, Manual, Links uvm.
PHP 4: Dynamische Webauftritte professionell realisieren: http://php-buch.de
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]