Commit Graph

2984 Commits

Author SHA1 Message Date
Jani Taskinen
aa3eee1dce MFH:- Moved the old regex functions to own extension: ereg 2007-10-05 15:00:09 +00:00
Ilia Alshanetsky
36cf6a2b05 Fixed bug #42785 (json_encode() formats doubles according to locale rather
then following standard syntax).
2007-10-01 15:22:41 +00:00
Ilia Alshanetsky
086289983e Refactor code to make fixes for coverity issues #385 and #386 a bit more
obvious
2007-10-01 14:51:11 +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
Nuno Lopes
e029a0ee59 fix a few compiler warnings (mostly use of unitialized values) 2007-09-29 11:18:42 +00:00
Jani Taskinen
1674976346 MFH: Fixed win32 build. 2007-09-28 10:23:38 +00:00
Jani Taskinen
09b6f37f20 MFH:
- Added ".htaccess" style user-defined php.ini files support for
  CGI/FastCGI.
- Added support for special [PATH=/opt/httpd/www.example.com/] sections
  in php.ini. All directives set in these sections will not be able to be
  overridden in user-defined ini-files or during runtime in the specified
  path.

- Improved php.ini handling:
  . Added better error reporting for syntax errors in php.ini files
  . Allowed "ini-variables" to be used almost everywhere ini php.ini files
  . Allowed using alphanumeric/variable indexes in "array" ini options
  . Fixed get_cfg_var() to be able to return "array" ini options

- Fixed bug #27372 (parse error loading browscap.ini at apache startup)
- Fixed bug #42069 (parse_ini_file() allows using some non-alpha numeric
  characters)
2007-09-28 02:05:10 +00:00
Sebastian Bergmann
a748ada212 Bump version. 2007-09-27 05:24:50 +00:00
Dmitry Stogov
884b06e303 Fixed crash on POST request after dl("mbstring.so") 2007-09-24 11:53:40 +00:00
Ilia Alshanetsky
f60df047f1 Fixed bug #42739 (mkdir() doesnt like a trailing slash when safe_mode is
enabled).
2007-09-23 15:19:21 +00:00
Antony Dovgal
74ae13f933 MFH: check for NULL (coverity issue #386) 2007-09-21 14:12:52 +00:00
Antony Dovgal
f5bf263b88 initialize all fields of the struct (it's generally good idea even though they should not be used) 2007-09-21 13:08:00 +00:00
Stanislav Malyshev
cd836153d6 disallow setting mail.force_extra_parameters from .htaccess 2007-09-13 20:04:22 +00:00
Jani Taskinen
77c36cd259 MFH: ws 2007-08-31 08:35:37 +00:00
Jani Taskinen
9be89ed6f6 MFH: ws fixes 2007-08-31 08:16:13 +00:00
Jani Taskinen
b9ddb5cba6 MFH 2007-08-31 08:09:50 +00:00
Jani Taskinen
3197e135fa MFH: Moved php.ini related protos where they belong 2007-08-31 07:48:05 +00:00
Jani Taskinen
11750c315d MFH: ws 2007-08-31 07:43:37 +00:00
Sebastian Bergmann
78e0e02179 Back to -dev. 2007-08-30 07:40:13 +00:00
Ilia Alshanetsky
493b67b518 5.2.4 2007-08-29 23:36:11 +00:00
Ilia Alshanetsky
6ed33cd46d Back to dev 2007-08-23 22:53:52 +00:00
Ilia Alshanetsky
43a3524f49 5.2.4RC3 2007-08-23 22:39:02 +00:00
Ilia Alshanetsky
2526d4f752 Back to dev 2007-08-17 00:38:23 +00:00
Ilia Alshanetsky
7f91d94c1d 5.2.4RC2 2007-08-17 00:35:39 +00:00
Stanislav Malyshev
5b021ac2fa fix proto 2007-08-16 23:54:24 +00:00
Jani Taskinen
bd27a1227e touch try 2 2007-08-13 20:33:08 +00:00
Jani Taskinen
b1ac58f75b touch 2007-08-13 20:14:05 +00:00
Hannes Magnusson
1507d56fc6 Fix version
# RC1 is out, RC2 is in the works..
2007-08-13 20:07:58 +00:00
Antony Dovgal
2046298d47 MFH 2007-08-10 10:13:15 +00:00
Jani Taskinen
45e96efd1d MFH: This is what we get for not doing MFH..or MFB..a mess 2007-08-08 07:01:49 +00:00
Ilia Alshanetsky
0cb6dd5671 Fixed bug #42237 (stream_copy_to_stream returns invalid values for mmaped
streams).
2007-08-08 02:16:41 +00:00
Antony Dovgal
515aaeda10 'I32' and 'I' support 2007-08-03 14:31:28 +00:00
Antony Dovgal
4a43566b19 fix folding 2007-08-03 09:51:12 +00:00
Antony Dovgal
57daf22d8f MFH: add I64 support to spprintf() 2007-08-03 09:48:58 +00:00
Stanislav Malyshev
df11ce1ece check correct value 2007-08-03 01:30:21 +00:00
Stanislav Malyshev
1b131c46ad make error_log setting access-controlled by safe_mode/open_basedir 2007-08-03 01:15:51 +00:00
Stanislav Malyshev
0ad85237ea add stage for .htaccess 2007-08-02 23:57:52 +00:00
Ilia Alshanetsky
56a947a3f7 Back to dev 2007-08-02 22:28:18 +00:00
Ilia Alshanetsky
6879ccfa7d 5.2.4RC1 2007-08-02 22:18:30 +00:00
Stanislav Malyshev
959aa4f596 revert wrong fix 2007-08-01 23:51:45 +00:00
Johannes Schlüter
25848bff61 - MFH: Fix #42164 Internal Sendmail Support is ALWAYS disabled 2007-08-01 12:49:34 +00:00
Dmitry Stogov
2d3d745bd9 Fixed EOF handling in case of reading from file opened in write only mode. 2007-07-25 16:34:06 +00:00
Antony Dovgal
99a162bb8b fix ZTS build 2007-07-24 20:32:32 +00:00
Dmitry Stogov
78932ba2f9 Fixed bug #41984 (Hangs on large SoapClient requests) 2007-07-24 14:24:44 +00:00
Jani Taskinen
335cac3c6a MFH:- Changed "display_errors" php.ini option to accept "stderr" as value which
MFH:  makes the error messages to be outputted to STDERR instead of STDOUT with
MFH:  CGI and CLI SAPIs (FR #22839).
2007-07-24 14:21:36 +00:00
Jani Taskinen
d271071067 MFH: Fixed compile warnings 2007-07-21 01:43:33 +00:00
Antony Dovgal
521917bdfa MFH 2007-07-18 11:46:50 +00:00
Jani Taskinen
741c74a25e MFH: Use correct macro name 2007-07-18 09:04:58 +00:00
Ilia Alshanetsky
20aa854940 Allow file uploads to bypass open_basedir checks (fixes regression) 2007-07-17 23:46:40 +00:00
Jani Taskinen
2c05c8c6b3 MFH: ws fix 2007-07-17 13:29:33 +00:00
Jani Taskinen
dd23eb0c88 MFH:- Fixed bugs #36796, #36918, #41371 (stream_set_blocking() does not work) 2007-07-17 13:28:44 +00:00
Jani Taskinen
cc7342ef72 MFH: folding tags and some more ws fixes 2007-07-15 15:34:28 +00:00
Jani Taskinen
aad63942b8 MFH: ws fixes (sync!) 2007-07-15 15:21:12 +00:00
Jani Taskinen
268808ad76 MFH: removed unused macros 2007-07-15 15:10:04 +00:00
Ilia Alshanetsky
a2fa9bbe84 Clear out last error & last error file information at the end of the
request to ensure that they don't propogate to the next request
2007-07-15 14:15:02 +00:00
Jani Taskinen
efe310579e MFH: - Fixed bug #41815 (Concurrent read/write fails when EOF is reached) 2007-07-12 11:03:46 +00:00
Johannes Schlüter
dc8d09bbbd - MFH: Always enable mail() function 2007-07-11 17:36:56 +00:00
Dmitry Stogov
5c28db4a9c Fixed wrong warning 2007-07-11 14:33:30 +00:00
Jani Taskinen
7b016d72a1 MFH: No return values for void function 2007-07-11 10:24:04 +00:00
Stanislav Malyshev
6f1b3ea73a suppress warnings to avoid potential loop 2007-07-10 17:58:19 +00:00
Stanislav Malyshev
84c9050805 check if write is allowed before writing to error log 2007-07-10 17:42:29 +00:00
Dmitry Stogov
ca854215db Fixed symlink("", "somthing") and link("", "somthing") in ZTS mode 2007-07-10 13:21:11 +00:00
Dmitry Stogov
510bee631f Fixed warning 2007-07-10 11:57:34 +00:00
Dmitry Stogov
539f67ed8f Added ability to create local or remote (URL) user streams
Local user streams must not be able to open(), URLs if allow_url_include is off
Implemented new function stream_is_local()
[
- stream_wrapper_register() extended with additional optional argument "flags"
  of type long. This time only one flag is implemented
- STREAM_IS_URL, that means that userstream wrapper is remote (URL).
  By default stream is local.
- stream_is_local() is a new function that accepts stream and tell if this
  stream is local or remote (URL)
]
2007-07-09 17:27:24 +00:00
Dmitry Stogov
aa54d9e385 Restore big exponent letter in var_export() ('1e300' -> '1E300') 2007-06-25 08:39:10 +00:00
Derick Rethans
3b481cef64 - MFH: Added the H modifier to create non-locale-aware non-fixed-precision
float representations.
- MFH: Fixed var_export() to use the new H modifier so that it can generate
  parsable PHP code for floats again, independent of the locale.
2007-06-19 12:20:50 +00:00
Dmitry Stogov
e1f08c8297 HTTP 500 is sent to browser in case of PHP error instead of blank page 2007-06-15 09:20:27 +00:00
Dmitry Stogov
c2e04e8364 Prevent crash in case of wrong arguments to CRT functions (strftime()) on PHP complead by MS VC2005 2007-06-15 07:27:08 +00:00
Antony Dovgal
c9805e7b92 MFH: check return value of *time_r() functions for NULL 2007-06-07 08:44:41 +00:00
foobar
f26145fa8c MFH:- Improved the error message for exceeding max_input_nesting_level. 2007-06-03 16:54:06 +00:00
Ilia Alshanetsky
a8be5f419d Improved fix for MOPB-02-2007 2007-06-03 16:19:14 +00:00
Antony Dovgal
8e3eee385e MFH: fix #41518 (file_exists() warns of open_basedir restriction on non-existent file) 2007-06-01 13:35:23 +00:00
Ilia Alshanetsky
de64609fec Back to dev 2007-05-30 18:48:58 +00:00
Ilia Alshanetsky
b604bc7200 5.2.3 2007-05-30 18:45:59 +00:00
Rasmus Lerdorf
6e0d643783 Slightly cleaner code 2007-05-25 09:20:01 +00:00
Rasmus Lerdorf
f6bffb69c5 Optimize sapi_get_request_time() slightly making it use the cached time
and also checking if there is a server_context before trying to call
the request_time sapi hook.
2007-05-25 09:12:35 +00:00
Ilia Alshanetsky
9998f67c91 Back to dev 2007-05-25 00:07:57 +00:00
Ilia Alshanetsky
f0b7941067 5.2.3RC1 2007-05-25 00:05:30 +00:00
Antony Dovgal
0db4f06f13 MFH 2007-05-19 12:53:06 +00:00
Scott MacVicar
55a3d5f8b1 MFH: Fixed bug #41390 (Clarify error message with invalid protocol scheme) 2007-05-15 13:04:43 +00:00
Antony Dovgal
d85fc29edf MFH 2007-05-14 12:19:34 +00:00
Hannes Magnusson
909894682d MFH: bug#41361 (shell_exec() does not find binaries) 2007-05-12 16:06:46 +00:00
Hannes Magnusson
63c11738f8 use php_strtok_r() rather than strsep()
# Fixes build on, for instance, solaris
2007-05-10 19:48:30 +00:00
Dmitry Stogov
eec0b67cd8 Fixed bug #41304 (compress.zlib temp files left) 2007-05-08 12:08:17 +00:00
Ilia Alshanetsky
420352d8b5 Register RAW_POST_DATA even when always_populate_raw_post_data is off in
instances where content type is not known
2007-05-07 23:27:59 +00:00
Ilia Alshanetsky
f932fe5ad4 Fixed bug #41293 (Fixed creation of HTTP_RAW_POST_DATA when there is no
default post handler).
2007-05-06 16:34:14 +00:00
Hannes Magnusson
448dbac84f MFH: Fixed PHP CLI to use the php.ini from the binary location 2007-05-06 14:01:26 +00:00
Ilia Alshanetsky
a64c73121d Back to dev 2007-05-03 01:16:50 +00:00
Ilia Alshanetsky
0f474f9474 5.2.2 2007-05-02 23:05:14 +00:00
Edin Kadribasic
618e172ec8 Sync correctly with configure.in 2007-04-30 16:18:06 +00:00
Edin Kadribasic
9b1de77959 Sync with configure.in 2007-04-27 20:54:47 +00:00
Ilia Alshanetsky
bd7e78c48b Back to dev 2007-04-26 22:44:53 +00:00
Ilia Alshanetsky
cc8ea13d5b 5.2.2RC2 2007-04-26 22:39:10 +00:00
Dmitry Stogov
4bd17132b1 ZTS fix 2007-04-25 14:18:01 +00:00
Antony Dovgal
41896020ea fix ZTS build 2007-04-25 11:05:16 +00:00
Dmitry Stogov
8464abe22e Fixed crashes because of SAPI handlers overrding from inside of dl()-ed extensions 2007-04-25 08:40:07 +00:00
Dmitry Stogov
41d27878de Fixed crash on win32 in case of negative size 2007-04-18 14:23:06 +00:00
Dmitry Stogov
02ee91dbb4 Fixed crash 2007-04-18 13:53:19 +00:00
Dmitry Stogov
72e7bfdedf Fixed endless loop in open_basedir check 2007-04-18 11:58:40 +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
Ilia Alshanetsky
843d0d58a0 Fixed bug #41093 (magic_quotes_gpc ignores first arrays keys). 2007-04-17 15:06:50 +00:00
Dmitry Stogov
e1814f0dbe WIN64 support 2007-04-16 08:09:56 +00:00
Brian Shire
f088268f91 fix fold typo 2007-04-16 02:25:24 +00:00
Antony Dovgal
73aa351741 MFH: add support for %I64(u|d) to sprintf() utilities 2007-04-12 22:01:20 +00:00
Ilia Alshanetsky
9005e996f1 Back to dev 2007-04-10 22:38:47 +00:00
Ilia Alshanetsky
ba5e5fe4ed 5.2.2RC1 2007-04-10 22:31:16 +00:00
Antony Dovgal
19aa4a932f fix #40931 (open_basedir bypass via symlink and move_uploaded_file()) 2007-04-10 22:30:07 +00:00
Dmitry Stogov
4de76f02ea Fixed 64-bit support 2007-04-09 15:38:58 +00:00
Andrei Zmievski
da4ba85cb4 We can't use the printf attribute here since we are supporting
non-standard formats (like 'F').
2007-04-06 19:25:52 +00:00
Ilia Alshanetsky
aa18505f34 Avoid locks when appening to the error log file 2007-04-06 13:58:48 +00:00
Ilia Alshanetsky
642432a5de Fixed bug #40897 (error_log file not locked) 2007-04-01 19:29:42 +00:00
Ilia Alshanetsky
f80afa623d Fixed bug #40921 (php_default_post_reader crashes when post_max_size is
exceeded).
2007-04-01 19:09:36 +00:00
Antony Dovgal
291f3a28c9 MFH: fix compile warning 2007-03-28 09:14:08 +00:00
Marcus Boerger
0ad927dbf2 - MFH A stream wrapper might only allow directory access 2007-03-03 19:01:34 +00:00
Stanislav Malyshev
a0215e9ac4 fix variable name 2007-03-02 22:03:05 +00:00
Stanislav Malyshev
32fb34e2d1 limit nesting level of input variables 2007-03-02 21:58:05 +00:00
Ilia Alshanetsky
efad70c2cc snprintf() -> slprintf() 2007-02-27 03:28:17 +00:00
Antony Dovgal
7939691523 fix ws/cs and make the ugly code less ugly.. 2007-02-26 12:05:52 +00:00
Nuno Lopes
d3ddf47718 update pcre symbols list 2007-02-25 18:47:21 +00:00
Marcus Boerger
1345740fa5 - Add [v]slprintf to overcome the returnvalues issue of snprintf 2007-02-24 18:20:46 +00:00
Ilia Alshanetsky
1b8a85415d Fixed Bug #39396 (stream_set_blocking crashes on Win32). 2007-02-24 15:48:40 +00:00
Marcus Boerger
24fa61e202 - Drop superflous efree 2007-02-24 14:53:50 +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
Sara Golemon
c3935671cd MFH (r-1.82): Add retry for interrupted reads and graceful handling for failed retries 2007-02-23 23:09:14 +00:00
Marcus Boerger
e3d786be4e - MFH Fix logic 2007-02-22 23:26:03 +00:00
Antony Dovgal
4a95928d1d MFH: implement PHP_STREAM_FLAG_NO_CLOSE and avoid hacks 2007-02-21 21:57:21 +00:00
Ilia Alshanetsky
a92ef5e0dc Fixed a memory leak on highlight_file() with a non-existant file 2007-02-13 23:39:14 +00:00
Antony Dovgal
c8a4b13638 MFH: improve php_userstreamop_seek() 2007-02-13 19:50:59 +00:00
Antony Dovgal
ffe3e65ac0 fix MFHed segfault 2007-02-07 21:07:31 +00:00
Marcus Boerger
6ded8042b9 - MFH Fix memleak with temp dir 2007-02-07 21:01:06 +00:00
Marcus Boerger
ee3226e50e - MFH options/exports 2007-02-07 20:59:59 +00:00
Ilia Alshanetsky
3f8e222ab3 Back to dev 2007-02-07 01:01:37 +00:00
Ilia Alshanetsky
ee626ccb51 5.2.1 2007-02-07 00:45:04 +00:00
Andi Gutmans
a11e0b5ef1 - Make sure to be ANSI C compliant 2007-02-05 05:15:16 +00:00
Marcus Boerger
0709a0490f - MFH Add PHPAPI to stuff needed by streams API for shared exts
- MFH Readonly issue fix to memory streams option handling (still not
  activated in 5.2.1 though)
2007-02-03 16:40:05 +00:00
Dmitry Stogov
52f6312866 Fixed bug #40259 (ob_start call many times - memory error). (Dmitry) 2007-01-29 11:21:31 +00:00
Marcus Boerger
0903f26151 - Disable memory streams set option until 5.2.2 2007-01-27 20:31:51 +00:00
Marcus Boerger
d10beb67c3 - MFH truncate support for mem/temp streams 2007-01-27 20:25:11 +00:00
Ilia Alshanetsky
7c166ddf86 Back to dev 2007-01-26 00:21:20 +00:00
Ilia Alshanetsky
15bcf9e38e 5.2.1RC4 2007-01-26 00:15:03 +00:00
Ilia Alshanetsky
9bf088ce36 Fixed bug #39450 (getenv() fills other super-globals). 2007-01-20 22:16:24 +00:00
Ilia Alshanetsky
5500a08ba3 Back to dev 2007-01-19 00:13:49 +00:00
Ilia Alshanetsky
cbd3a64136 5.2.1RC3 2007-01-19 00:03:21 +00:00
Nuno Lopes
58d4b44ae7 only 2 bits are needed for shutdown(2) method (only 3 possible values). this is new code in 5.2.1, so don't worry.. 2007-01-18 16:05:48 +00:00
Antony Dovgal
7ad1c3c5f2 MFH: add trailing '\0' to stream hashes 2007-01-15 17:07:08 +00:00
Antony Dovgal
7dd989fd4a revert the patch temporarily, I need to test a bigger patch in HEAD.. 2007-01-15 16:03:42 +00:00
Antony Dovgal
c463e98e99 MFH 2007-01-15 14:59:49 +00:00
Hannes Magnusson
6b7144d0b8 Fix build
#Thanks Andy
2007-01-12 14:31:28 +00:00
Hannes Magnusson
b865d176de Typo 2007-01-12 12:11:18 +00:00
Antony Dovgal
5941c1d28c MFH 2007-01-12 09:10:16 +00:00