Commit Graph

3209 Commits

Author SHA1 Message Date
Jani Taskinen
4e10081f8f - Make $sbindir be usable in C code as well (like $bindir and co.) 2009-12-15 11:17:47 +00:00
Dmitry Stogov
76c445dd73 - Forgotten patch for trunk
- Fixed stdin filename in error messages
2009-12-08 10:16:38 +00:00
Kalle Sommer Nielsen
1063c8346b MFT: VC10 build support 2009-12-03 11:50:32 +00:00
Dmitry Stogov
2ad406e518 Fixed bug #50159 (wrong working directory in symlinked files) 2009-11-30 14:21:23 +00:00
Jani Taskinen
47a9c71dcc - Fixed bug #49935 (Deprecated warnings make "make test" to fail) 2009-11-27 23:34:36 +00:00
Rasmus Lerdorf
2e9c3ed919 Make it possible to disable post_max_size 2009-11-17 20:33:51 +00:00
Ilia Alshanetsky
2e13e89bd1 Simpify the max_file_uploads handling code 2009-11-16 13:34:57 +00:00
Felipe Pena
f61a06350a - Switching to TSRMLS_FETCH version 2009-11-16 10:36:27 +00:00
Felipe Pena
5411bb32a8 - Fixed bug #49936 (crash with ftp stream in php_stream_context_get_option())
(patch by Pierrick)
2009-11-15 20:30:57 +00:00
Jani Taskinen
3a9f74967d - Nuke ws 2009-11-15 00:31:42 +00:00
Rasmus Lerdorf
4e6b9899a5 Fix bug #49868
As far as I can tell this was a copy-paste induced bug when I added
the reset_signals flag to zend_set_timeout.
2009-11-15 00:21:31 +00:00
Johannes Schlüter
473d75475a Fix #50063 (safe_mode_include_dir fails) 2009-11-12 15:05:03 +00:00
Felipe Pena
8f0a451747 - Fixed bug #50005 (Throwing through Reflection modified Exception object makes segmentation fault) 2009-11-12 00:10:00 +00:00
Dmitry Stogov
cf4dc24743 Avoid invoking setitimer when timeouts have been disabled (Arvind Srinivasan) 2009-11-05 10:38:56 +00:00
Ilia Alshanetsky
8dae9275fc Lower the max upload default to 20 2009-10-28 13:04:42 +00:00
Ilia Alshanetsky
e2211cee86 Introduced a max_file_uploads INI setting, which is set to limit the
number of file uploads per-request to 100 by default, to prevent possible
DOS via temporary file exhaustion.
2009-10-27 16:13:48 +00:00
Pierre Joye
e4adfe4f61 - #48779, fix another use case where / usage may differ 2009-10-15 13:09:25 +00:00
Stanislav Malyshev
0e38a3d303 oops, that doesn't belong to this patch 2009-10-13 20:54:28 +00:00
Stanislav Malyshev
207e75b2cd fix crash for bug #47627 2009-10-13 19:58:59 +00:00
Pierre Joye
e5d4b019b9 - #48779, improve fix, drop usage of _tolower and use zend_strtolower 2009-10-12 14:40:27 +00:00
Pierre Joye
112379ba24 - fix possible issue in TS environment (we don't have to do that anymore anyway in 5.3+) 2009-10-11 21:04:35 +00:00
Pierre Joye
4d63bd1132 - #48779, don't loop twice over the path chars 2009-10-11 20:50:53 +00:00
Felipe Pena
994307d429 - Fixed build and comment-style 2009-10-09 20:01:16 +00:00
Garrett Serack
8e5a00e546 - changed ini file directives [PATH=](on Win32) and [HOST=](on all) to be case insensitive (garretts) 2009-10-09 19:43:00 +00:00
Dmitry Stogov
ffb07732f7 Fixed bug #49627 (error_log to specified file does not log time according to date.timezone) 2009-10-05 13:56:49 +00:00
Ilia Alshanetsky
d35c2b14dd Fixed bug #48805 (IPv6 socket transport is not working). 2009-09-30 20:48:41 +00:00
Dmitry Stogov
4b1c7c5615 Fixed ext/standard/tests/streams/stream_get_contents_002.phpt 2009-09-23 10:25:54 +00:00
Dmitry Stogov
b4ba7fb96e Fixed memory leak 2009-09-21 11:22:13 +00:00
Dmitry Stogov
7bfe056174 Fixed tests 2009-09-21 09:52:19 +00:00
Sriram Natarajan
fbc335e5d1 - Fixed bug #49572 (use of C++ style comments causes build failure) 2009-09-17 02:45:25 +00:00
Jani Taskinen
ccd6e501d1 - Simplified a bit and fixed possible memory corruption and definate leak. 2009-09-10 16:19:42 +00:00
Jani Taskinen
f723d368b3 - Fixed bug #49182 (PHP CGI always outputs the shebang line) 2009-09-05 17:07:14 +00:00
Jani Taskinen
4361f2370a I have no idea. This might or might not fix a bug in some branch. At least it works. 2009-09-04 11:02:40 +00:00
Sriram Natarajan
ac2d3990f2 - Fixed bug #49447 (php engine need to correctly check for socket API
return status on windows). (Sriram Natarajan)
2009-09-04 07:59:48 +00:00
Johannes Schlüter
bcde6a023c This will become 5.3.2, the NEWS file will be merged once 5.3.1 is out 2009-09-03 21:35:17 +00:00
Jani Taskinen
db53d49623 - Fixed bug #49248 by fixing bug #48994 properly 2009-08-17 17:30:32 +00:00
Jani Taskinen
46bd9ed597 - Try disabling zlib.output_compression always for images. (zlib extension might be compiled as shared and not same time as the main PHP binary) 2009-08-17 16:54:39 +00:00
Jani Taskinen
08f8621a9f - Fixed bug #48994 (zlib.output_compression does not ouput HTTP headers when set to a string value)
# also fixes bug #35936 (ini.zlib.output-compression Documentation :)
2009-08-03 18:15:30 +00:00
Rasmus Lerdorf
8608857c1a Fix bug #48880
The ini entry was being corrupted because it wasn't being set
on the ACTIVATE and DEACTIVATE stages.
2009-07-31 21:09:45 +00:00
Stanislav Malyshev
d1a16fc86d fix extension functions disabling (bug #49065) 2009-07-29 00:17:10 +00:00
Ilia Alshanetsky
c71358379d Fixed a possible crash inside OnUpdateErrorLog() when restoring an empty value
Avoid pointless safe_mode/open_basedir checks on OnUpdateMailLog() if value is empty
2009-07-12 16:38:14 +00:00
Stanislav Malyshev
4bb8672039 fix mail.log openbasedir interaction with .htaccess 2009-07-09 00:21:17 +00:00
Jani Taskinen
87f9d62861 - Fixed bug #48247 (Infinite loop and possible crash during startup with errors) 2009-07-07 16:42:11 +00:00
Ilia Alshanetsky
ae2c5ee7d4 MFB: Fixed bug #48465 (sys_get_temp_dir() possibly inconsistent when using
TMPDIR).
2009-06-30 12:20:35 +00:00
Johannes Schlüter
52c9cad8e4 Back to -dev 2009-06-29 16:33:25 +00:00
Johannes Schlüter
4b4283bdc0 Bump version to 5.3.0 and API Nos. up 2009-06-26 15:44:19 +00:00
Ilia Alshanetsky
00d0ecda10 Revert patch 2009-06-24 20:08:54 +00:00
Ilia Alshanetsky
c0aa23fd86 MFB: Fixed bug #48465 (sys_get_temp_dir() possibly inconsistent when using
TMPDIR).
2009-06-24 12:21:45 +00:00
Johannes Schlüter
9851acba7b Back to dev 2009-06-18 21:07:08 +00:00
Johannes Schlüter
ff1bf7f766 5.3.0 RC 4 2009-06-18 21:01:03 +00:00
Rasmus Lerdorf
269df474bf Ah, broken vimrc.. 2009-06-18 06:38:30 +00:00
Rasmus Lerdorf
e70abda281 Fix bug #48592 2009-06-18 06:32:38 +00:00
Johannes Schlüter
a8f3eeefe8 back to -dev 2009-06-10 18:39:15 +00:00
Johannes Schlüter
10d976d225 5.3.0RC3 2009-06-10 18:18:43 +00:00
Pierre Joye
e7560b8316 - typo 2009-06-04 07:41:01 +00:00
Pierre Joye
0168025f4c - [DOC] add PHP_WINDOWS_NT_* and PHP_WINDOWS_VERSION_* constants (usefull for testing and features detections)
see http://msdn.microsoft.com/en-us/library/ms724451(VS.85).aspx for the explanation
2009-06-04 06:59:46 +00:00
Scott MacVicar
16398c1990 MFH: Make sure the timeout is checked in the shutdown function, patch from Etienne 2009-05-30 09:48:16 +00:00
Derick Rethans
d29d24427f - MFH: Get rid of the four different versions of zend_extension* and only use
zend_extension. Because of the API identifier change in PHP 5.3 you also get
  a proper warning message now.
#- [DOC]
2009-05-18 21:33:38 +00:00
Arnaud Le Blanc
c79528a26d MFH: Fixed bug #48309 (stream_copy_to_stream() and fpasstru() do not
update stream position of plain files)
2009-05-17 14:58:10 +00:00
Arnaud Le Blanc
fab1f0e754 Fix warning when inner stream of a temp:// stream is closed before
the stream ifself
2009-05-16 20:27:36 +00:00
Arnaud Le Blanc
a2600facdd MFH: Fixed bug #48307 (stream_copy_to_stream() copies 0 bytes when $source
is a socket)
2009-05-16 20:23:06 +00:00
Dmitry Stogov
2f8ca07d18 Fixed wrong return value 2009-05-14 08:21:54 +00:00
Hannes Magnusson
ebf7a8e9a3 Fix comments 2009-05-08 11:35:12 +00:00
Johannes Schlüter
508a2d0c3d Back to -dev 2009-05-06 18:57:45 +00:00
Johannes Schlüter
6eb27922d7 5.3.0RC2-dev 2009-05-06 18:51:29 +00:00
Kalle Sommer Nielsen
5a6d3cc42b Added E_DEPRECATED startup notice (5.3 only) 2009-05-04 21:18:22 +00:00
Derick Rethans
53bb83ab8c - MFH: Fixed warnings 2009-05-04 19:55:47 +00:00
Antony Dovgal
79d1691d11 MFH: use correct function 2009-05-04 14:44:46 +00:00
Antony Dovgal
7809cd64e8 MFH: don't segfault on bindto == NULL 2009-05-04 14:25:17 +00:00
Ilia Alshanetsky
8c9195e48d Fixed bug #48131 (Don't try to bind ipv4 addresses to ipv6 ips via bindto) 2009-05-04 13:09:15 +00:00
Derick Rethans
65fc904143 - MFH: Fixed bug #45191 (error_log ignores date.timezone php.ini val when
setting logging timestamps).
2009-05-03 19:08:49 +00:00
Pierre Joye
3cce609d77 - fix build (Marcus, fix re2c please) 2009-04-30 09:11:00 +00:00
Stanislav Malyshev
94b7a00760 fix for #47930 2009-04-28 21:30:23 +00:00
Dmitry Stogov
9e36fae5ff Fixed bug #48034 (PHP crashes when script is 8192 (8KB) bytes long) 2009-04-28 07:13:30 +00:00
Pierre Joye
be093af4fa - silent compiler warning 2009-04-20 08:28:44 +00:00
Arnaud Le Blanc
8ea9eb8560 MFH: Better fix for #47997 2009-04-19 17:10:35 +00:00
Arnaud Le Blanc
14c717f449 Fixed bug #47997 (stream_copy_to_stream returns 1 on empty streams) 2009-04-19 13:46:47 +00:00
Mikko Koppanen
3fd12260aa MFH: Added support for passing O_NONBLOCK to the underlying open() system call 2009-04-11 11:44:15 +00:00
Arnaud Le Blanc
843202cd5c MFH: Fixed initialization of tick functions list in ZTS 2009-03-27 02:34:06 +00:00
Christian Seiler
3470a30125 - Fixed memory leak in ob_get_clean/ob_get_flush.
# Not necessary in HEAD because output buffering was completely rewritten
# there.
2009-03-25 23:59:45 +00:00
Hannes Magnusson
2881a60e31 Add missing proto 2009-03-25 19:55:59 +00:00
Johannes Schlüter
5afff17958 Back to dev 2009-03-23 20:40:37 +00:00
Johannes Schlüter
3c038201eb 5.3.0 RC 1 2009-03-23 20:33:21 +00:00
Arnaud Le Blanc
2b57d6d6ea MFH: Better fix for #44607. Fixes #47487 (php_stream_fill_read_buffer()
performance degraded after fix of bug 44607).
2009-03-19 17:55:10 +00:00
David Coallier
2e5f11b841 - Fixed bug #46897: ob_flush() should fail to flush unerasable buffers
- Added test for bug46897
- A memleak has been identified while fixing this bug but the changes
  made by this commit do not affect ob_get_clean where the memleak (which
  is fixed in HEAD with the new handler) resides.
- [DOC] New noticed is outputted in ob_flush when the buffer is unerasable
2009-02-13 11:48:17 +00:00
Ilia Alshanetsky
aaa5361c90 Adjust condition 2009-02-10 16:14:18 +00:00
Ilia Alshanetsky
2b531b5149 MFB: typo fix 2009-02-10 14:21:27 +00:00
Ilia Alshanetsky
986a933c82 MFB: Added path truncation E_NOTICE to let people now when path resolving
caused the file path to be truncated.
2009-02-10 14:18:46 +00:00
Dmitry Stogov
c277ebc6c8 Fixed bug #47320 ($php_errormsg out of scope in functions) 2009-02-09 09:20:35 +00:00
Ilia Alshanetsky
311a87c8d7 MFB: Fixed bug #44874 (dead pfsockopen'ed sockets aren't reaped when
the remote end restarts)
2009-02-09 02:55:45 +00:00
Pierre Joye
acdb832581 - silent compiler warning about socklen_t benign redefinition 2009-02-02 09:41:46 +00:00
Johannes Schlüter
fd3942f4ce Back to -dev 2009-01-28 22:09:55 +00:00
Johannes Schlüter
42023008b9 PHP 5.3.0beta1 2009-01-28 21:38:45 +00:00
Stanislav Malyshev
0c5d83b053 fix nts build 2009-01-17 01:12:36 +00:00
Pierre Joye
bce6bc73fc -add some doc about versions 2009-01-16 13:52:13 +00:00
Pierre Joye
dcb5027b93 - MFH:
- return SUCCESS on success
 - check return value
2009-01-16 10:26:32 +00:00
Pierre Joye
8dfe43815e - MFH: add OPENBASEDIR_CHECKPATH macro to ease merge between 5.3 and 6, it includes safemode (5.3) and openbasedir check 2009-01-16 10:06:10 +00:00
Pierre Joye
2f61ad9b98 - add EG(windows_version_info), set at init time once per instance
contains a OSVERSIONINFOEX struct. It lets us determine easily on which windows version is used (for example)
- add the ability to disable a function when the windows function does not support a feature (for example symlink)
- symlink, hardlink & co support (1/2)
2009-01-16 00:57:05 +00:00
Ilia Alshanetsky
905a5c0590 [DOC]
Added mail logging functionality that allows logging of mail sent via
mail() function

THe logging functionality is disabled by default but can be enabled on a
per-directory or globaly via 2 INI settings.

The mail.log directive allows you to specify the file where each call to
mail() will be logged. The log file will contain the path and line # of the
calling script in addition to all of the headers indicated by the user.

The mail.add_x_header directive will introduce a X-PHP-Originating-Script
header that will contain the file name (no path) of the calling script and
the uid of the script. This combination should be sufficient for the admin
to locate the sending script.
2009-01-09 14:59:30 +00:00
Felipe Pena
31169e2c1a MFH:
- Fixed bug #47037 (No error when using fopen with emty string)
Patch by Cristian Rodriguez R.
2009-01-08 18:46:00 +00:00