Derick Rethans
f4447a9cc1
- Fix for bug #14966
2002-04-01 09:19:57 +00:00
Sebastian Bergmann
6729e0e9bf
Fix thread-safe build.
2002-03-11 05:43:23 +00:00
jim winstead
8544cc1532
handle numeric strings. this means we're less picky about the argument
...
types, but the math functions aren't generally that picky.
2002-03-10 23:46:43 +00:00
Hartmut Holzgraefe
547b25fd13
php has no 'double', only 'float'
2002-03-02 17:08:09 +00:00
Sebastian Bergmann
90613d2282
Maintain headers.
2002-02-28 08:29:35 +00:00
Yasuo Ohgaki
15daf99288
Added fmod() function
...
# Is there any reason that math.c does not use errno?
2002-02-21 11:44:41 +00:00
Jon Parise
9aba9071b6
These are now defined in zend_config.w32.h.
2002-01-28 16:06:27 +00:00
Jon Parise
e40e7a669a
zend_isinf() is already defined in Zend/zend_config.w32.h for Win32.
2002-01-27 18:19:18 +00:00
Jon Parise
f174bbc711
Use the zend_* versions of finite(), isinf(), and isnan(), as defined
...
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).
2002-01-27 07:41:20 +00:00
jim winstead
831473d76e
Rename finite/isinf/isnan to more standard is_*() names.
2002-01-09 23:59:05 +00:00
jim winstead
62395159a9
Fix the Win32 compile.
2002-01-05 08:29:53 +00:00
Egon Schmid
87ad1fdb3b
Fixed some protos.
2002-01-05 07:54:49 +00:00
jim winstead
b9d68b8e9d
Apparently multi_convert_to_double_ex() didn't quite do what I
...
thought. Still need to handle numeric strings.
2002-01-05 03:56:38 +00:00
jim winstead
461e105069
Fixed pow(), and added finite(), isinf(), and isnan(). Also fixed
...
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.
2002-01-05 03:45:11 +00:00
Derick Rethans
e8f3e3ffa0
- Let ceil also return a float in every case
2001-12-22 11:53:29 +00:00
Derick Rethans
ca1bcd9ac3
- Fix for bug #14646 , floor() always returns a float now.
2001-12-21 16:38:49 +00:00
Derick Rethans
3709eb6ab2
- Fix for bug #14544 , bogus warning in pow()
...
#- I think I do not need to tell who screwed this up....
2001-12-16 10:59:20 +00:00
Sebastian Bergmann
38933514e1
Update headers.
2001-12-11 15:32:16 +00:00
Frank M. Kromann
8e40864770
Make _php_math_number_format available from shared extensions
2001-12-03 05:12:48 +00:00
Jeroen van Wolffelaar
0916fd50c0
5th and probably/hopefully last run of conv_z_macros
2001-09-26 09:21:58 +00:00
Hartmut Holzgraefe
03f7406711
proto fixes "double" -> "float"
2001-09-21 21:59:27 +00:00
Sascha Schumann
f45555e62f
Rework some string-to-number and vice-versa functions to work smarter
...
(e.g. without using functions that use slow locales, without allocating
extra memory and with fewer integer/float operations)
2001-09-20 08:22:44 +00:00
Sascha Schumann
e261d310a0
quickly fix newly introdued off-by-one
2001-09-19 11:03:58 +00:00
Sascha Schumann
e4ace6cde6
Rewrite _php_match_basetozval to need only one multiplication
...
per iteration and avoid the U?LONG_MAX hassle.
2001-09-19 10:57:50 +00:00
Sterling Hughes
563c0670e5
another attempt at fixing compile warnings...
2001-09-18 20:05:05 +00:00
Sterling Hughes
8092460830
hopefully fix win32 compile warnings
...
# I really wish i had a box to compile php with win32 on
2001-09-18 05:48:49 +00:00
Derick Rethans
78747bd2df
- Don't wrap lines... this is annoying while coding.
2001-09-09 13:29:31 +00:00
Stanislav Malyshev
0a143cf655
Add _php_math_zvaltobase and _php_math_basetozval
...
This allows to use bindec, etc. functions to convert numbers longer
than fits in long, using floats instead.
Note: the functions like decbin still don't use the zval-ed functions,
so they work only on longs yet.
2001-09-03 16:26:31 +00:00
Jeroen van Wolffelaar
2b6bafb269
Remove cbrt also, and mark logm1 and exp1p as expermintal
2001-08-15 19:08:59 +00:00
Jeroen van Wolffelaar
d62fbbd5a8
MF407
2001-08-15 19:01:32 +00:00
Zeev Suraski
c0404f4631
Whitespace
2001-08-11 17:03:37 +00:00
Jeroen van Wolffelaar
ec140f4f67
Bugfix in abs(), abs(LONG_MIN) was bogus
2001-08-05 20:27:03 +00:00
Stanislav Malyshev
c7d7834a43
Check that _php_math_basetolong result fits long (by request from Troels Arvin)
2001-08-05 14:40:14 +00:00
Zeev Suraski
1159c84ab7
- TSRMLS_FETCH work
...
- whitespace fixes
2001-08-05 01:43:02 +00:00
Jeroen van Wolffelaar
68df8ea465
Another bugfix in pow. Special cases, with 10 times the same thing are
...
_so_ error_prone... :(
2001-08-04 20:58:47 +00:00
Rasmus Lerdorf
7d5999fb4d
Kill a warning
2001-08-04 20:52:35 +00:00
Jeroen van Wolffelaar
b245789bdb
Bugfix. All tests pass now on my system
2001-08-04 18:29:37 +00:00
Jeroen van Wolffelaar
8803bbaa80
- A little bit cleaning of pow(), and 12 bytes less memory (wow)
2001-08-04 13:11:17 +00:00
Jeroen van Wolffelaar
dc4adaa231
#- HTML-safe error for pow()
2001-08-03 23:27:23 +00:00
Jeroen van Wolffelaar
7733d95770
- New pow() function. It now gives warnings on wrong input, and
...
returns integer result when possible
@- New pow() implementation, which returns an integer when possible,
@ and warnings on wrong input (jeroen)
2001-08-03 22:19:11 +00:00
Frank M. Kromann
2794a0e69a
These new math functions are not supported on Win32
2001-08-01 16:55:24 +00:00
Andrei Zmievski
fa6b5cdde7
- Added a few new math functions from Jesus Castagnetto.
...
- Converted to Z_* macros.
@- Added a few new math functions. (Jesus)
2001-08-01 13:48:14 +00:00
Rasmus Lerdorf
81e2cf03ac
Fix folding and clean up some extensions
2001-06-06 13:06:12 +00:00
Rasmus Lerdorf
25c3a3a39d
vim-6 does folding - clean up a bunch of missing folding tags plus
...
some misguided RINIT and RSHUTDOWN calls in a few fringe extensions
2001-06-05 13:12:10 +00:00
Andi Gutmans
eb6ba01d1c
- Fix copyright notices with 2001
2001-02-26 06:11:02 +00:00
Thies C. Arntzen
825457ae64
update my email.
2000-10-29 09:14:55 +00:00
Frank M. Kromann
d313ad8bf5
Making _php_math_longtobase() and _php_math_basetolong() callable from DLL and SO modules
2000-10-27 20:26:16 +00:00
Stanislav Malyshev
08e1c852aa
Fix decbin
2000-09-17 21:11:55 +00:00
Hartmut Holzgraefe
0df7721842
fix for bug #5672
2000-07-30 21:55:27 +00:00
David Croft
83513d9580
Changed lots of PHP 3 licence headers to PHP 4, mainly in .h files.
...
Added a few RCS $Id$ tags.
# Note: I have avoided changing any .h files if the corresponding .c file
# had not already been changed as I am not sure if there are any legal
# issues here. So some extensions still have PHP 3 headers.
2000-07-24 01:40:02 +00:00
Rasmus Lerdorf
e3fd1edc49
Make it possible to specify an empty string as a thousands-seperator
...
in number_format()
@ Make it possible to specify an empty string as a thousands-seperator
@ in number_format()
2000-07-14 18:46:13 +00:00
Egon Schmid
11b749e047
Corrected a mispelled word.
2000-07-09 14:14:51 +00:00
Sascha Schumann
d1c1e99d98
Rename phpmath.h to php_math.h.
2000-06-13 16:31:57 +00:00
Andrei Zmievski
c85390a691
(php_math_number_format) Simplifying the logic also fixed bugs #4954
...
and #4998 .
2000-06-13 04:31:02 +00:00
Egon Schmid
e465e94a12
Fixed a proto.
2000-06-12 15:17:08 +00:00
Andi Gutmans
3701bc4207
- ARG_COUNT(ht) -> ZEND_NUM_ARGS() mega patch
2000-06-05 19:47:54 +00:00
Zeev Suraski
ab36e22aeb
Small optimization
2000-06-02 12:24:24 +00:00
Zeev Suraski
e043439ff6
Update the license with the new clause 6
2000-05-18 15:34:45 +00:00
Andrei Zmievski
c97760776b
(PHP round) Fix proto.
2000-05-18 12:29:58 +00:00
Egon Schmid
7dd8b901e6
Second parameter is optional.
2000-05-17 18:17:07 +00:00
Andrei Zmievski
e2e6363488
Let's cast it.
2000-05-17 12:51:37 +00:00
Andrei Zmievski
08ff225a46
@- Improved round() to allow specification of rounding precision.
...
@ (Andrei, Todd Kirby <kirbyt@yahoo.com>)
2000-05-17 12:50:04 +00:00
Andi Gutmans
f2ff9eeef5
@ Fix bug in number_format (Jon Forsberg)
2000-04-15 13:53:32 +00:00
Hartmut Holzgraefe
744fe82e0a
added the other usefull constants besides M_PI from math.h
...
as PHP constants
2000-04-08 23:53:19 +00:00
Sascha Schumann
bb09ee9505
Use sprintf everywhere and define sprintf to php_sprintf, if sprintf is broken.
2000-03-12 17:18:21 +00:00
Sascha Schumann
caeaaf4d98
Fix build on systems which lack snprintf or vsnprintf.
...
PR: #3786
2000-03-12 15:47:34 +00:00
Egon Schmid
70893ff7af
Only two lines are allowed here.
2000-03-01 19:56:46 +00:00
Hartmut Holzgraefe
33cb181af2
round(-0.1) will now return 0 instead of -0
2000-03-01 19:36:37 +00:00
Egon Schmid
fe615efb5c
More protos.
2000-02-24 08:39:02 +00:00
Zeev Suraski
86fa2aade2
the pipe is breaking all the time
2000-02-19 23:41:32 +00:00
Sascha Schumann
43ae2bffbb
Happy Y2K patch! Happy new year (or the new millennium, depending on whether
...
you start counting at 0 or 1).
2000-01-01 01:32:05 +00:00
Zeev Suraski
a1ad2872ee
- The tree compiles again
1999-12-18 22:40:35 +00:00
Evan Klinger
be6dde2639
Optimize a tiny bit
1999-11-22 02:38:00 +00:00
Egon Schmid
6025dd0bda
One typo corrected.
1999-10-17 07:38:35 +00:00
Andi Gutmans
4a8cac0878
- Converted math.c to use new convert_to_number_ex() macro.
1999-10-15 06:31:40 +00:00
Thies C. Arntzen
8bafcd3aa7
@- Upgraded math-funtions to use new Zend function API (Thies)
1999-10-13 19:43:36 +00:00
Andrey Hristov
cff218cf54
Kill compiler warning.
1999-09-07 18:26:36 +00:00
Zeev Suraski
3cb1eb0471
Removed '3' from key functions in PHP (maintained compatibility through
...
php3_compat.h)
1999-08-02 19:17:14 +00:00
Zeev Suraski
eb3d12c6dd
Fix bug #1914
1999-07-31 16:20:06 +00:00
Sascha Schumann
39691bed9e
conv_proto *.[ch]
1999-05-16 11:19:26 +00:00
Zeev Suraski
0818d96c97
A lot of cleanups... Removed old thread-safe code and other redundant code and files
1999-04-24 00:12:00 +00:00
Zeev Suraski
6f7c0edee3
Remove tls.[ch]
1999-04-23 20:06:01 +00:00
Stig Bakken
257de2bade
First commit of re-structuring phase one. We have started using automake in
...
sub-directories and started to move extension code into ext/<name>. For now,
I have moved the "standard" extension (which is quite a mix of everything
right now) and the GD extension into their own subdirs in ext/.
The configure script now also runs configure in the libzend directory
automatically and makes sure php4 and libzend use the same config.cache file.
To avoid running configure in libzend, use the --no-recursion option.
"make" in php4 also builds libzend now.
The Apache module doesn't compile right now, but a fix for that is
coming up.
1999-04-17 00:37:12 +00:00