summaryrefslogtreecommitdiff
path: root/ext/standard/math.c
Commit message (Collapse)AuthorAgeFilesLines
* - A belated happy holidays and PHP 5Andi Gutmans2004-01-081-2/+2
|
* Fixed Bug #25694 (round() and number_format() give inconsistent results).Ilia Alshanetsky2003-11-181-10/+17
|
* fix format stringsSascha Schumann2003-08-281-2/+2
|
* Bugfix #24142, part 2Marcus Boerger2003-08-091-1/+7
|
* Avoid a round() bug that occurs due to over optimization of C code by gcc.Ilia Alshanetsky2003-08-081-2/+4
| | | | | This bug was confirmed across multiple systems with gcc 2.95.3 & 3.X+
* updating license information in the headers.James Cox2003-06-101-3/+3
|
* * email address changeStig Bakken2003-03-181-1/+1
|
* Fixed bug #21648Edin Kadribasic2003-01-161-1/+1
|
* Fix the number format fix when the number of decimal places is 0.Wez Furlong2003-01-101-8/+15
| | | | | # Thanks to Edin for his telepathy!
* Fix Bug #21523 - number_format could cause a memory allocation for aWez Furlong2003-01-091-18/+52
| | | | | | | | | | | | | | | | | | | | | negative memory size in situations where the sprintf implementation of the host system generated less decimal places than were requested. Resolved this issue by making number_format examine the string returned by spprintf and have it pad to the correct number of decimal places. Added a test-case based on the bug report; the length of decimal places required to trigger this bug is sprintf implementation dependent; as the implementation is now using spprintf (provided by PHP), that number is 78 digits (NDIG - 2). # I played with the idea of enhancing sprintf to do the equivalent, but # it was too much effort considering that the precision of floats/doubles # is not good enough to warrant it. # This fix could do with some QA from someone else to make sure there are # no memory bounds problems and then MFH it to PHP_4_3
* Bump year.Sebastian Bergmann2002-12-311-1/+1
|
* -php_error -> php_error_docrefMarcus Boerger2002-12-051-4/+8
| | | | | -removed some cases where emalloc result was tested
* fix warningsMarcus Boerger2002-11-121-1/+1
| | | | | #highest bit cannot be set so this must work
* Switch to using error_docrefJason Greene2002-11-111-1/+1
| | | | | # Satisfy all those named Mar[ck]us
* Report function name when log() triggers a base warningJason Greene2002-11-111-1/+1
|
* Add the ability to take the logarithm of any base by adding a base parameterJason Greene2002-11-111-9/+25
| | | | | | to log() Added regression tests for the new form
* fix compiler warningMarcus Boerger2002-10-241-1/+1
|
* - If functions are not available on OS, they're not available in PHP.foobar2002-10-241-15/+10
|
* Make PHP compile out-of-the-box with uClibcSascha Schumann2002-10-241-0/+10
|
* hopefully silence compile warnings on Solaris related to HUGEVAL beingSterling Hughes2002-10-151-2/+3
| | | | | | | | undefined.. HUGEVAL is defined (well the manual would indicate so) in stdlib.h, not math.h. Bug #: 19807
* peek at freebsd's libc and fix _php_math_basetozvalSascha Schumann2002-10-041-15/+24
| | | | | PR: #19733
* - argh... this is getting annoyingDerick Rethans2002-09-061-2/+0
|
* NetWare related changes/modificationsAnantha Kesari H Y2002-09-061-2/+4
|
* php_error_docrefMarcus Boerger2002-08-241-2/+1
| | | | | #New conversion available at: http://docref.txt.marcus-boerger.de
* ZTS fix.Edin Kadribasic2002-06-181-2/+2
|
* Check for +/- infinity in base_convert (bug #14807).Edin Kadribasic2002-06-181-0/+7
|
* - Fix for bug #14966Derick Rethans2002-04-011-1/+1
|
* Fix thread-safe build.Sebastian Bergmann2002-03-111-2/+2
|
* handle numeric strings. this means we're less picky about the argumentjim winstead2002-03-101-7/+4
| | | | | types, but the math functions aren't generally that picky.
* php has no 'double', only 'float'Hartmut Holzgraefe2002-03-021-8/+8
|
* Maintain headers.Sebastian Bergmann2002-02-281-3/+3
|
* Added fmod() functionYasuo Ohgaki2002-02-211-0/+15
| | | | | # Is there any reason that math.c does not use errno?
* These are now defined in zend_config.w32.h.Jon Parise2002-01-281-5/+0
|
* zend_isinf() is already defined in Zend/zend_config.w32.h for Win32.Jon Parise2002-01-271-1/+0
|
* Use the zend_* versions of finite(), isinf(), and isnan(), as definedJon Parise2002-01-271-7/+7
| | | | | | | | in php_config.h. Redefine the zend_* versions in the case of Win32. This fixes the build on systems that don't provide a native version of, say, isinf() (e.g. Solaris).
* Rename finite/isinf/isnan to more standard is_*() names.jim winstead2002-01-091-6/+6
|
* Fix the Win32 compile.jim winstead2002-01-051-0/+6
|
* Fixed some protos.Egon Schmid2002-01-051-30/+25
|
* Apparently multi_convert_to_double_ex() didn't quite do what Ijim winstead2002-01-051-3/+4
| | | | | thought. Still need to handle numeric strings.
* Fixed pow(), and added finite(), isinf(), and isnan(). Also fixedjim winstead2002-01-051-96/+65
| | | | | | | | | | | | pow() tests. @- Fixed pow(), and added finite(), isinf(), and isnan(). (Jim) # Jeroen was on crack, and apparently flunked arithmetic. Names of new # functions subject to change if people get persnickety about them. # (They're currently the same as the underlying C library function # names. Hope nobody forgets to update the tests if they change the # names.) # Oh, and pow() uses the new parameter-passing API now.
* - Let ceil also return a float in every caseDerick Rethans2001-12-221-1/+2
|
* - Fix for bug #14646, floor() always returns a float now.Derick Rethans2001-12-211-2/+2
|
* - Fix for bug #14544, bogus warning in pow()Derick Rethans2001-12-161-1/+1
| | | | | #- I think I do not need to tell who screwed this up....
* Update headers.Sebastian Bergmann2001-12-111-2/+2
|
* Make _php_math_number_format available from shared extensionsFrank M. Kromann2001-12-031-4/+1
|
* 5th and probably/hopefully last run of conv_z_macrosJeroen van Wolffelaar2001-09-261-1/+1
|
* proto fixes "double" -> "float"Hartmut Holzgraefe2001-09-211-27/+27
|
* Rework some string-to-number and vice-versa functions to work smarterSascha Schumann2001-09-201-66/+38
| | | | | | (e.g. without using functions that use slow locales, without allocating extra memory and with fewer integer/float operations)
* quickly fix newly introdued off-by-oneSascha Schumann2001-09-191-1/+1
|
* Rewrite _php_match_basetozval to need only one multiplicationSascha Schumann2001-09-191-31/+27
| | | | | per iteration and avoid the U?LONG_MAX hassle.