From: "Wolfgang Drews" <[EMAIL PROTECTED]> > 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)
There have been a discussion which return type is correct. IMHO it should be the main return type. But for abs() mixed is correct, because you can calculate abs from int and floats. There should be more explanations in CODING_STANDARDS. -Egon -- 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]