Commit Graph

204 Commits

Author SHA1 Message Date
Felipe Pena
df10005563 - MFH: Added 'static' into ZEND_BEGIN_ARG_INFO_EX macro 2008-10-24 14:35:40 +00:00
Ilia Alshanetsky
e6e162bc8e New calendar parsing API 2008-02-13 23:50:35 +00:00
Sebastian Bergmann
d1dded8751 MFH: Bump copyright year, 2 of 2. 2007-12-31 07:17:19 +00:00
Dmitry Stogov
6c810b0d4c Improved memory usage by movig constants to read only memory. (Dmitry, Pierre) 2007-09-27 18:00:48 +00:00
Antony Dovgal
074b58b7f1 MFH: php_localtime_r() checks 2007-06-07 09:07:36 +00:00
Antony Dovgal
c9805e7b92 MFH: check return value of *time_r() functions for NULL 2007-06-07 08:44:41 +00:00
Martin Kraemer
9c62ddde34 Typo 2007-03-14 09:58:14 +00:00
Stanislav Malyshev
1fd2039fdd fix snprintf size
#-1 is not needed
2007-02-16 18:32:38 +00:00
Stanislav Malyshev
f1728950fe increase hebdate buffer, use snprintf 2007-02-16 18:24:16 +00:00
Sebastian Bergmann
4223aa4d5e MFH: Bump year. 2007-01-01 09:36:18 +00:00
Ilia Alshanetsky
57a912e828 Fixed tests 2006-12-04 18:29:49 +00:00
Hannes Magnusson
e94670d4d6 MFH tests 2006-10-09 16:02:34 +00:00
Antony Dovgal
ddb577b9b8 fix test on 64bit machines 2006-07-27 08:11:47 +00:00
Antony Dovgal
b491930ef6 fix segfault in jdmonthname(), add test 2006-07-11 14:16:26 +00:00
Ilia Alshanetsky
ff08705591 Removed pointless declarations 2006-07-09 23:28:28 +00:00
Hannes Magnusson
3104233019 MFH: arginfo, protos, vim folding 2006-06-11 01:42:17 +00:00
foobar
5bd93221a8 bump year and license version 2006-01-01 12:51:34 +00:00
Antony Dovgal
c92ae847c7 add missing skipif conditions
fix existing ones
2005-12-21 11:42:06 +00:00
foobar
3e669bc950 MFH: nuke php3 legacy 2005-12-06 02:28:41 +00:00
Marcus Boerger
33c650020a - Remve bogus part of test 2005-11-06 12:25:53 +00:00
Ilia Alshanetsky
bac9ab777e One check is enough. 2005-10-27 14:06:39 +00:00
Rathna N
ced39e3168 Tests for calendar extension 2005-10-27 11:05:50 +00:00
foobar
23e671a51e - Bumber up year 2005-08-03 14:08:58 +00:00
Ilia Alshanetsky
fc51ec9e12 Removed unused vars. 2005-04-13 23:05:23 +00:00
Andrey Hristov
ce36c5f3b1 simplify code (no need of local variable - return directly) 2005-04-10 20:57:31 +00:00
Dmitry Stogov
d976e3d165 Fixed indentation 2005-04-07 16:17:08 +00:00
Dmitry Stogov
b14271dbfa Fixed wrong result of cal_days_in_month() with bad dates 2005-04-07 16:12:27 +00:00
Ilia Alshanetsky
f8a4d8a4d5 Fixed bug #30375 (cal_info() does not work without a parameter). 2004-10-11 06:39:41 +00:00
Hartmut Holzgraefe
eeb172b29f "The Visa to Sibiria" (work in progress)
Adding a package.xml to a bundled extension does not only
ease the transition to PECL whereever suitable but also
allows to build and install an extension as "shared" using
the PEAR installer without having to deal with phpize and
friends by hand
2004-03-23 19:46:10 +00:00
Ilia Alshanetsky
25053ba01b Fixed possible overflows. 2004-02-02 00:06:17 +00:00
Andi Gutmans
dbeb4158d2 - A belated happy holidays and PHP 5 2004-01-08 08:18:22 +00:00
Wez Furlong
05b9b20ed8 Add new (optional!) win32 build infrastructure.
Will follow up to internals@ shortly.
2003-12-02 23:17:04 +00:00
Ilia Alshanetsky
9c82b1fa75 Fixed compiler warnings. 2003-08-31 20:45:51 +00:00
Ilia Alshanetsky
3652ab6032 Fixed bugs in various tests. 2003-08-12 00:44:05 +00:00
James Cox
f68c7ff249 updating license information in the headers. 2003-06-10 20:04:29 +00:00
Moriyoshi Koizumi
9c038be621 Added some compiler check 2003-03-23 01:44:58 +00:00
Moriyoshi Koizumi
0d2bd85a61 Fixed win32 build, which fails with non-SBCS-compatible locale settings. 2003-03-22 23:31:52 +00:00
foobar
1887456484 ws 2003-02-03 09:55:09 +00:00
Sebastian Bergmann
b506f5c8f8 Bump year. 2002-12-31 16:08:15 +00:00
Ilia Alshanetsky
d6c29c781e Fixed a memory leak inside heb_number_to_chars(). 2002-12-05 22:46:54 +00:00
Marcus Boerger
4ce4a1c32c php_error -> php_error_docref 2002-12-05 21:53:25 +00:00
Tal Peer
1d768548cd jdtojewish() test 2002-11-27 15:54:32 +00:00
Tal Peer
8aac1ce2ee Added an additional (optional) argument to jdtojewish() to keep BC
with 4.3 (and let users getdates in Hebrew without further formatting)
2002-11-27 15:52:25 +00:00
Wez Furlong
b1a5434537 Update to use new parameter parsing API.
Updates to Jewish/Hebrew calendar code.
Patch from Moshe Doron, amended by Tal Peer,
reviewed by me.
# Maybe Tal and/or Moshe could comment on whether this should
# also be commited to the 4_3 branch (it completes some earlier work
# started prior to the branch).
2002-11-26 14:52:00 +00:00
Hartmut Holzgraefe
8bd550825f email address change 2002-11-25 12:30:28 +00:00
Wez Furlong
c2a4f94147 WS 2002-11-07 14:52:02 +00:00
Wez Furlong
7d4bf32ca2 Make this static also. 2002-11-07 14:46:40 +00:00
Wez Furlong
8180b9e9c7 Make this static 2002-11-07 14:42:20 +00:00
Derick Rethans
0998fcd804 - Added an aditional parameter to the jdtojewish() function which makes
the function return the symbolic hebrew name. (Patch by Moshe Doron
  <mosdoron@netvision.net.il>)
@- Added an aditional parameter to the jdtojewish() function which makes
@  the function return the symbolic hebrew name. (Moshe Doron, Derick)
2002-10-31 09:16:23 +00:00
Colin Viebrock
cd47bf286f change my email address 2002-09-19 21:51:34 +00:00
Derick Rethans
8967b5725b Unify error messages 2002-06-26 07:24:47 +00:00
Markus Fischer
3856c3ff39 - Fix easter_(days|date)()s first parameter now really defaults to the current
year if ommited (it was document but didn't work).
2002-06-10 07:51:28 +00:00
Sebastian Bergmann
90229ba841 Nuke unused local variables. 2002-05-12 15:14:21 +00:00
Marko Karppinen
554b7684ed Add an option to calculate easter dates based on the Gregorian calendar
during the years 1582-1752. Earlier this was only possible from
1753 onwards. Use the optional parameter CAL_EASTER_ROMAN with
easter_days() to enable this. This is a fix for bug #12766.
# As you can see, my Sundays are *so* busy...
2002-05-12 15:06:04 +00:00
Sascha Schumann
5cba3a99c2 extension converted automatically to PHP_NEW_EXTENSION. Manually confirmed 2002-03-12 16:44:00 +00:00
Sebastian Bergmann
5319d84400 Consistency. 2002-02-02 19:33:36 +00:00
Sebastian Bergmann
4a2f0316e1 Fix a warning. 2002-02-02 19:27:33 +00:00
Sebastian Bergmann
38933514e1 Update headers. 2001-12-11 15:32:16 +00:00
foobar
f1397d5339 Unified the configure messages. 2001-11-30 19:00:13 +00:00
Stig Bakken
689252082c * zend_module_entry change: apino, debug and zts are moved first,
see README.EXTENSIONS file for upgrade help.
@Introduced extension version numbers (Stig)
2001-10-11 23:33:59 +00:00
Jeroen van Wolffelaar
c033288573 Back-substitute for Z_* macro's. If it breaks some extension (the script isn't optimal, it parses for example var->zval.value incorrect) please let me know. 2001-09-25 21:58:48 +00:00
Derick Rethans
78747bd2df - Don't wrap lines... this is annoying while coding. 2001-09-09 13:29:31 +00:00
Egon Schmid
e7e88a25d1 Fixed some protos. 2001-09-04 21:07:17 +00:00
Zeev Suraski
f6f6c4d7e6 Whitespace 2001-08-11 16:39:07 +00:00
Zeev Suraski
c43806f415 Zend compatibility patch 2001-07-30 08:24:42 +00:00
Zeev Suraski
797a079a95 More TSRMLS_FETCH work, and a bit of cleanup 2001-07-30 06:18:13 +00:00
Daniel Beulshausen
0568236d13 fix win32 build 2001-07-06 09:51:03 +00:00
Wez Furlong
9b889bef19 Added name for enum, hopefully fixing the win32 build. 2001-07-05 09:55:13 +00:00
Wez Furlong
a07a26888e Added a couple of new functions to "modularize" working with calendars.
Added a few constants for the existing functions, and tidied them up a bit.
2001-07-04 10:12:45 +00:00
foobar
2c95a1d690 The extension name seems to be usually totally lower-cased. 2001-06-24 22:18:51 +00:00
Rasmus Lerdorf
81e2cf03ac Fix folding and clean up some extensions 2001-06-06 13:06:12 +00:00
Stig Bakken
1beda9ee1e * include "config.h" if HAVE_CONFIG_H is defined (for standalone dso build) 2001-05-24 10:07:29 +00:00
Andi Gutmans
eb6ba01d1c - Fix copyright notices with 2001 2001-02-26 06:11:02 +00:00
Hartmut Holzgraefe
1f6878e912 2nd step towards auto-credits 2000-11-20 10:33:33 +00:00
Stanislav Malyshev
702b510dc6 Don't try to work with negative timestamps
# It returns the same day as for 0, which is wrong
2000-10-30 16:13:03 +00:00
Daniel Beulshausen
990a86615d only beautifying 2000-10-08 10:55:09 +00:00
Andi Gutmans
31a5160a0a - Add calendar to default Win32 build. 2000-10-06 00:03:02 +00:00
Daniel Beulshausen
b6f0d041f9 deleted a few unnecceasary defines and added the Release_TS_Inline path to the libpath 2000-08-24 17:48:30 +00:00
Sascha Schumann
cd754d7825 Rename macros which begin with underscore to appropiate macros. The general
rule is:

	macro_name=`echo $filename|tr a-z A-Z|sed 's/\./_/'`
2000-07-03 00:41:19 +00:00
Sascha Schumann
16017f6d78 Change header protection macros to conform to standard.
Draft 3 of IEEE 1003.1 200x, "2.2 The Compilation Environment"

  All identifiers that begin with an underscore and either an uppercase
  letter or another underscore are always reserved for any use by the
  implementation.
2000-07-02 23:46:51 +00:00
Frank M. Kromann
28b8d17c28 making calendar module compile on win32 with new directory structure 2000-06-12 20:31:03 +00:00
Andi Gutmans
2b0a8049db - Update module project files to include:
- HAVE_MODULE=1
- ZEND_WIN32
- PHP_WIN32
- COMPILE_DL_MODULE
- ZTS=1
2000-06-10 09:00:31 +00:00
Andi Gutmans
3701bc4207 - ARG_COUNT(ht) -> ZEND_NUM_ARGS() mega patch 2000-06-05 19:47:54 +00:00
Sascha Schumann
cd8c4268ec Revert recent COMPILE_DL change. 2000-05-23 13:46:16 +00:00
Sascha Schumann
0236982d6d s/COMPILE_DL/COMPILE_DL_EXTNAME/ for Windows build files. 2000-05-23 09:22:01 +00:00
Zeev Suraski
ccc12f8801 - Make calendar compile as a dll on Windows 2000-05-22 15:49:49 +00:00
Zeev Suraski
e043439ff6 Update the license with the new clause 6 2000-05-18 15:34:45 +00:00
Sascha Schumann
d0f3764ee2 Change reentrancy API to always use the php prefix.
Check for the declaration of reentrant functions, so that we can use
them in non-ZTS mode on all platforms.
2000-05-04 10:38:17 +00:00
Sascha Schumann
4f5717d0a0 Make calendar buildable as shared module 2000-05-02 02:02:05 +00:00
Sascha Schumann
7613e064f8 Remove trailing empty lines 2000-05-01 22:38:42 +00:00
Sascha Schumann
0d36199cf9 Large test commit IV 2000-05-01 22:04:52 +00:00
Sascha Schumann
de2cea47c0 Large commit test III 2000-05-01 22:00:09 +00:00
Sascha Schumann
a493cdc92c Large test commit II 2000-05-01 21:57:01 +00:00
Sascha Schumann
fc4b7bac9c Large test commit I 2000-05-01 21:55:45 +00:00
Frank M. Kromann
b19376c6f5 oops wrong settings commited in project. 2000-05-01 05:42:33 +00:00
Frank M. Kromann
dd537aaaa6 adding calendar project 2000-05-01 05:41:38 +00:00
Sascha Schumann
a481fddfb3 Improved in-tree shared libraries build system
The following new/revived shared modules are available now:

  ... MySQL (*)
  ... PCRE (*)
  ... Session
  ... SWF

  (*) capable of using bundled library or external library

All changes:

  The m4 macro PHP_EXTENSION was revamped. Uses LIB_BUILD now.
  This effectively means that all extensions have to use dynlib.

  ext/mysql/config.m4 was revamped.
  Uses LIB_BUILD for building bundled library.

  ext/pcre/config.m4 was revamped.
  Uses LIB_BUILD for building bundled library.

  ext/ext_skel was changed to reflect that more modules should be
  compileable as shared module.

  ext/Makefile.in has been simplified enormously.

  Dependencies are now stored in the build tree.

  Empty dependencies are not generated by buildconf anymore. They
  are now dynamically created during the build process.

  Implicit rules for .S were removed.

  The NO_RECURSION feature was removed.

  "libs.mk" has been added to all cvsignore files in ext.
2000-05-01 02:42:55 +00:00
Sascha Schumann
952f58b66d (The first part of this commit died with a SIGPIPE from the CVS server.)
Overall UNIX build system improvements:

* Makefile header is now completely dynamic
* Absolute paths in (top_)?(src|build)dir and VPATH
  (fixes Tru64 support)
* VPATH does not contain variables anymore
  (fixes UnixWare support)
2000-04-30 03:12:38 +00:00
Sascha Schumann
dec71471df New style 2000-04-20 15:13:29 +00:00
Andrei Zmievski
284b0ae24e Make ext/calendar optional. 2000-04-19 15:53:09 +00:00
Hartmut Holzgraefe
0b91e2fcd3 initial checkin 2000-04-17 09:44:49 +00:00
Egon Schmid
d39724c536 The comma is also optional. 2000-04-16 16:02:31 +00:00
Hartmut Holzgraefe
0866fef791 added unixtojd() and jdtounix() to convert from unix time_t to
Julian Days and vice versa
2000-04-16 11:40:19 +00:00
Hartmut Holzgraefe
3bc8debefe made calendar a real extension instead of a dl one only 2000-04-15 20:35:09 +00:00