Commit Graph

861 Commits

Author SHA1 Message Date
Matt Wilmas
b907aa4331 MFH:
Restored double->long conversion behavior to that of PHP 5.2 (on most platforms) and prior:
 * Out-of-range numbers overflow/preserve least significant bits (no LONG_MAX/MIN limit)
 * See bug #42868 (presumably-rare platform with different results in 5.2)
 * On 32-bit platforms with 64-bit long type, a zend_long64 cast has been added,
    otherwise it's the same as 5.2
 * Use this conversion method everywhere instead of some plain (long) casts

Added 'L' parameter parsing specifier to ensure a LONG_MAX/MIN limit:
 * Essentially what 5.3's new conversion was doing in most cases
 * Functions with "limit" or "length" type params could be updated to use this,
    and prevent confusing overflow behavior with huge numbers (*also* in 5.2)
  - See bug #47854, for example; or even #42868 again

# Test updates coming
2009-06-04 18:20:45 +00:00
Kalle Sommer Nielsen
3dcd2b6ace MFH:
* We dont need to wrap to two lines here, its small enough to show with a standard sized cmd window
* Bump copyright year in the .rc
2009-06-03 01:14:58 +00:00
Pierre Joye
469d4938fc - MF52: #42143, the constant NAN is reported as 0 on Windows 2009-05-29 08:11:36 +00:00
Kalle Sommer Nielsen
953cf4c217 MFH: If we don't have a comment (for the 3rd argument in ARG_[ENABLE|WITH], then don't print a comment say "undefined" 2009-05-29 07:43:07 +00:00
Kalle Sommer Nielsen
e9d289289b MFH: Lets pass the built php binary to run-tests.php's -p parameter 2009-05-27 01:46:48 +00:00
Kalle Sommer Nielsen
4ab4b6817d MFH: Silent dl() if it fails 2009-05-27 01:38:13 +00:00
Pierre Joye
ffca50ca0d - revert last commit and fix inline 2009-05-04 21:03:20 +00:00
Pierre Joye
e274a01620 - a macro will just do it too 2009-05-04 20:31:02 +00:00
Pierre Joye
65a9530849 - add llabs 2009-05-04 17:09:33 +00:00
Pierre Joye
30b30dda11 - make MP survive --disable-all (=disable to disable it) 2009-04-24 15:18:37 +00:00
Pierre Joye
f4c90952b0 - fix logic 2009-04-24 11:34:38 +00:00
Pierre Joye
375bbd497d - allow to set or disable the multithreaded build (n, auto or disable) 2009-04-23 20:19:06 +00:00
Kalle Sommer Nielsen
49e4959a6d MFH: Fix redef warnings
Kill warning about php_localtime_r not being defined
2009-04-06 09:14:54 +00:00
Kalle Sommer Nielsen
e45c0bb900 MFH:
Fixed a few warnings from copy():
* If $item is empty then skip to next entry, this fixes the "The first argument cannot be a directory" warnings
* If file does not exist then dont try to copy it
2009-04-01 09:21:31 +00:00
Kalle Sommer Nielsen
02fe66d1e0 MFH:
* Bypass the date/timezone warning by forcing UTC when running mkdist.php
* Don't run the copy list for PECL if theres no PECL extensions to copy (fixes a few copy() warnings)
2009-03-30 14:32:52 +00:00
Pierre Joye
1d177508c8 - new php.ini names 2009-03-24 22:15:46 +00:00
Pierre Joye
8235286324 - some cleanup, more to come 2009-03-18 18:40:44 +00:00
Pierre Joye
989b9d7c43 - php.ini-dev/prod 2009-03-18 17:58:09 +00:00
Dmitry Stogov
31c0af245e Fixed floating point mathematic speed degradation (Christian) 2009-03-18 10:18:10 +00:00
Pierre Joye
10bf149a60 - define HAVE_SOCKLEN_T as it exists (vc6+) 2009-02-02 09:40:55 +00:00
Pierre Joye
a5af8a7ec2 - prevent redefinition 2009-01-27 21:53:31 +00:00
Kalle Sommer Nielsen
73b17408fb MFH: Windows support for stream_socket_pair(), by moving the socketpair() implementation from ext/sockets to win32/ 2009-01-23 15:49:49 +00:00
Pierre Joye
f8aff4ad07 - add fnmatch() support on windows (C API), using the BSD implementation 2009-01-20 01:37:48 +00:00
Pierre Joye
274dad3b83 - MFH:
- add nanosleep
 - expose nanosleep and usleep
 - [DOC] time_ nanosleep and time_ sleep_ until available on windows
 - change nanosleep signature to match posix one
2009-01-19 02:35:22 +00:00
Stanislav Malyshev
5d8c9f8c56 Build IDs 2009-01-17 02:05:13 +00:00
Pierre Joye
c83e0d50d0 - add multi threaded build support (automatic detection of the number of cpus, add a custom number if you prefer to use only a few of your available cores) 2009-01-06 20:50:57 +00:00
Pierre Joye
86ae6a2676 - add DNSApi for the DNS functions 2009-01-06 20:46:36 +00:00
Kalle Sommer Nielsen
46dc120cdc MFH: Check if configure script was copied, and output an error if it wasn't 2009-01-02 12:18:21 +00:00
Pierre Joye
438c4cfacc - MFH: expose glob and globfree on wi ndows, can be used by shared ext (core or extern) 2009-01-01 12:32:49 +00:00
Pierre Joye
e266d17a44 - enable gehostname on windows [DOC] 2008-12-31 19:47:13 +00:00
Ilia Alshanetsky
540242dc2d [DOC]
Added gethostname() to return the current system host name.
2008-12-31 14:30:38 +00:00
Sebastian Bergmann
08659c2dcd MFH: Bump copyright year, 3 of 3. 2008-12-31 11:15:49 +00:00
Pierre Joye
b593dfa388 - MFB:
- usual suspects must be in the default include/lib path (thx Rob for the notice!)
  - fix the --wtih-php-build doc, remove dead url, update the name of the deps dir
2008-12-26 14:11:44 +00:00
Pierre Joye
63fe8179d0 - MFH: be sure that at least one SAPI has been selected 2008-12-25 00:09:49 +00:00
Pierre Joye
15fa3c1d93 - MFH: the config summary is a must, do not allow to disable it 2008-12-25 00:08:51 +00:00
Pierre Joye
c310143ac7 - MFH: no need to look for bindlib_w32, not used anymore 2008-12-18 23:21:22 +00:00
Pierre Joye
d4b63c8d7e - fix builds for VC8+, strnlen is available in vc8 and later (used in spprintf.c) 2008-12-13 11:47:06 +00:00
Pierre Joye
33d110f8f8 - do not add .cvsignore to the tests package 2008-12-13 11:46:23 +00:00
Pierre Joye
d6f27e909c - c/p error. 2008-12-10 09:49:59 +00:00
Pierre Joye
10f2b1519b - MFH: add configure script 2008-12-08 22:39:55 +00:00
Scott MacVicar
49a15f0bd4 MFH Better fix for va_copy since some architectures like to do a deep copy. 2008-11-22 15:16:47 +00:00
Pierre Joye
bbb88024ec - make va_copy safer using () around arguments 2008-11-22 13:34:15 +00:00
Scott MacVicar
add2b6df3a MFH Fix build on Windows 2008-11-22 12:39:16 +00:00
Jani Taskinen
80d5100309 MFH 2008-11-21 16:41:04 +00:00
Pierre Joye
67d86010ae - MFH:
- expose PHP_BUILD in the Makefile
 - ICU 3.8/4.0 are dynamically linked, add $PHP_BUILD\bin to the PATH so php.exe can find them (nmake test, nmake snaps)
2008-11-21 14:18:27 +00:00
Pierre Joye
941749f5ec - MFH: add build type (debug/release) and TS info to the summary 2008-11-21 14:17:33 +00:00
Kalle Sommer Nielsen
e61c2e8c17 MFH: Fix typo 2008-11-20 16:06:26 +00:00
Pierre Joye
710638db54 - revert previous commit (borked editor) 2008-11-06 13:30:18 +00:00
Pierre Joye
11f6df597a - bump year 2008-11-06 13:11:56 +00:00
Elizabeth Marie Smith
d4e4cebd65 MFH 2008-11-03 19:25:42 +00:00
Pierre Joye
7376ddb66a - add php-test-pack-[version].zip to nmake snap so we can distribute the tests as single zip
TODO: add run-tests.bat to the package
2008-10-26 00:14:23 +00:00
Pierre Joye
16bda08080 - add strto*i64 (VC6, decent compilers/crt have them) 2008-10-20 14:47:33 +00:00
Pierre Joye
61aeb63e8a - add strto*i64 support (VC6 only, decent compilers/crt have them) 2008-10-20 14:47:01 +00:00
Kalle Sommer Nielsen
12bd1eae9f [DOC] Deprecate define_syslog_variables() in 5.3 2008-10-15 18:41:57 +00:00
Pierre Joye
142ee7a89d - add nts to the zip names 2008-09-26 13:29:11 +00:00
Pierre Joye
1b5a8cc258 - MFH: add VC version and architecture to the created zip(s) names 2008-09-25 15:00:59 +00:00
Pierre Joye
0f701b8d31 - fix typo and icu bundling 2008-09-01 18:19:58 +00:00
Pierre Joye
41a3bf43c9 - support for copy of ICU DLLS for all ICU versions 2008-08-26 09:10:39 +00:00
Pierre Joye
2620304003 - MFH:
- drop bindlib usage on windows
 - inet_pton, inet_ntop and inet_aton are always available (VC9 uses the CRT implementation, VC6 our own)
2008-08-23 19:22:10 +00:00
Pierre Joye
6b2be7c7e9 - quick fix for ICU dlls (better fix with n level deps will be done later) 2008-08-20 20:09:13 +00:00
Kalle Sommer Nielsen
49494bed8b MFH:
* Last _WIN32_WINNT macro redef
* Include <config.w32.h> where _WIN32_WINNT was
2008-08-14 23:29:25 +00:00
Kalle Sommer Nielsen
540326c31f MFH:
* Remove NTDDI_VERSION declaring and use the one in config.w32.h
* Remove another _WIN32_WINNT macro redef in win32/time.c
2008-08-13 22:40:39 +00:00
Pierre Joye
62b18f019b - MFH: add dll path to mkdist default path 2008-08-05 11:47:17 +00:00
Pierre Joye
cb10c3be61 - MFH: add new default dir (old still works) 2008-08-01 11:25:42 +00:00
Pierre Joye
c501d5f2a4 - MFH: new usual suspects 2008-07-31 23:05:52 +00:00
Pierre Joye
1e820eca02 -MFH:
- #45430, windows implementation of crypt is not TS
 - add Blowfish (using implementation from Solar Designer <solar at openwal dot com>) and extended DES support
 - Make crypt features portable:
   - if no crypt_r, php's implemetation is used (all algo and TS), php can't be used with unsafe crypt anymore
   - if one algo is missing, php's implemetation is used
   - Windows always use php's implementation
 - removed old code in windows/
2008-07-28 11:50:35 +00:00
Pierre Joye
473a96ba3d - MFH: fix EXT_FOO_SHARED usage as dep mgt broke it (one more hack but we can clean them after alpha) 2008-07-25 12:40:45 +00:00
Kalle Sommer Nielsen
04be84748f Fix macro redef 2008-07-20 20:17:48 +00:00
Steph Fox
6931789f31 - Happy New Year!
(better late than never, eh?)
2008-07-20 02:20:31 +00:00
Steph Fox
aca8bb5757 - Update get_define() calls to reflect earlier change in return value on failure
- Rename output files (to avoid that build option for "php5ts.exe")
- Add libpath to intermediate dir path (avoids a naming collision that wasn't there last week)
- Don't make assumptions about trailing whitespace in incoming data
2008-07-20 01:19:45 +00:00
Steph Fox
9a5f2e1b79 - Fix logic in get_define() 2008-07-19 19:02:59 +00:00
Steph Fox
e19914f5b5 - Rejig REMOVE_TARGET
- Tidy ADD_EXTENSION_DEP
- Put summary output in alphabetical order
2008-07-19 16:57:58 +00:00
Steph Fox
130c53263c - Make SAPI include paths work (on my box at least) 2008-07-18 17:35:37 +00:00
Steph Fox
18911142e2 - Make REMOVE_TARGET work in all cases 2008-07-18 15:45:03 +00:00
Steph Fox
893c55f2bc - SAPIs are go.
Caveat: aolserver, isapi, nsapi, pi3web and (obviously) Linux-specific modules not tested.
2008-07-18 02:53:06 +00:00
Pierre Joye
1fdd27500b - MFH: CS/WS 2008-07-17 17:31:35 +00:00
Steph Fox
640270c4dc Update README to reflect current state of play 2008-07-16 22:30:12 +00:00
Steph Fox
3dcb59a05a - A bit more finesse for .dsp generation
- Builds (on my box) for cgi or cli
- This is still VC6-only at present
2008-07-16 22:25:46 +00:00
Matt Wilmas
bc8b11ce02 MFH: Prevent build failure after closures 2008-07-14 10:15:31 +00:00
Pierre Joye
8c7c445404 - wrong bracket position while mergin 2008-07-13 09:34:08 +00:00
Pierre Joye
92f5c267f6 - MFH: support for new naming 2008-07-12 23:42:25 +00:00
Steph Fox
9e2f3c57d0 This looks more than it is due to ws/cs and minor fixes in it...
- Fixes logic in dependency check
- Fixes logic in AC_DEFINE error message
- Prevents shared extensions from building if a hard dependency is missing altogether
- Cleans up errors/warnings/messages for all scenarios
- Changes a function call to the new project support
2008-07-12 15:04:39 +00:00
Steph Fox
bcff952f23 - It's amazing the havoc one little misplaced bracket can cause... 2008-07-09 15:47:06 +00:00
Steph Fox
4fd2b80786 - Clean up ws/cs a bit and add some comments 2008-07-09 14:57:14 +00:00
Steph Fox
208d851444 - Embryonic project file generation. Use buildconf --add-project-files and hopefully it'll work.
- Please read the README before complaining.

@Stas, Rob - please test.
2008-07-09 08:15:46 +00:00
Pierre Joye
09e0bc6c90 - MFH:
- use ARG_ENABLE for the summary option
 - move test if summary function
2008-07-07 13:51:35 +00:00
Pierre Joye
5d04f639de - move common functions to confutils
- rename the summary option to reflect its usage (Enable Sumamry, yes)
2008-07-07 13:32:55 +00:00
Steph Fox
e22ec182ed - Fix up some bits and pieces.
- Always report re2c version.
- Head towards making it possible for all platforms to have compiler info in phpinfo() output.
- Make it possible to switch off configure summary (--without-summary).
2008-07-07 01:23:56 +00:00
Pierre Joye
21bca5add3 - correctly test the VCVERS (four digits now) 2008-07-06 09:55:44 +00:00
Pierre Joye
e78d5ac5c4 -MFH: improve detection of VC version and summary (2k2 and 2k3 are 1300 and resp. 1310) (Thx Marcus) 2008-07-05 19:53:04 +00:00
Pierre Joye
55d2b5862a - add summary function and VC version info 2008-07-02 20:50:18 +00:00
Pierre Joye
1224a66f7d - MFH: re2c detection, PHP_VERSION 2008-07-02 20:49:12 +00:00
Rui Hirokawa
c3286f32ef implemented again zend-multibyte for PHP 5.3 2008-06-29 08:21:35 +00:00
Pierre Joye
9118a7c671 - use stdout for MESSAGE (thx Steph) 2008-06-23 11:44:21 +00:00
Pierre Joye
cb417c55ac - add a MESSAGE function
[DOC] to be used instead of STDOUT in config.w32, it allows them to be redirected (like in a quiet mode)
- add the list of enabled SAPI
- improve the table output
2008-06-23 08:11:31 +00:00
Pierre Joye
4dcfb9a03f - fix ADD_EXTENSION_DEP detection so it can match it anywhere in a line 2008-06-23 07:55:03 +00:00
Pierre Joye
1c0dbe6e09 - bindlib has its own package 2008-06-22 23:16:31 +00:00
Pierre Joye
b613e76c8b - return true/false when a dep addition was succeeded or not 2008-06-22 23:15:54 +00:00
Pierre Joye
2c8f57778c - add a list of the enabled extensions and how they are built (shared or static
list of SAPIs and libs used will follow shortly (to be used as QA check during the builds and as convenience)
2008-06-22 20:51:57 +00:00
Steph Fox
fd10eb318e - ext/standard currently has a dependency on ext/ereg thanks to browscap.c 2008-06-19 17:43:38 +00:00
Steph Fox
05ce8031ad - '' != 'no' 2008-06-19 17:14:43 +00:00
Elizabeth Marie Smith
7d4dfa8ee4 Windows configure fixes, a few additional lib names allowed, apache2 only on for zts builds since apache on win is always threaded, isapi no longer stops configure in non-zts mode, look for _debug for debug libraries when debug is enabled 2008-05-14 03:13:17 +00:00
Steph Fox
a439cc70c6 - s/rmdir/rd
- Patch supplied by Richard Quadling
2008-05-09 11:20:09 +00:00
Steph Fox
fe4a9a3fc4 - Introducing nmake clean-all
- This should probably be merged with nmake clean, but I've no way to test the impact on distro builds.
2008-05-03 21:12:55 +00:00
Steph Fox
d19418e53c - re2c requirement update
(sorry, I thought I'd committed this ages ago)
2008-04-24 16:04:59 +00:00
Steph Fox
5d9e5bbd8d - Workarounds are no longer needed - thanks PECLers! 2008-04-14 17:55:02 +00:00
Hannes Magnusson
5881476266 MFH: Update URL for go-pear 2008-04-11 21:57:58 +00:00
Steph Fox
b4103c390f - Allow most of the existing strangely-named headers to get by 2008-03-31 09:17:25 +00:00
Steph Fox
36db7c60c9 Revert "minimum version requirement" until there's a version to match it 2008-03-31 00:28:16 +00:00
Steph Fox
2b27e2c8a4 Another thing version_compare() allows... 2008-03-24 15:11:46 +00:00
Steph Fox
0726c79d7e - Extend that regexp (again)
- Revert the changes affecting external template.rc files
2008-03-23 21:59:31 +00:00
Steph Fox
ab8ddf1b78 Don't break PECL extensions that are oh-so-nearly doing The Right Thing [TM]
(mcve, runkit, win32ps)
2008-03-22 22:16:55 +00:00
Marcus Boerger
0893c3e2c9 - Another re2c version bump and scanner regeneration
# It appears no one has used re2c in the way we do
2008-03-22 17:59:52 +00:00
Steph Fox
fc2eed70ef Allow Stas his "1.0.0RC1-dev" 2008-03-22 09:33:31 +00:00
Steph Fox
a007d591bf Independent versioning for PECL extensions (and only PECL, for now)
This affects the RC template used to ship information with the DLL in Windows distributions - nothing else.
It will potentially affect 13 PECL modules at present (and yes I do know which ones!)
2008-03-22 09:07:59 +00:00
Steph Fox
b72b4ce87e Allow Elizabeth's favourite function to accept 2-4 sets of digits in version. 2008-03-20 15:03:20 +00:00
Rasmus Lerdorf
10afe5d96b Make the sigsetjmp change more robust. On systems that don't have
sigsetjmp use setjmp.  Windows is of course weird in that it seems to
have sigsetjmp but not sigjmp_buf (??) so force it to use setjmp in
config.w32.h.in
2008-03-18 21:14:28 +00:00
Steph Fox
7e38f9b2af Generic function for binary probes, kill the other two. And get rid of the annoying double check for CL. 2008-03-18 17:10:20 +00:00
Steph Fox
7c8ff91218 You might as well have 'the Steph special' too :-)
I can never remember the cscript line, so let's just have 'configure' instead.
2008-03-18 03:23:14 +00:00
Steph Fox
766b6b606e re2c checking.
If it's not installed, the least scary of messages goes out.
If it's installed but older than the required version, the download link is given.
2008-03-18 03:12:42 +00:00
Stanislav Malyshev
e345eb5e38 fix win32 build 2008-03-17 17:29:13 +00:00
Scott MacVicar
bd4c0ced50 Fix build on Windows 2008-03-17 17:06:51 +00:00
Scott MacVicar
b89071ec06 Make re2c required 2008-03-16 23:54:06 +00:00
Marcus Boerger
33da0b6a7b - No more flex underwindows either 2008-03-16 22:26:42 +00:00
Marcus Boerger
31ee06f0aa - Update windows build script 2008-03-16 22:16:56 +00:00
Marcus Boerger
af316021e8 - Rewrite scanner to be based on re2c instead of flex
The full patch is available as:
  http://php.net/~helly/php-re2c-5.3-20080316.diff.txt
  This is against php-re2c repository version 98
  An older patch against version 97 is available under:
  http://php.net/~helly/php-re2c-97-20080316.diff.txt
2008-03-16 21:06:55 +00:00
Pierre Joye
af15fe6531 - add PHP_PHP_BUILD\bin to the path in PATH_PROG (option set with --with-php-builds=[PATH] the zip.zip contains all we need (except re2c! ) 2008-02-17 01:26:15 +00:00
Stanislav Malyshev
529c17665f fix build 2008-01-23 19:55:37 +00:00
Rob Richards
38ac30162f MFH: add errors when missing dependencies (Steph) 2008-01-10 18:21:56 +00:00
Sebastian Bergmann
d1dded8751 MFH: Bump copyright year, 2 of 2. 2007-12-31 07:17:19 +00:00
Elizabeth Marie Smith
bcc718d971 Allow passing additional configuration parameters to config.nice.bat 2007-11-14 19:38:57 +00:00
Stanislav Malyshev
186e34c875 add glob wrapper 2007-11-07 19:47:38 +00:00
Edin Kadribasic
f1bcbb97ea MFH (and build fix) 2007-10-12 07:58:32 +00:00
Jani Taskinen
aa3eee1dce MFH:- Moved the old regex functions to own extension: ereg 2007-10-05 15:00:09 +00:00
Jani Taskinen
2bc631fb40 MFH:- Added common getopt implementation to core.
MFH:- Added long-option feature to getopt().
MFH:- Made getopt() available on win32 systems.
MFH:  Patch by: David Soria Parra <dsp@php.net>
[DOC]: These changes will be available from 5.3+

# Note: Fixed also tests and synced basic_functions.c with HEAD.
2007-10-01 12:40:54 +00:00
Jani Taskinen
8684e7495f MFH: - Made build system less major version dependant to ease MFB/MFH 2007-07-26 22:45:59 +00:00
Derick Rethans
51431a7660 - MFH: Allow the use of a user defined template.rc file to override the
default ones. This makes it possible to include the extension's version
  inside the version properties of the generated extension DLL instead
  of the PHP version the extension is build against.
2007-07-21 11:24:53 +00:00
Johannes Schlüter
dc8d09bbbd - MFH: Always enable mail() function 2007-07-11 17:36:56 +00:00
Dmitry Stogov
c327dec913 Fixed bug #41192 (Per Directory Values only work for one key) 2007-05-02 10:16:34 +00:00
Dmitry Stogov
6a8b3db8bc Fixed buffer overflow 2007-04-22 10:25:18 +00:00
Nuno Lopes
b6fac40b3a update install instructions (auto-generated from phpdoc XML sources) 2007-04-20 14:13:47 +00:00
Rob Richards
b6b312c020 add file locking under windows
change win build to use common clock compat files
2007-04-18 09:38:59 +00:00
Dmitry Stogov
e1814f0dbe WIN64 support 2007-04-16 08:09:56 +00:00
Dmitry Stogov
08daab9d1c Initial WIN64 support 2007-04-10 06:22:28 +00:00
Edin Kadribasic
e77f670ba0 Make DLL only once (Wez) 2007-03-19 03:15:48 +00:00
Edin Kadribasic
730a77f19b Check that manifest file exists before trying to embed it 2007-03-04 00:41:16 +00:00
Marcus Boerger
50ea26760d - Avoid sprintf, even when checked copy'n'paste or changes lead to errors 2007-02-24 02:17:47 +00:00
Nuno Lopes
3e45bc0a51 update install instructions from phpdoc XMl sources 2007-01-19 19:25:02 +00:00
Frank M. Kromann
2cca49ac01 MFH: Kill warnings when mt is not installed or is found as the tape command under cygwin 2007-01-13 03:32:28 +00:00
Edin Kadribasic
fec9895fc3 MFH: Make mt more silent 2007-01-08 00:27:06 +00:00