Commit Graph

3223 Commits

Author SHA1 Message Date
Antony Dovgal
35f366273f increase context refcount before open() to avoid crash when open() fails and destroys the context 2008-08-06 09:03:36 +00:00
Dmitry Stogov
c1ef996a1c Removed shebang line check from CGI sapi (it is checked by scanner) 2008-08-04 07:20:44 +00:00
Jani Taskinen
c9c53d7bcd - Nuketh C++ comments from C files. 2008-08-03 12:12:45 +00:00
Pierre Joye
50c685a305 - silent warning with vc8 + dbg mode 2008-07-28 11:35:36 +00:00
Felipe Pena
6182c24aa8 - Fixed the parameter type expected. set_time_limit() should accept only integer. 2008-07-25 13:39:39 +00:00
Felipe Pena
4eaf978874 - MFB: New parameter parsing API (set_time_limit) 2008-07-25 12:14:36 +00:00
Dmitry Stogov
013059c247 Fixed uninitialized data 2008-07-25 08:53:11 +00:00
Antony Dovgal
55fecd6593 invert the logics - FLAG_FCLOSE -> FLAG_NO_FCLOSE 2008-07-23 11:24:35 +00:00
Felipe Pena
f76da1b96c - Fixed bug #44246 (closedir() accepts a file resource opened by fopen()) 2008-07-22 14:06:17 +00:00
Steph Fox
c799f0a1ef MFB Removed generated file (no longer used for .dsp builds) 2008-07-21 10:02:08 +00:00
Hannes Magnusson
5919165375 Add E_USER_DEPRECATED (patch by Lars Strojny) 2008-07-21 09:36:21 +00:00
Dmitry Stogov
637e591a3d Fixed chdir() into requested file directory inconsistencies 2008-07-21 08:42:35 +00:00
Nuno Lopes
0b858d15e3 update PCRE symbols 2008-07-17 14:35:33 +00:00
Jani Taskinen
1a58013044 - Fixed bug #44127 (UNIX abstract namespace socket connect does not work) 2008-07-16 14:08:04 +00:00
Jani Taskinen
c3e18660ec - Silence "unused variable" warning when ip6 support is disabled 2008-07-11 13:11:37 +00:00
Antony Dovgal
ca0a6ec295 not all stream wrappers use context, so no need to addref in all cases 2008-07-11 12:40:20 +00:00
Antony Dovgal
3519ed9e31 manage references of stream context properly 2008-07-11 10:24:29 +00:00
Pierre Joye
1c82616c27 - don't redefine WINDOWS and pid_t 2008-07-05 18:50:10 +00:00
Pierre Joye
ebeaa08ecd - _getpid is in process.h 2008-07-05 18:36:13 +00:00
Dmitry Stogov
7528240b85 Fixed bug #45352 (Segmentation fault because of tick function on second request) 2008-06-25 12:18:51 +00:00
Kalle Sommer Nielsen
96cd1c1e0b Fix build on Windows NT6 2008-06-24 05:59:11 +00:00
Dmitry Stogov
00ea3108ea closeder/readdir/rewinddir must work only with directories 2008-06-11 09:01:44 +00:00
Stanislav Malyshev
dcd1cd8002 with unicode buffers, positions are in uchars 2008-06-08 18:21:59 +00:00
Antony Dovgal
41c60bab79 fix invalid free in Unicode filter 2008-05-20 07:48:04 +00:00
Greg Beaver
2b41209dfb MFB: fix erroneous use of php_resolve_path in _php_stream_wrapper_open_ex - this breaks require/include for all extensions that intercept zend_resolve_path 2008-04-28 22:40:10 +00:00
Greg Beaver
e8ac7c11d1 MFB: Fixed potentially confusing error message on failure when no errors are logged 2008-04-28 22:37:45 +00:00
Dmitry Stogov
f3c82b0055 Optimized request startup sequence for php.ini without per dir and per host conf
igurations
2008-04-15 11:32:13 +00:00
Greg Beaver
b34cf3d86f MFB do not scan include_path with faulty plain_wrapper-based include_path fopen
# _fopen_with_path_rel probably needs to call out to regular php_stream_open, for exts that use it (it is exported)
2008-04-13 22:19:23 +00:00
Dmitry Stogov
977cc79398 Added ability to use stream wrappers in include_path 2008-03-27 10:33:52 +00:00
Scott MacVicar
56352d1a2f MFB 5.3: Rest of the changes for re2c merge 2008-03-26 14:46:17 +00:00
Johannes Schlüter
870ddcdb3e - New egg 2008-03-25 17:17:42 +00:00
Christopher Jones
7060c9574c oci8: Sync with 5.3 - version macro updates and DRCP tweaks 2008-03-25 02:25:03 +00:00
Antony Dovgal
4c7b5a89ba Change streams to not use mmap() when reading files (aka copying to memory).
There are two problems with mmap() in this case:
1) there is no performance gain since we allocate the memory anyways;
2) memcpy() may crash if somebody truncates this file at the same moment
(see http://dev.daylessday.org/diff/mmap.phps for example);

It seems to work fine with fpassthru(), though why it is so should be investigated.

Thanks to Andrey Vasilishin for the report and Anight for pressing this through =)
2008-03-24 16:28:08 +00:00
Dmitry Stogov
cee56e2022 Fixed ws and comment 2008-03-24 09:30:54 +00:00
Antony Dovgal
5b5c286d49 use correct flags 2008-03-22 12:56:07 +00:00
Marcus Boerger
384d50b37b - Settle to 4 MB, see internals@ archives 2008-03-21 19:37:32 +00:00
Marcus Boerger
12a66e0d1c - Fix comment 2008-03-21 18:20:51 +00:00
Marcus Boerger
a70a882df4 - Increase max mmap size to 8 MB 2008-03-21 17:12:38 +00:00
Antony Dovgal
f1fbb3fd21 [DOC] revert short tags to their previous state 2008-03-21 16:38:50 +00:00
Stanislav Malyshev
da40d5a172 MF5: make short_open_tag user-accessible 2008-03-20 17:31:17 +00:00
Rasmus Lerdorf
b911467d1d MFB
Here are the signal changes from the 5.3 branch that optimizes signal
handler registration and switches from longjmp to siglongjmp in order
to make signal mask handling consistent across different UNIX operating
systems.
2008-03-19 16:37:49 +00:00
Antony Dovgal
da036996be make use of zend_atol() 2008-03-19 12:40:48 +00:00
Felipe Pena
af9b1c3376 MFB: Fixed bug #44440 (st_blocks undefined under BeOS) 2008-03-15 10:34:12 +00:00
Antony Dovgal
6ec12a4794 check if return value of write() is -1 and abort upload in this case setting the correct error status 2008-03-14 13:10:22 +00:00
Dmitry Stogov
ab77e14ad2 Disable path resolution for filenames with stream wrappers
More careful check for relative pathes (./xxx and ../xxx)
2008-03-13 14:10:08 +00:00
Stanislav Malyshev
c5c4b858df MFB: add request_order INI variable to control $_REQUEST content
# if not set (default), variables_order still is used
# request_order accepts G,P and C
2008-03-12 20:53:04 +00:00
Antony Dovgal
ec101c1274 fix segfault - error_string may be NULL, in this case we have to follow the old behavior 2008-03-11 10:26:51 +00:00
Andrey Hristov
af5a93e552 char **error_message was passed but not used. This causes problems in cases
of getaddrinfo() failure, because the upper layers don't get the error.
  initialize a variable because we were reading initialized in case of error.
2008-03-10 19:55:43 +00:00
Etienne Kneuss
2660bd1de9 User error handlers no longer catch supressed errors 2008-03-08 22:17:32 +00:00
Pierre Joye
e0d8f5c8bc - MFB: #42505, new sendmail default path breaks on Novell (Guenter Knauf) 2008-03-05 21:20:14 +00:00
Dmitry Stogov
c8b1dbff23 Optimized require_once() and include_once() by eliminationg open() syscall on se
cond usage.
2008-03-05 13:35:02 +00:00
Felipe Pena
2818d4fc51 New way for check void parameters 2008-03-04 23:39:15 +00:00
Ilia Alshanetsky
94ee2269d6 MFB: Fixed bug #44233 (MSG_PEEK undefined under BeOS R5) 2008-02-27 00:30:49 +00:00
Marcus Boerger
6b58678c63 - Add E_DEPRECATED (Lars Strojny, Felipe Pena, Marcus) 2008-02-23 17:03:53 +00:00
Felipe Pena
b6fafb1a4d Fix build 2008-02-16 02:28:11 +00:00
Pierre Joye
48d86e7ad8 - [DOC] MFB: add PHP_MAJOR_VERSION, PHP_MINOR_VERSION, PHP_RELEASE_VERSION,
PHP_EXTRA_VERSION, PHP_VERSION_ID, PHP_ZTS and PHP_DEBUG constants
2008-02-15 15:09:56 +00:00
Marcus Boerger
602dd615e9 - Add %Z to *printf 2008-02-07 18:40:29 +00:00
Marcus Boerger
8954a96939 - WS 2008-02-07 12:45:42 +00:00
Jani Taskinen
ad6e9ad259 - Allow using any constants registered by PHP in php.ini too 2008-02-04 20:38:42 +00:00
Marcus Boerger
986eed1379 - Typo 2008-02-03 14:48:22 +00:00
Marcus Boerger
f2ce43983f - Rename dump_config_hash() to get_config_hash() as it doesn't dump 2008-02-03 14:35:29 +00:00
Marcus Boerger
bffdbbbfa4 - Fix build 2008-02-02 23:25:43 +00:00
Marcus Boerger
7671f2ec4a - Get rid of overoptimization 2008-01-30 23:43:05 +00:00
Dmitry Stogov
42a683d688 Imporoved PHP binary size and startup speed with GCC4 visibility control (Nuno) 2008-01-30 09:56:22 +00:00
Dmitry Stogov
6c51ef721f Fixed bug #43491 (Under certain conditions, file_exists() never returns) 2008-01-29 14:25:07 +00:00
Scott MacVicar
352c3a7f1b Fixed bug #43954 (Memory leak when sending the same HTTP status code more than once.) 2008-01-28 16:08:14 +00:00
Dmitry Stogov
6847c18150 Added garbage collector 2008-01-22 09:29:29 +00:00
Greg Beaver
184e934511 use correct macro 2008-01-13 22:55:02 +00:00
Greg Beaver
e54eb5513e clarify error message on why opening a stream wrapper failed for allow_url_include/allow_url_fopen, add test for allow_url_fopen 2008-01-12 15:50:17 +00:00
Sebastian Bergmann
9b620d50b4 Bump copyright year, 2 of 2. 2007-12-31 07:12:20 +00:00
Antony Dovgal
21fb4c1030 apply correct fix for bug #43522
fix Unicode streams too this time
2007-12-29 10:50:12 +00:00
Hannes Magnusson
2ea5df33a7 Update the class method documentation links 2007-12-29 02:21:25 +00:00
Hannes Magnusson
003bb5ceaa MFB5.3: Fixed bug#43105 (PHP seems to fail to close open files.) 2007-12-27 02:11:05 +00:00
Derick Rethans
b95520c0fd - Fixed typo. 2007-12-18 10:52:59 +00:00
Ilia Alshanetsky
0b6a51e539 MFB: Fixed bug #43580 (removed bogus declaration of a non-existent
php_is_url() function)
2007-12-13 00:27:43 +00:00
Ilia Alshanetsky
d963eaffcc MFB: Fixed bug #43522 (stream_get_line() eats additional characters) 2007-12-10 14:19:20 +00:00
Dmitry Stogov
8dbae457d5 Fixed crash because of uninitialized SG(sapi_headers).mimetype 2007-12-03 16:04:47 +00:00
Jani Taskinen
38d7b36439 - No zval is stored here 2007-11-26 16:34:07 +00:00
Jani Taskinen
4fc4814012 - Fixed bug #43365 (Several enums have trailing commas) 2007-11-26 10:58:28 +00:00
Dmitry Stogov
47dc82ecb9 Fixed bug #43128 (Very long class name causes segfault) 2007-11-22 13:33:53 +00:00
Hannes Magnusson
1727c712b6 - Add support for optional values
- Add support for = as seperator
2007-11-20 22:42:47 +00:00
Jani Taskinen
ad9605a722 - Allow using full path to load modules using "extension" directive 2007-11-09 16:26:55 +00:00
Jani Taskinen
ae2b2b1465 - Added support for [HOST=www.example.com] sections
# Works the same way as PATH, just the SERVER_NAME is matched with these
2007-11-09 16:02:50 +00:00
Rob Richards
5f7ece064d fix non ipv6 enabled win build 2007-11-06 10:56:53 +00:00
Marcus Boerger
c26e0d8ee7 - MFB ws 2007-11-06 10:54:29 +00:00
Jani Taskinen
13171134f8 - Nuke unused variables 2007-11-01 17:32:10 +00:00
Jani Taskinen
eb1a26c8b2 - Fixed bug #43137 (rmdir() and rename() do not clear statcache) 2007-10-31 13:22:18 +00:00
Dmitry Stogov
5138a3b575 Fixed bug #42722 (display_errors setting ignored for E_PARSE and HTTP 500 page) 2007-10-18 13:12:01 +00:00
Edin Kadribasic
8b3bfa7cf7 MFB: Fix build 2007-10-12 08:08:02 +00:00
Elizabeth Marie Smith
9e0894fa21 MFB 2007-10-10 23:23:54 +00:00
Scott MacVicar
7ba8a98fd3 Fix expand_filepath when including relative files, ideally you should test you code... 2007-10-09 10:04:19 +00:00
Jani Taskinen
c1c60fb7e2 ws + cs 2007-10-09 08:40:25 +00:00
Robert Thompson
d5192b04a4 Fix for bug 41822. expand_filepath() will now return a relative path under the specific situation where getcwd() returns NULL and the file is still readable. As far as I have been able to tell, this fix only applies to the Solaris OS where files in directories with (--x) cannot getcwd(). 2007-10-09 02:41:14 +00:00
Yiduo (David) Wang
95da0dc570 Added macros for managing zval refcounts and is_ref statuses 2007-10-07 05:15:07 +00:00
Antony Dovgal
277eb1feee ucnv_toUnicode() in ICU 3.8 requires target buffer size to be even, otherwise it bails out with U_ILLEGAL_ARGUMENT_ERROR
this commit fixes endless loop (due to the absence of error catching) and also fixes the cause of the error
2007-10-02 17:09:22 +00:00
Ilia Alshanetsky
6c4e9b52b9 MFB: Fixed bug #42785 (json_encode() formats doubles according to locale
rather then following standard syntax).
2007-10-01 15:25:01 +00:00
Ilia Alshanetsky
8c94e4045d MFB: Refactor code to make fixes for coverity issues #385 and #386 a bit
more obvious
2007-10-01 14:56:34 +00:00
Jani Taskinen
44cbb46246 - Added common getopt implementation to core.
- Added long-option feature to getopt().
- Made getopt() available on win32 systems.
Patch by: David Soria Parra <dsp@php.net>
[DOC]: These changes will be available from 5.3+
2007-10-01 12:32:39 +00:00
Jani Taskinen
69eafc407f - Fix warning 2007-10-01 12:26:55 +00:00
Jani Taskinen
0d0117bfdf - Fix win32 build. 2007-09-28 10:23:14 +00:00
Jani Taskinen
f964370a35 - 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)

@DOC Pierre promised to handle the manual part of this :D
2007-09-28 02:04:28 +00:00
Dmitry Stogov
8146078f7b Improved memory usage by movig constants to read only memory. (Dmitry, Pierre) 2007-09-27 18:28:44 +00:00
Dmitry Stogov
38673d1f6f Fixed crash on POST request after dl("mbstring.so") 2007-09-24 11:53:57 +00:00
Antony Dovgal
e69a0b7533 check for NULL (coverity issue #386) 2007-09-21 14:11:45 +00:00
Stanislav Malyshev
f9d32b3685 MFB: disallow setting mail.force_extra_parameters from .htaccess 2007-09-13 20:06:15 +00:00
Derick Rethans
f009a49ff4 - We have to store the original (allocated) pointer here as it was freed after
the pointer itself was modified, otherwise we'll get an invalid free error
  here.
2007-09-04 11:19:33 +00:00
Jani Taskinen
891a4478f2 ws 2007-08-31 08:35:07 +00:00
Jani Taskinen
210c7781fc ws fixes 2007-08-31 08:13:07 +00:00
Jani Taskinen
31dd0907c0 ws + apify cfg_get_entry 2007-08-31 08:09:41 +00:00
Jani Taskinen
239fd2f36f - Moved the php.ini related function protos where they belong 2007-08-31 07:47:41 +00:00
Jani Taskinen
55956bb99b ws 2007-08-31 07:43:28 +00:00
Derick Rethans
a416772467 - Fixed allow_url_fopen_list/allow_url_include_list handling by making sure
the pointers are initialized. Thanks to Sara.
2007-08-28 12:12:02 +00:00
Stanislav Malyshev
201388e5ab fix proto 2007-08-16 23:53:40 +00:00
Antony Dovgal
7390cf6e22 resolve dir before calling mktemp/mkstemp
this is tested by ext/standard/tests/file/tempnam_variation2.phpt
2007-08-10 10:13:07 +00:00
Antony Dovgal
77701c003a 'I32' and 'I' support (per request by Marcus) 2007-08-03 14:30:59 +00:00
Antony Dovgal
df4cdcfc8f fix folding 2007-08-03 09:51:05 +00:00
Antony Dovgal
996f1baaab add I64 support to spprintf() (snprintf() already has it) 2007-08-03 09:46:50 +00:00
Stanislav Malyshev
d4cc7daba2 MF5: fix for access control with .htaccess 2007-08-03 01:40:05 +00:00
Stanislav Malyshev
e1fc2a87bf revert wrong fix 2007-08-01 23:54:06 +00:00
Johannes Schlüter
9adbc5a88b - Fix #42164 Internal Sendmail Support is ALWAYS disabled 2007-08-01 12:49:23 +00:00
Dmitry Stogov
11c5577116 Fixed EOF handling in case of reading from file opened in write only mode. 2007-07-25 16:34:27 +00:00
Antony Dovgal
e15f25709a fix ZTS build 2007-07-24 20:14:03 +00:00
Dmitry Stogov
9343c54040 Fixed bug #41984 (Hangs on large SoapClient requests) 2007-07-24 14:25:07 +00:00
Jani Taskinen
e5b9fd0d6c - Changed "display_errors" php.ini option to accept "stderr" as value which
makes the error messages to be outputted to STDERR instead of STDOUT with
  CGI and CLI SAPIs.
2007-07-24 14:18:47 +00:00
Jani Taskinen
cc745f1724 fix folding 2007-07-24 13:29:39 +00:00
Jani Taskinen
562a0629e4 - Fix compile warnings 2007-07-21 01:41:55 +00:00
Antony Dovgal
eb5e7540b4 use constant 2007-07-19 10:03:17 +00:00
Antony Dovgal
e593d7d611 add comment (the code is not that obvious indeed) 2007-07-18 11:46:28 +00:00
Jani Taskinen
11a1fa5b92 - Use correct macro name 2007-07-18 09:04:37 +00:00
Jani Taskinen
497218eedf ws fix 2007-07-17 13:29:25 +00:00
Jani Taskinen
97abf9d5dc - Fixed bugs #36796, #36918, #41371 (stream_set_blocking() does not work) 2007-07-17 13:27:38 +00:00
Jani Taskinen
869a00ee3f - Removed leftovers from nuking safe-mode 2007-07-16 12:58:23 +00:00
Jani Taskinen
41c6375840 - Moved the old regex functions to it's own extension: ereg 2007-07-15 19:50:07 +00:00
Jani Taskinen
12361c16b1 MFB: free error messages + ws fix 2007-07-15 15:20:29 +00:00
Jani Taskinen
7faedf9646 - Unused macros removed 2007-07-15 15:09:36 +00:00
Johannes Schlüter
c91907a515 - Always enable mail() function 2007-07-11 17:39:04 +00:00
Dmitry Stogov
eb5dab85c9 Unicode support 2007-07-11 15:17:59 +00:00
Dmitry Stogov
922f3d5512 Fixed wrong warning 2007-07-11 14:32:54 +00:00
Jani Taskinen
8e399854e6 - No return value for void function 2007-07-11 10:23:47 +00:00
Sascha Schumann
ad31680f34 - fix concurrent reader/writer use case
(we read, while the other process writes -> if we don't try
   read we won't notice that the file has been growing.)
2007-07-10 20:13:29 +00:00
Stanislav Malyshev
9993892a18 check if write is allowed before writing to error log 2007-07-10 18:42:01 +00:00
Dmitry Stogov
1f8c608320 Fixed symlink("", "somthing") and link("", "somthing") in ZTS mode 2007-07-10 13:21:31 +00:00
Dmitry Stogov
da28d1e673 wrong comments 2007-07-09 16:42:45 +00:00
Dmitry Stogov
f766275b7a 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-03 10:22:55 +00:00
Dmitry Stogov
740f5957ba Restore big exponent letter in var_export() ('1e300' -> '1E300') 2007-06-25 08:39:23 +00:00
Derick Rethans
ad8eca0b05 - Added the H modifier to create non-locale-aware non-fixed-precision float
representations.
- 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:19:27 +00:00
Dmitry Stogov
e6209db14c HTTP 500 is sent to browser in case of PHP error instead of blank page 2007-06-15 09:20:53 +00:00
Dmitry Stogov
613b37a73e (wrong previous patch) 2007-06-15 07:32:17 +00:00
Dmitry Stogov
1e87928766 Prevent crash in case of wrong arguments to CRT functions (dtrftime()) on PHP complead by MS VC8 2007-06-15 07:28:49 +00:00
Antony Dovgal
a9f6f71460 check return value of *time_r() functions for NULL
more checks will follow
2007-06-07 08:46:32 +00:00
Antony Dovgal
b445a2eaa2 fix HTTP_RAW_POST_DATA in Unicode mode 2007-06-05 11:24:37 +00:00
Antony Dovgal
71d7ee6d33 port the max_input_nesting_level ini option to Unicode mode 2007-06-05 11:24:13 +00:00
Antony Dovgal
ecd414c3b8 no register_globals in HEAD 2007-06-04 07:56:39 +00:00
foobar
feab02f3ed - Improved the error message for exceeding max_input_nesting_level. 2007-06-03 16:53:37 +00:00
Ilia Alshanetsky
7d74c2c3e6 MFB: Improved fix for MOPB-02-2007 2007-06-03 16:19:55 +00:00
Antony Dovgal
cd7750e4ba fix #41518 (file_exists() warns of open_basedir restriction on non-existent file) 2007-06-01 13:33:48 +00:00
Ilia Alshanetsky
e844eaedbb MFB 2007-05-29 21:06:04 +00:00
Ilia Alshanetsky
373ae24839 MFB 2007-05-28 23:52:13 +00:00
Ilia Alshanetsky
66526cee92 MFB 2007-05-28 23:00:25 +00:00
Rasmus Lerdorf
5c0389a6f8 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:19:05 +00:00
Antony Dovgal
c66d75a933 use correct constant 2007-05-19 12:52:31 +00:00
Scott MacVicar
b0856d961f Fixed bug #41390 (Clarify error message with invalid protocol scheme syntax) 2007-05-15 13:01:47 +00:00
Antony Dovgal
f6a01b2ace use estrdup() and plug the leak 2007-05-14 12:19:25 +00:00
Hannes Magnusson
e7c7f95ecd Fixed bug#41361 (shell_exec() does not find binaries) 2007-05-12 16:06:07 +00:00
Hannes Magnusson
c85e26cb06 MFB - use php_strtok_r() rather than strsep() 2007-05-10 19:51:19 +00:00
Dmitry Stogov
0ddb071abb Fixed bug #41304 (compress.zlib temp files left) 2007-05-08 12:08:41 +00:00
Nuno Lopes
018e610436 update pcre symbols list 2007-05-07 15:43:21 +00:00
Antony Dovgal
47d3276cd7 removed unused highlight.bg ini option 2007-04-26 09:39:03 +00:00
Dmitry Stogov
00e9c1b1bf ZTS fix 2007-04-25 14:18:15 +00:00
Antony Dovgal
e6e242f418 MFB: Fix crashes when SAPI handlers are overriden in dl()-ed extensions 2007-04-25 11:19:10 +00:00
Hannes Magnusson
f1e35024fb - Don't pick up php.ini from cwd on BSDs
- "Resolve" (with the help of $PATH) to /path/to/php and pick up
	the php.ini from there
2007-04-25 10:02:23 +00:00
Dmitry Stogov
2918cda494 Fixed crash on win32 in case of negative size 2007-04-18 14:23:35 +00:00
Dmitry Stogov
98423baf13 Fixed crash 2007-04-18 13:53:32 +00:00
Dmitry Stogov
44ac45fd92 Fixed endless loop in open_basedir check 2007-04-18 11:59:03 +00:00
Rob Richards
c88e2b7618 MFB: add file locking under windows
change win build to use common clock compat files
2007-04-18 09:48:07 +00:00
Dmitry Stogov
2908322c14 WIN64 support 2007-04-16 09:43:53 +00:00
Antony Dovgal
c94da398b9 add support for %I64(u|d) to sprintf() utilities 2007-04-12 22:00:56 +00:00
Antony Dovgal
a8e133eafa MFB: fix #40931 (open_basedir bypass via symlink and move_uploaded_file()) 2007-04-10 22:31:27 +00:00
Dmitry Stogov
8610b4f6cf Fixed 64-bit support 2007-04-09 15:39:16 +00:00
Dmitry Stogov
e43c55d20f ZTS fix 2007-04-09 15:35:49 +00:00
Antony Dovgal
8bb69d5e0d MFB: Avoid locks when appening to the error log file 2007-04-08 08:02:02 +00:00
Andrei Zmievski
dce63050b8 MFB 2007-04-06 19:27:15 +00:00
Antony Dovgal
b3352b6a04 drop deprecated funcs and change error level to E_WARNING 2007-03-28 10:22:33 +00:00
Antony Dovgal
39454ffdfa fix compile warning 2007-03-28 09:13:55 +00:00
Sara Golemon
98e832d29e Fix handling over overridden file:// wrapper 2007-03-06 20:04:05 +00:00
Marcus Boerger
bf8ea04c13 - Missed to add [ to meta char check 2007-03-03 23:56:43 +00:00
Marcus Boerger
c7faeb736a - Allow to retrieve flags with php_glob_stream_get_count()
- Detect meta chars in pathand switch to append mode so that path can
  actually changes for each entry
2007-03-03 23:41:10 +00:00
Marcus Boerger
ce1d14eae8 - Allow to get number of entries of a glob stream 2007-03-03 23:04:57 +00:00
Marcus Boerger
53e5a8894c - One more tab to go 2007-03-03 22:30:07 +00:00
Marcus Boerger
3666425b9b - Change to hex to help read-/maintainability 2007-03-03 22:28:21 +00:00
Marcus Boerger
3f5e89cf31 - Provide access to pattern used in glob 2007-03-03 21:38:25 +00:00
Marcus Boerger
0c52e058b0 - php_stream_is() requires php_glob_stream_ops to be public
- little bit of additional whitespace
2007-03-03 20:56:45 +00:00
Marcus Boerger
01220f548f - Add glob stream wrapper 2007-03-03 20:41:12 +00:00
Marcus Boerger
ff3a914147 -A stream wrapper might only allow directory access 2007-03-03 18:59:53 +00:00
Johannes Schlüter
65aca2f200 - Fix old behaviour, ob_list_handlers() should always return an array 2007-03-03 10:27:04 +00:00
Stanislav Malyshev
3a0d0d1f2d limit nesting level of input variables 2007-03-02 22:04:46 +00:00
Antony Dovgal
ce78040c39 fix CS/WS 2007-02-26 11:55:32 +00:00
Dmitry Stogov
5b2c00bfff ZTS fix 2007-02-26 10:22:44 +00:00
Nuno Lopes
8a03498f2d MFB: update pcre symbol list 2007-02-25 18:48:19 +00:00
Marcus Boerger
49add78645 - Make [v]s[nl]printf compatible with 5.2 versions and [v]spprintf of head 2007-02-24 18:33:03 +00:00
Marcus Boerger
1c66194f86 - Add [v]slprintf 2007-02-24 18:24:06 +00:00
Marcus Boerger
20a40063c5 - avoid sprintf 2007-02-24 16:25:58 +00:00
Sara Golemon
3b00d29d5a Add retry for interrupted reads and graceful handling for failed retries 2007-02-23 23:08:40 +00:00
Marcus Boerger
bbfce40c49 - Fix logic 2007-02-22 23:25:36 +00:00
Antony Dovgal
30dacafa72 implement PHP_STREAM_FLAG_NO_CLOSE and avoid hacks in plain wrapper 2007-02-21 21:56:45 +00:00
Antony Dovgal
be4b75b136 improve php_userstreamop_seek()
check for errors in stream_seek() and return correct status
2007-02-13 19:50:13 +00:00
Antony Dovgal
5a6d0f0424 use strdup() 2007-02-06 17:35:42 +00:00
Andi Gutmans
7b6523c8e6 - Make sure to be ANSI C compliant 2007-02-05 05:15:49 +00:00
Marcus Boerger
66398d4e3e - Fix memleak 2007-02-03 14:57:24 +00:00
Marcus Boerger
67206a2cbf - Fix mem/temp stream exports and readonlyissue 2007-02-03 14:45:54 +00:00
Michael Wallner
db22b925bf - don't do memory limit checks for chunk_size 2007-01-29 13:04:57 +00:00
Marcus Boerger
93918c7a7c - Add option support for temp/memory stream (adds ftruncate support) 2007-01-27 15:17:23 +00:00
Sara Golemon
cc1b19cf0e Expand allow_url_fopen/allow_url_include functionality 2007-01-24 21:43:47 +00:00
Marcus Boerger
27a4e7a2ea - Change hardcoded size to lentgh translation to use sizeof(UChar) as suggested by Andrei 2007-01-19 09:12:08 +00:00
Marcus Boerger
511351bf99 - We need to return the length not the byte size 2007-01-18 23:11:42 +00:00
Marcus Boerger
fcef8d4836 - Fix [v]uspprintf()
- Add [v]zspprintf
2007-01-18 21:39:50 +00:00
Nuno Lopes
22fbaf2d6c MFB: use only 2 bits 2007-01-18 16:06:28 +00:00
Antony Dovgal
53e179ea11 fix fodling, mark set_time_limit() unicode safe 2007-01-18 12:37:44 +00:00
Andrei Zmievski
94123c919e Update PHP API version.
# Wonder why it hasn't been done already.
2007-01-16 22:18:39 +00:00
Marcus Boerger
1c60406349 - Add more unicode stuff 2007-01-16 20:36:04 +00:00
Marcus Boerger
99bd9f758a - Help streams debugging 2007-01-15 22:19:33 +00:00
Antony Dovgal
902e6583d9 add trailing '\0' to stream hashes 2007-01-15 17:06:52 +00:00
Antony Dovgal
3868c1533e include \0 to the hash
it does matter because we use these strings in phpinfo()
2007-01-15 14:59:40 +00:00
Marcus Boerger
25095070cf - Use relay to aid debugging 2007-01-14 19:13:34 +00:00
Marcus Boerger
672eae9c90 - Fix readonly mode to 'rb' 2007-01-14 19:09:55 +00:00
Hannes Magnusson
61b4b4b628 MFB: Fix build (wharmby at uk dot ibm dot com) 2007-01-12 14:34:46 +00:00
Antony Dovgal
9efc4483c0 plug newly added leak 2007-01-12 09:10:05 +00:00
Ilia Alshanetsky
e5a2796223 MFB:
Fixed bug #40098 (php_fopen_primary_script() not thread safe).
	Adjusted previous fixes for similar issue to handle sysconf() failures
2007-01-12 01:50:43 +00:00
Antony Dovgal
8c64f4279b use closesocket() on Win32 and close() on *nix 2007-01-11 15:51:29 +00:00
Sara Golemon
53333166fc Add convenience function for openeing files with unicode names 2007-01-10 22:43:17 +00:00
Marcus Boerger
54917a290b - MFH (Ilia's changes) 2007-01-09 18:38:38 +00:00
Nuno Lopes
42fc7a07ba make a var static 2007-01-06 20:43:51 +00:00
Sebastian Bergmann
3717df72ae Bump year. 2007-01-01 09:29:37 +00:00
Ilia Alshanetsky
e88897ec7b MFB: Fixed bug #39984 (redirect response code in header() could be ignored
in CGI sapi).
2006-12-31 19:22:17 +00:00
Ilia Alshanetsky
7c161a1fe6 MFB: strcat() stuff 2006-12-28 15:10:54 +00:00
Antony Dovgal
fbf05e4b70 use strlcat() 2006-12-28 12:18:47 +00:00
Antony Dovgal
8dce10427f use strlcat() and a bigger buffer 2006-12-28 12:01:14 +00:00
Antony Dovgal
867d6380a8 fix php_stream_u_get_line() macro 2006-12-27 15:22:46 +00:00
Ilia Alshanetsky
2dbfe66e4a MFB: safety checks 2006-12-26 17:40:20 +00:00
Dmitry Stogov
1ed6591f8a Fixed heap overflow 2006-12-25 13:11:48 +00:00
Antony Dovgal
4bfad779d7 fix ws, cs and overall code readability 2006-12-21 21:49:13 +00:00
Dmitry Stogov
d7b7678817 Default memory_limit value is set to 128M 2006-12-21 09:12:59 +00:00
Antony Dovgal
b07ab323ad apply correct fix (aka "oops!") 2006-12-21 01:18:14 +00:00
Antony Dovgal
7a6b75e8ac don't leak on error 2006-12-21 01:07:52 +00:00
Antony Dovgal
50791bce76 fix potential leak 2006-12-21 00:46:51 +00:00
Dmitry Stogov
a7c536fbcd Make MEMORY_LIMIT and ZEND_USE_MALLOC_MM to be always enabled. They don't make a
ny significant slowdown, but incrise maintainability a lot. Note that the setting of memory_limit wasn't changes (neither in main/main.c nor in php.ini) and it
still set to 16M.
2006-12-20 10:50:46 +00:00
Hannes Magnusson
460360ae53 MFB:
- Fixed incorrect function names on FreeBSD where inet_pton() was named
        __inet_pton() and inet_ntop() was named __inet_ntop()
- Fixed bug #39685 (iconv() - undefined function)
- Fixed bug #38852 (XML-RPC Breaks iconv)
2006-12-20 10:38:24 +00:00
Antony Dovgal
884fb55a29 -NAN should not be possible 2006-12-19 13:26:39 +00:00
Antony Dovgal
0632620997 inf->INF
nan->NAN
2006-12-19 13:15:30 +00:00
Dmitry Stogov
fb7237eebd Support for systems without locale.h 2006-12-19 13:13:48 +00:00