Pierre Joye
36e4c600c3
- merge crt warning change (r216594) and rename the ini to windows.show_crt_warning
2011-11-24 12:46:45 +00:00
Stanislav Malyshev
c05614fb6d
back to dev
2011-11-24 05:04:25 +00:00
Stanislav Malyshev
953016b6b9
5.4.0RC2
2011-11-24 05:03:22 +00:00
Pierrick Charron
8e2dcfd8b6
Fixed bug #60321 (ob_get_status(true) no longer returns an array when buffer is empty).
2011-11-18 00:16:58 +00:00
Xinchen Hui
89feaefce1
Fixed bug #60282 (Segfault when using ob_gzhandler() with open buffers)
2011-11-13 04:11:57 +00:00
Rui Hirokawa
cc74264764
MFH: fixed bug #60227 (header() cannot detect the multi-line header with CR(0x0D).)
2011-11-10 14:24:31 +00:00
Stanislav Malyshev
7f6c7422a8
back to dev
2011-11-10 06:27:37 +00:00
Stanislav Malyshev
07f2c01bd2
5.4.0 RC1
2011-11-10 06:26:25 +00:00
Stanislav Malyshev
93f654e64f
back to dev
2011-10-20 06:06:35 +00:00
Stanislav Malyshev
91a04638e6
5.4.0beta2
2011-10-20 06:05:30 +00:00
Xinchen Hui
1f78177e2b
Fixed bug #60038 (SIGALRM cause segfault in php_error_cb)
2011-10-16 03:00:51 +00:00
Pierre Joye
d435ddbe52
- be sure to check if the var ha not been removed between the two calls
2011-09-26 08:49:28 +00:00
Xinchen Hui
bf2dfb5fff
unused var
2011-09-24 01:05:43 +00:00
Xinchen Hui
ea74b9c212
Fixed bug #55758 (Digest Authenticate missed in 5.4)
...
the block I am removing should be removed along with the PG(saf_mod) condition.
since it is inside the PG(saf_mod) condition block.
2011-09-23 02:56:25 +00:00
Dmitry Stogov
a223328b52
Fixed bug #50982 (incorrect assumption of PAGE_SIZE size)
2011-09-15 11:30:17 +00:00
Xinchen Hui
c32aa35d58
Fix warning "implicit declaration of function `vasprintf'"
...
If There is a better fix, plz fixme.
2011-09-15 07:09:43 +00:00
Stanislav Malyshev
f5b8a3b40e
back to dev
2011-09-15 06:25:52 +00:00
Stanislav Malyshev
fe85ca8737
5.4.0beta
2011-09-15 06:24:18 +00:00
Kalle Sommer Nielsen
e1068269f0
MFT: Fix build on Windows
2011-09-13 14:35:28 +00:00
Dmitry Stogov
4a25a7740d
Fixed ZE specific compile warnings (Bug #55629 )
2011-09-13 13:29:35 +00:00
Pierre Joye
c1db9d4a87
- do not display the crt warnings anymore by default. It is enough to simply fail from a user land pov as it is the case on posix platforms
2011-09-13 10:38:12 +00:00
Hannes Magnusson
43fb787add
Fixed bug #55504 (Content-Type header is not parsed correctly on HTTP POST request
2011-09-07 16:19:09 +00:00
Gustavo André dos Santos Lopes
2acbe4c93e
- Fixed borked refactoring in r307437 (using SUCCESS/FAILURE return instead of
...
out parameter).
- Fixed signature of php_stream_copy_to_stream_ex to return int in 5.4/trunk
instead of size_t, as the function only returns SUCCESS/FAILURE.
2011-09-04 22:36:33 +00:00
Pierre Joye
687e310a46
- ws
2011-08-23 18:32:53 +00:00
Xinchen Hui
ba9546b8e5
Omitted GCC warning "comparison is always false"
2011-08-12 07:47:03 +00:00
Derick Rethans
7b84e7ea1c
- Turn on html_errors by default again in php.ini-production like it was in
...
PHP 5.3, but only generate docref links when the docref_root INI setting is
not empty.
2011-08-10 16:31:29 +00:00
Michael Wallner
daccb503b2
fix coverity issue 1054: missing break/return
2011-08-10 11:01:09 +00:00
Xinchen Hui
64fc565765
Avoiding strcpy, strcat, sprintf usage to make static analyzer happy
2011-08-09 12:16:58 +00:00
Pierrick Charron
97ac5d3f53
Remove unused variable
2011-08-09 02:42:25 +00:00
Pierrick Charron
cb1cd0b3ab
Remove unused variable
2011-08-09 02:37:02 +00:00
Rasmus Lerdorf
6379f87b31
Fix another Coverity warning by initializing this to NULL prior to the strtok_r call
2011-08-06 21:10:29 +00:00
Stanislav Malyshev
3e7ce20a5b
back to dev
2011-08-03 17:14:26 +00:00
Stanislav Malyshev
7c289f7f8e
5.4.0alpha3
2011-08-03 17:12:44 +00:00
Stanislav Malyshev
fa78f7a4c0
retore open_basedir check for unlink
2011-07-31 22:43:21 +00:00
Pierre Joye
e7d106f11d
- do not resolve the link if all we want is to open that file
2011-07-27 12:20:32 +00:00
Pierre Joye
db25201ffb
- Fixed bug 55124, recursive mkdir fails with current (dot) directory in path
2011-07-26 17:44:20 +00:00
Pierre Joye
3b6ad85fa9
- simplify
2011-07-26 09:27:53 +00:00
Pierre Joye
a02d8cfa33
- add expand_filepath_with_mode (not used anywhere yet but will be used for file ops (fopen&co) to avoid extra links resolution and other non required ops on open
2011-07-25 16:50:07 +00:00
Felipe Pena
f1f2a649e2
- Added new macro to be used in the end of zend_function_entry declaration (Gwynne)
2011-07-25 11:30:53 +00:00
Pierre Joye
45420bb669
- remove magic quotes support, functions are kept (see the NEWS entry for the details) for BC reasons but do not allow to set enable MQ, missing tests changes in 5.4
2011-07-22 11:56:20 +00:00
Pierre Joye
9805e1674a
- remove magic quotes support, functions are kept (see the NEWS entry for the details) for BC reasons but do not allow to set enable MQ
2011-07-22 11:25:30 +00:00
Pierre Joye
801d140782
- fix bug #54204 , Can't set a value with a PATH section in php.ini
2011-07-18 10:25:36 +00:00
Stanislav Malyshev
11a096c3cc
Back to -dev
2011-07-14 05:39:29 +00:00
Stanislav Malyshev
6f0c93da8e
5.4.0 alpha2
2011-07-14 05:37:40 +00:00
Ilia Alshanetsky
e80c55448c
Fixed bug #55014 (Compile failure due to improper use of ctime_r()).
2011-07-11 17:01:23 +00:00
Dmitry Stogov
adb87c8d06
Fixed bug #54332 (Crash in zend_mm_check_ptr // Heap corruption)
2011-07-11 09:47:59 +00:00
Hannes Magnusson
5ddd67d90b
Fixed bug#55084 (Function registered by header_register_callback is
...
called only once per process). (Hannes)
also fixed an issue when header()s are sent from the callback function
2011-07-06 20:38:58 +00:00
Gustavo André dos Santos Lopes
afe4570cda
- Fixed bug #52935 (call exit in user_error_handler cause stream relate core).
2011-07-05 16:09:06 +00:00
Derick Rethans
09607226d4
- Added a new PHPAPI function to return module_initialized:
...
php_get_module_initialized().
2011-06-24 11:19:34 +00:00
Felipe Pena
0372e6ad80
- Improved parse error messages
2011-06-23 23:00:53 +00:00
Ilia Alshanetsky
34d93f0c06
Zend Signal Handling
2011-06-22 14:23:21 +00:00
Moriyoshi Koizumi
2c6b2f64df
- Forgot to commit these.
2011-06-20 20:30:36 +00:00
Stanislav Malyshev
603252546b
Back to -dev
2011-06-19 20:15:33 +00:00
Stanislav Malyshev
ed87dbab91
5.4.0 alpha11
2011-06-19 20:11:54 +00:00
Pierre Joye
a8068a676b
- fix build
2011-06-18 02:24:01 +00:00
Pierre Joye
358316b2ed
- init win32 rng context once per process
2011-06-16 01:31:10 +00:00
Felipe Pena
907fd926e5
- Restore basename in filename on non Windows OS
2011-06-12 15:15:44 +00:00
Felipe Pena
32b5f8a1a3
- Added new parameter parsing option (p - for valid path (string without null byte in the middle))
...
# The tests will be fixed in the next commits
2011-06-06 21:28:16 +00:00
Ilia Alshanetsky
a311dc2443
Fixed bug #51997 (SEEK_CUR with 0 value, returns a warning).
2011-06-05 21:57:01 +00:00
Hannes Magnusson
9392b9cd73
Fixed bug #54946 (stream_get_contents infinite loop)
2011-05-29 12:29:19 +00:00
Stanislav Malyshev
5c9080d3a6
implement streams metadata API per RFC
2011-05-25 21:03:55 +00:00
Rasmus Lerdorf
75ec1fedc7
Add php_ignore_value() macro to suppress unused return value warnings
...
from gcc. There are times when we really don't care about the return
value and this will cleanly tell gcc.
2011-05-16 16:58:02 +00:00
Rasmus Lerdorf
27dd44db95
Fix a couple of warnings. Use %zu to printf a time_t and get_request_time
...
actually returns a double, not a time_t.
2011-05-16 15:52:31 +00:00
Pierre Joye
c0748c7856
- version
2011-05-15 20:07:33 +00:00
Gustavo André dos Santos Lopes
6d9d7af86f
- Fixed bug #54580 (get_browser() segmentation fault when the browscap ini
...
directive is set in activation time). This commit fixes this by adding a per
request parsing of the browscap file that's when get_browser is called the
first time and the directive is set on activation time.w
2011-05-01 18:37:20 +00:00
Gustavo André dos Santos Lopes
8dfe15a12e
- Fixed accidental change.
2011-05-01 04:16:28 +00:00
Gustavo André dos Santos Lopes
93f65cdeac
- Fixed bug #54623 (Segfault when when writing to a persistent socket after
...
closing a copy of the socket).
2011-05-01 03:57:01 +00:00
Pierre Joye
11941b3fd2
- not desired yt
2011-04-19 21:57:01 +00:00
Pierre Joye
600c9498f9
- fix build >(btw, has novell man pages too?)
2011-04-19 21:43:22 +00:00
Hannes Magnusson
e9bc36522a
Expose PHP_MANDIR
...
Useful for apps (like the pear installer, phd, .. etc) to install their manpages into the same dir as php did :]
2011-04-18 09:50:32 +00:00
Pierrick Charron
1368364469
Fix common typos in the source code (Reported in Bug #54065 )
...
# External libraries were excluded
# Thanks eitan at eitanadler dot com for the first patch :)
2011-04-03 21:46:52 +00:00
Pierre Joye
264d2b3480
- Fixed bug #48465 (sys_get_temp_dir() possibly inconsistent, windows fix
2011-03-28 16:43:49 +00:00
Ilia Alshanetsky
e42662039f
Fixed a crash inside dtor for error handling.
2011-03-24 12:57:38 +00:00
Gustavo André dos Santos Lopes
0de2e61cab
- Added socket_import_stream().
...
- Fixed socket_strerror.phpt
- Made php_set_sock_blocking return FAILURE on fcntl error.
- Made socket_set_block()/socket_set_nonblock() emit warning on error.
2011-03-22 00:44:23 +00:00
Gustavo André dos Santos Lopes
7f2937223d
- Make fclose() actually close stream, even when the resource refcount is > 1.
...
This reverts the fix for bug #24557 .
- Make php_stream_free delete the stream from the resources list, not merely
decrease its refcount, as a single call to zend_list_delete does.
#Not worth the risk merging to 5.3. While change #2 may prevent some segfaults,
#a quick and dirty survey to the codebase only showed calls to php_stream_close
#or php_stream_free on streams allocated in the same function, which would have
#refcount == 1. May be reconsidered.
2011-03-21 02:58:54 +00:00
Pierre Joye
406dd6e8ca
- windows only
2011-03-15 17:14:32 +00:00
Pierre Joye
9319359dc9
- make setlocale thread only, drastically reduce TS related crashes in error mgt and other parts like pcre, and actually a good thing (tm)
2011-03-15 17:13:44 +00:00
Pierrick Charron
4a0831743d
Remove unused variable
2011-03-13 05:25:45 +00:00
Moriyoshi Koizumi
b2ddc6de23
Fix ZTS build.
2011-03-06 07:06:55 +00:00
Moriyoshi Koizumi
cdb9ee0d1a
Fix zend.multibyte oddities. Hope this will address all the known problems.
2011-03-06 07:00:30 +00:00
Pierre Joye
12bdec05a4
- fix regression (carsten_sttgt@gmx.de)
2011-02-25 11:28:33 +00:00
Gustavo André dos Santos Lopes
2a6968e43a
- Fixed bug #54055 (buffer overrun with high values for precision ini
...
setting).
#This fix (for g/G/k/H modes) is done at a different level than that for the
#modes e/E/f/F, at a bit higher level and therefore with less coverage. I
#chose this because it addresses the problem where it is -- the calling function
#that passes a buffer too small to php_gcvt.
2011-02-21 06:53:24 +00:00
Gustavo André dos Santos Lopes
a3a5157286
- PHP_STREAM_OPTION_WRITE_BUFFER no longer disables the read buffer of a plain
...
stream when 0 is given as the value.
- PHP_STREAM_OPTION_WRITE_BUFFER no longer changes the chunk size in socket
streams.
- Added stream_set_chunk_size() function.
- Some signedness fixes.
- Test for commit r308474, now that it's possible to actually test it.
2011-02-19 01:28:37 +00:00
Gustavo André dos Santos Lopes
3759331276
- Changed return value in userspace stream set_option to "not implemented",
...
instead of failure.
#Currently, there's no way to test this, because the only operations that have
#a default implementation, set_chunk_size and set_read_buffer are either not
#exposed or, in the 2nd case, completely delegated to the user implementation,
#which can only return true/false, not "not implemented" (and not implementing
#the set_option method in the userspace stream results in error).
2011-02-18 17:53:26 +00:00
Gustavo André dos Santos Lopes
9bbc114b59
- Classes that implement stream wrappers can define a method called
...
stream_truncate that will respond to truncation, e.g. through ftruncate.
Closes feature request #53888 .
2011-02-17 00:25:32 +00:00
Gustavo André dos Santos Lopes
257b994fdc
- Changed default serialize_precision from 100 to 17, as discussed in internals.
2011-02-08 21:40:51 +00:00
Adam Harvey
2b4fb94e8e
Fix bug #53913 (Streams functions assume HAVE_GLOB is defined). Patch by Chris
...
Jones.
2011-02-04 10:47:41 +00:00
Kalle Sommer Nielsen
c5e86e5a8e
Fix ZTS build
2011-02-03 23:57:59 +00:00
Scott MacVicar
ca378eefa0
Add header_register_callback(), allows a userland function
...
to be called as all the headers are being sent and after all
of the default headers have been merged.
headers_list(), header_remove() and header() can all be used
inside the callback.
<?php
header('Content-Type: text/plain');
header('X-Test: foo');
function foo() {
foreach (headers_list() as $header) {
if (strpos($header, 'X-Powered') !== false) {
header_remove('X-Powered-By');
}
header_remove('X-Test');
}
}
$result = header_register_callback('foo');
echo "a";
2011-02-03 16:47:28 +00:00
Gustavo André dos Santos Lopes
1f49902999
- Fixed bug #53903 (userspace stream stat callback does not separate the
...
elements of the returned array before converting them).
2011-02-01 22:55:17 +00:00
Gustavo André dos Santos Lopes
c6ccc43285
- Fixed several comparisons that always result in true of false
...
due to signedness of one of the operands, either by removing
dead code or fixing it.
- Thrown some comments around in php_stream_get_record.
- See http://www.mail-archive.com/internals@lists.php.net/msg49525.html
2011-02-01 18:11:16 +00:00
Felipe Pena
96996ec557
- Removed accidental changes
2011-01-20 12:32:41 +00:00
Pierre Joye
5c38e6cc40
- should not have been applied
2011-01-20 12:23:30 +00:00
Pierre Joye
657c934513
- don't continue if no valid option value
2011-01-20 07:38:00 +00:00
Pierre Joye
966a82c776
- no need of assert here
2011-01-20 06:32:59 +00:00
Pierre Joye
af0c734f4f
- check if strdup succeeds
2011-01-20 06:23:35 +00:00
Pierre Joye
458ce08ab3
- path len check and fix buffer overrun
2011-01-19 14:21:46 +00:00
Ilia Alshanetsky
86550a9fed
Win32 build fix
2011-01-19 13:09:05 +00:00
Pierre Joye
95388b7cda
- 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
b5e12bd4da
Fixed variable re-declaration
2011-01-18 13:17:23 +00:00