1
0
mirror of https://github.com/php/php-src.git synced 2026-03-27 17:52:16 +01:00
Commit Graph

3255 Commits

Author SHA1 Message Date
Pierre Joye
af9406de8e - don't continue if no valid option value 2011-01-20 07:38:00 +00:00
Pierre Joye
7f3100976f - no need of assert here 2011-01-20 06:32:59 +00:00
Pierre Joye
28d95f8e63 - check if strdup succeeds 2011-01-20 06:23:35 +00:00
Pierre Joye
434f3654da - path len check and fix buffer overrun 2011-01-19 14:21:46 +00:00
Ilia Alshanetsky
e0c1332537 Win32 build fix 2011-01-19 13:09:05 +00:00
Pierre Joye
e3c920ecf3 - fix regression introduced in 5.3.4 in open_basedir on windows/novell with trailing fwd slash 2011-01-18 22:20:09 +00:00
Ilia Alshanetsky
2c657ee27e Fixed variable re-declaration 2011-01-18 13:17:23 +00:00
Pierre Joye
c8219466e4 - path len sanity check 2011-01-17 14:29:16 +00:00
Ilia Alshanetsky
c33795b25b Fixed variable re-declaration 2011-01-13 12:56:28 +00:00
Ilia Alshanetsky
3abf598b53 Added missing success check around chmod() for windows during temp file creation 2011-01-11 12:57:19 +00:00
Pierre Joye
a209aad993 - remove local redeclaration 2011-01-10 08:28:47 +00:00
Johannes Schlüter
df344ea7d6 - This will be PHP 5.3.6 2011-01-05 13:39:30 +00:00
Felipe Pena
927bf09c29 - Year++ 2011-01-01 02:19:59 +00:00
Ilia Alshanetsky
c946ff2f51 Fixed bug #53541 (format string bug in ext/phar). 2010-12-14 17:00:36 +00:00
Johannes Schlüter
78a2762e88 Back to -dev 2010-12-08 22:48:36 +00:00
Johannes Schlüter
3d76289c59 PHP 5.3.4 2010-12-08 21:38:51 +00:00
Jani Taskinen
686c7fec26 - CS + reorder to match trunk better, removed trailing dots from error messages 2010-12-03 16:04:24 +00:00
Jani Taskinen
c8e40e49d7 - Fix leaks and crash bug when passing the callback as variable 2010-12-03 13:20:13 +00:00
Johannes Schlüter
094bcdff8b - Back to -dev 2010-12-02 14:34:32 +00:00
Johannes Schlüter
f915973c1e - PHP 5.3.4RC2 2010-12-02 13:59:38 +00:00
Pierre Joye
c70397b3a9 - Fixed #53409, sleep() return NULL on Windows 2010-11-26 18:25:13 +00:00
Pierre Joye
2ba369cdfa - fixed #53352 2010-11-23 22:14:54 +00:00
Johannes Schlüter
63f65b6e8f Back to -dev 2010-11-18 19:03:59 +00:00
Johannes Schlüter
7a8d9ad16a - 5.3.4RC1 2010-11-18 17:57:54 +00:00
Pierre Joye
ce96fd6b07 - fix #39863, do not accept paths with NULL in them. See http://news.php.net/php.internals/50191, trunk will have the patch later (adding a macro and/or changing (some) APIs. Patch by Rasmus 2010-11-18 15:22:22 +00:00
Gustavo André dos Santos Lopes
a31f379367 - Reversed implementation of FR #44164, pending further consideration.
See rev #304903.
2010-11-18 04:09:02 +00:00
Gustavo André dos Santos Lopes
1045aa2a7c - Fixed bug #52820 (writes to fopencookie FILE* not commited when seeking the
stream).
2010-11-15 18:22:52 +00:00
Kalle Sommer Nielsen
4cc8073839 Added new constant; ZEND_MULTIBYTE to check whether PHP was compiled using --enable-zend-multibyte or not instead of sniffing phpinfo() (FR #52348) 2010-11-11 01:43:53 +00:00
Gustavo André dos Santos Lopes
8342c36f09 - Renamed php_stream_rep_nonstand_mode to
php_stream_mode_sanitize_fdopen_fopencookie, made it not
  exported and movied it from php_streams.h to
  php_streams_int.h.
2010-11-05 18:53:48 +00:00
Adam Harvey
b84e262f63 Fix bug #53226 (file_exists fails on big filenames). 2010-11-05 05:28:07 +00:00
Gustavo André dos Santos Lopes
68107ae1c3 - Fixed bug #53241 (stream casting that relies on fdopen/fopencookie fails
with streams opened with, inter alia, the 'xb' mode).
2010-11-05 01:29:08 +00:00
Gustavo André dos Santos Lopes
ee80871a15 - Fixed bug #53180 (post_max_size=0 not disabling the limit when the content
type is application/x-www-form-urlencoded or is not registered with PHP).
2010-10-27 14:56:51 +00:00
Gustavo André dos Santos Lopes
0086bc8a96 - Implemented request #44164, zlib.output_compression is now implicitly
disabled when the header "Content-length" is set.
#One could argue that any output handler could change the size of the
#response, so this exception for zlib.output_compression is an
#inconsistency. However, zlib.output_compression is presented as a
#performance setting, whose value should have no effect on the
#correctness of the scripts. This was not the case. Setting the
#header "content-length" and enabling zlib.output_compression was
#a recipe for infringing section 4.4 of RFC 2616.
2010-10-26 02:16:21 +00:00
Gustavo André dos Santos Lopes
14a54b903e - Fixed forward stream seeking emulation in streams that don't support seeking
in situations where the read operation gives back less data than requested
  and when there was data in the buffer before the emulation started. Also made
  more consistent its behavior -- should return failure every time less data
  than was requested was skipped.
- Small performance improvement by correcting off-by-one error that generate an
  invalid call to the seek handler or read handler. in _php_stream_seek.
2010-10-13 03:13:29 +00:00
Gustavo André dos Santos Lopes
817c28c867 - Implemented FR #50692, not uploaded files don't count towards
max_file_uploads limit.
- As a side improvement, temporary files are not opened for
  empty uploads and, in debug mode, 0-length uploads.
2010-10-04 01:27:33 +00:00
Gustavo André dos Santos Lopes
4b0927b042 - Fixed a small mistake in the fix for bug #50953 that made connection timeouts not be detected as such. 2010-10-02 18:32:20 +00:00
Pierre Joye
edb4351004 - Fixed possible flaw in open_basedir (CVE-2010-3436) 2010-09-28 13:29:33 +00:00
Felipe Pena
6ca2ea7109 - Fixed bug #49215 (make fails on glob_wrapper) 2010-09-10 21:33:50 +00:00
Pierre Joye
77d307ccbf - open_basedir symlink support for Windows 2010-09-10 17:45:13 +00:00
Adam Harvey
6e06a45f24 Fix bug #52802 (Out-of-date comment for
file_get_contents/php_stream_copy_to_mem) by updating the relevant comments.
2010-09-10 03:08:05 +00:00
Adam Harvey
bcea4e69bb Fix bug #52786 (PHP should reset section to [PHP] after ini sections). Patch by
Fedora at famillecollet dot com.
2010-09-09 05:11:05 +00:00
Pierre Joye
abd1af951c - fix the fix for bug #52323 2010-09-08 11:51:11 +00:00
Pierre Joye
b310ce9ccc - WS 2010-09-08 10:26:59 +00:00
Pierre Joye
ce82e028b2 - Fix bug #52323, return value of php_network_connect_socket should be set even if the caller does not care about the error_string 2010-09-08 10:25:40 +00:00
Pierre Joye
f696aece3f - fix bug #50953, socket will not connect to IPv4 address when the host has both ipv4 and ipv6 addresses 2010-09-07 09:47:36 +00:00
Pierre Joye
13fd8fcded - WS 2010-09-01 10:16:48 +00:00
Pierre Joye
87bf415853 - sb needed only in safemode 2010-09-01 10:13:46 +00:00
Pierre Joye
6396a3272c - add lstat support for Windows 2010-09-01 09:49:53 +00:00
Felipe Pena
c0840f18f3 - Fixed crash on non-Windows build 2010-08-30 21:34:54 +00:00
Pierre Joye
c55632007e - fix possible leak and error while fetching PHPRC 2010-08-30 17:05:56 +00:00