Commit Graph

3061 Commits

Author SHA1 Message Date
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
Arnaud Le Blanc
61ae60f805 MFH: Fixed error conditions handling in stream_filter_append() 2009-01-08 17:01:58 +00:00
Felipe Pena
7c989115c2 MFH:
- Added check for EWOULDBLOCK
- Using EWOULDBLOCK instead of EAGAIN by portability issues
(Related to #46917)
2009-01-07 20:21:46 +00:00
Felipe Pena
c7ef31aefb - Checking 0 param in the new way [only in this branch] 2009-01-07 18:34:18 +00:00
Felipe Pena
acd8f0020e - MFH: Windows part 2009-01-03 00:06:33 +00:00
Felipe Pena
5b2bb471f7 - MFH: Errr, rule nº 1: be portable :) 2009-01-02 21:42:52 +00:00
Felipe Pena
9c2043d41a - MFH: Working with unintialized errno (#46917, noticed by Jost Boekemeier) 2009-01-02 21:28:28 +00:00
Marcus Boerger
88f19296c9 - Add needed include as reported by Pierre 2008-12-31 17:33:05 +00:00
Marcus Boerger
f77719d800 MFH
- Changed dl() to be disabled by default. Enabled only when explicitly
  registered by the SAPI layer. Enabled only with CLI, CGI and EMBED. (Dmitry)
[DOC]
2008-12-31 14:27:09 +00:00
Marcus Boerger
2faea53de2 - Sync with HEAD, no ability to not start builtin functions 2008-12-31 14:05:22 +00:00
Marcus Boerger
8797aa99b7 MFH
- Register engine classes when and where they should be
- Show core module version as PHP version
2008-12-31 13:25:21 +00:00
Sebastian Bergmann
08659c2dcd MFH: Bump copyright year, 3 of 3. 2008-12-31 11:15:49 +00:00
Marcus Boerger
d6d4121546 - MFH Do not show empty ini directive tables for modules without ini entries. 2008-12-30 19:08:54 +00:00
Lars Strojny
29f49d2ded If a wrapper could not be found it is either a typo or a configuration issue. But in both cases it is critical enough to warn the user. 2008-12-14 16:25:37 +00:00
Lars Strojny
e34f9a87ac Cleanup: remove trailing whitespaces 2008-12-13 15:06:53 +00:00
Nuno Lopes
7c910b94cf make *printf() functions do not read strings past their specified length (if any) 2008-12-12 23:43:18 +00:00
Hannes Magnusson
f9bc85a19b Whoops. Missing bit from the open_basedir tightening MFH 2008-12-09 10:23:44 +00:00
Hannes Magnusson
76669fce23 MFH: - Changed open_basedir to allow tightening in runtime contexts. (Sara)
- Add test
2008-12-09 10:20:11 +00:00
Johannes Schlüter
a2266a7782 Back to -dev 2008-12-03 21:01:52 +00:00
Johannes Schlüter
2cfbe8c9ff 5.3.0. Alpha 3 2008-12-03 20:40:59 +00:00
Pierre Joye
ef68d9fc72 - export php_scandir and php_alphasort correctly (used by APC for example) 2008-12-02 10:15:08 +00:00
Scott MacVicar
ceabdbb483 MFH Add asprintf, use regular system malloc and free and add checks in configure.in for the functions 2008-11-27 19:45:27 +00:00
Dmitry Stogov
7d4fd3fd38 Fixed bug #46409 (__invoke method called outside of object context when using array_map) 2008-11-27 19:01:23 +00:00
Arnaud Le Blanc
dffdb48c3b MFH: Fixed bug #46673 (stream_lock call with wrong paramater) 2008-11-26 04:19:20 +00:00
David Soria Parra
a9282f72a8 MFH: Revert fix for 43782, as it caused problems. 2008-11-24 15:36:47 +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
Scott MacVicar
bfbe9a34ab MFH Add vasprintf() so the buffer can be automatically calculated, you need to efree this when done though! 2008-11-21 22:05:03 +00:00
Arnaud Le Blanc
c6e1b8bc67 MFH: Added stream_cast() and stream_set_options() to user-space stream
wrappers, allowing stream_select(), stream_set_blocking(),
stream_set_timeout() and stream_set_write_buffer() to work with user-space
stream wrappers.
Will document.
2008-11-15 12:52:13 +00:00
Arnaud Le Blanc
8c4151ad72 Added header_remove() (chsc at peytz dotdk, Arnaud)
[DOC] proto void header_remove([string header_name])
      Removes an HTTP header previously set using header()
      The header_name parameter is optionnal, all headers are
      removed if it is not set

[SAPIs] The header_handler callback in sapi_module_struct has
           been changed, it now take a new argument.

           When it is set to SAPI_HEADER_DELETE, sapi_header->header is
           the name of an header, header_handler has to delete it.

           When it is set to SAPI_HEADER_DELETE_ALL, header_handler has
           to delete all headers.

           When sapi_header_op_enum is SAPI_HEADER_ADD or _REPLACE,
           sapi_header->header is in the form "Name: value", header_handler
           has to add or replace the given header.

           In all cases, header_handler must not free sapi_header or
           sapi_header->header. SAPI_HEADER_ADD must be returned if the
           header has been added or replaced, or 0 in other cases.
2008-11-13 10:14:04 +00:00
Felipe Pena
f85b94ef33 - Silent valgrind 2008-11-12 16:40:40 +00:00
Arnaud Le Blanc
e13a4238e5 MFH: Fixed stream_get_contents() when using $maxlength and socket is not
closed. indeyets@php.net on #46049.
2008-11-11 01:55:51 +00:00
Alexey Zakhlestin
9942da41cf added const, as required by struct-definition 2008-11-07 09:12:39 +00:00
Arnaud Le Blanc
43400aaf87 MFH: initialize memory 2008-11-04 20:40:30 +00:00
Arnaud Le Blanc
d441b5db5b MFH: Fixed stream_get_line() to behave as documented on non-blocking
streams
2008-11-04 17:05:55 +00:00
Arnaud Le Blanc
8e220d99df MFH: Fixed bug #44607 (stream_get_line unable to correctly identify the
"ending" in the stream content)
2008-11-03 23:29:17 +00:00
Arnaud Le Blanc
de29f4161f MFH: Fixed bug #45303 (Opening php:// wrapper in append mode results
in a warning)
2008-11-03 16:58:53 +00:00
Arnaud Le Blanc
0a2bfc7968 MFH: Fixed bug #43353 (wrong detection of 'data' wrapper causes notice) 2008-11-03 15:47:31 +00:00
Felipe Pena
c96d79b2e6 - MFH: Fixed bug #46082 (stream_set_blocking() can cause a crash in some circumstances) 2008-10-24 10:44:43 +00:00
Arnaud Le Blanc
f5dd8c00a0 WS 2008-10-20 18:43:32 +00:00
Arnaud Le Blanc
0f31ed2f77 Better fix for #46313 2008-10-20 18:42:58 +00:00
Arnaud Le Blanc
c98e28795f Fixed #46313 (Magic quotes broke $_FILES)
# magic_quotes_gpc was disabled during registration of $_FILES["x"]["tmp_name"]
# and $GLOBALS["x"] (which is tmp_name with register_globals enabled). This
# caused "x" to not be escaped so there was 2 different keys for the same file
# in $_FILES, one with tmp_name and the other without.
# All other variables (name, size, etc) are registered with magic_quotes_gpc
# untouched, both in $_FILES and $GLOBALS and I did not found a reason for
# disabling it for tmp_name.
2008-10-20 17:09:10 +00:00
Nuno Lopes
8a77e55566 clean some dead code (with static analysis help) 2008-09-23 15:18:26 +00:00
Greg Beaver
17cfd5f24e MF52 fix Bug #46147: after stream seek, appending stream filter reads incorrect data 2008-09-22 01:26:14 +00:00
Ilia Alshanetsky
fcc0fdd125 Fixed bug #45392 (ob_start()/ob_end_clean() and memory_limit). 2008-09-17 00:20:30 +00:00
Dmitry Stogov
1474d9dfad Fixed bug #43053 (Regression: some numbers shown in scientific notation). (int-e at gmx dot de)
some 64bit test files may need to be fixed
2008-09-15 11:47:16 +00:00
Nuno Lopes
da804874f7 update list of pcre symbols 2008-09-14 14:15:52 +00:00
Arnaud Le Blanc
ef38ff62a5 MFH: More accurate max_file_size / upload_max_filesize (fixes #45124) 2008-09-07 14:17:47 +00:00
Arnaud Le Blanc
898ff10dc0 MFH: Fixed #43540 (rfc1867 handler newlength problem) 2008-09-06 17:18:40 +00:00
Dmitry Stogov
d5bba04ac5 Fixed Bug #43958 (class name added into the error message) 2008-09-02 09:45:49 +00:00