Kalle Sommer Nielsen
ac73c9d8b4
Fixed the context parameter on copy() to actually have an effect
...
# After looking at the logs, Jani did a bad merge into 5.3, so that
# the context parameter sent to copy() actually isn't used at all. This
# relatively simple patch fixes that for trunk.
#
# See FR #42965
# internals:
# This changes the php_copy_*() decls to contain an additional parameter for stream contexts
2010-08-16 21:56:35 +00:00
Kalle Sommer Nielsen
4281addcb7
Implemented FR #52555 (Ability to get HTTP response code)
...
- Patch by Paul Dragoonis
2010-08-09 13:10:32 +00:00
Dmitry Stogov
a619b589b3
Use ZE API to modify/restore PG(magic_quotes_runtime). Removed overhead at request startup.
2010-07-05 14:32:29 +00:00
Felipe Pena
f9cc8faa3c
- Added BG(serialize) and BG(unserialize) initialization
2010-06-03 15:08:06 +00:00
Michael Wallner
11d24c1593
* implement new output API, fixing some bugs and implementing some feature
...
requests--let's see what I can dig out of the bugtracker for NEWS--
and while crossing the road:
* implemented new zlib API
* fixed up ext/tidy (what was "s&" in zend_parse_parameters() supposed to do?)
Thanks to Jani and Felipe for pioneering.
2010-05-31 10:29:43 +00:00
Felipe Pena
bcd9a87e2a
- Fixed bug #51791 (constant() aborts execution when fail to check undefined constant)
2010-05-13 02:13:30 +00:00
Pierre Joye
b9730786a7
- #51063 , implement getimagesizefromstring
2010-05-05 13:37:40 +00:00
Kalle Sommer Nielsen
dd8e59da8f
Removed safe_mode
...
* Removed ini options, safe_mode*
* Removed --enable-safe-mode --with-exec-dir configure options on Unix
* Updated extensions, SAPI's and core
* php_get_current_user() is now declared in main.c, thrus no need to include safe_mode.h anymore
2010-04-26 23:53:30 +00:00
Kalle Sommer Nielsen
9d395a4a2b
Removed import_request_variables(), this is not needed anymore without register_globals
2010-04-21 22:23:55 +00:00
Kalle Sommer Nielsen
3e6678de4d
Added missing zend_parse_parameters_none() call to sys_getloadavg()
2010-04-21 22:04:19 +00:00
Pierre Joye
95fcd75af2
- [doc] add stream_set_read_buffer, equivalent of stream_set_write_buffer for read operations. Fixing possible bad effects while reading devices. full context support is under work.
2010-04-12 08:25:50 +00:00
Kalle Sommer Nielsen
8087be61d0
* Changed the way removed ini directives are shown so its easier to add new ones
...
* Removed define_syslog_variables and its associated functions
2010-04-12 01:52:55 +00:00
Jani Taskinen
af49e58f51
- Reverted r296062 and r296065
2010-03-12 10:28:59 +00:00
Jani Taskinen
06f072cb5e
MFH: Improved / fixed output buffering (Michael Wallner)
2010-03-11 10:24:29 +00:00
Pierre Joye
e4065db32b
- #50690 , putenv does assign value when their length is one char
2010-01-24 13:49:47 +00:00
Pierre Joye
f386e268cd
- make getservbyname on windows behaves like *nux when proto is an empty string
2010-01-24 13:36:08 +00:00
Sebastian Bergmann
de93d96de4
sed -i "s#1997-2008#1997-2010#g" **/*.c **/*.h
2010-01-07 11:02:39 +00:00
Mikko Koppanen
207d9133ca
Changed stream_resolve_include_path to use zend_resolve_path
...
backported stream_resolve_include_path to PHP 5.3
backported stream_resolve_include_path test to PHP 5.3
2009-12-24 13:12:03 +00:00
Felipe Pena
a94558c855
- Added MAKE_COPY_ZVAL(ppzv, pzv) macro
2009-12-08 01:57:37 +00:00
Stanislav Malyshev
7beb1af8de
add realpath cache inspect functions
2009-12-08 01:35:08 +00:00
Jani Taskinen
f395a2e34f
- Fixed error_log() to be binary safe when using message_type 3 (message appended to file).
2009-11-22 18:31:01 +00:00
Ilia Alshanetsky
ef1731590a
Fixed bug #49855 (import_request_variables() always returns NULL).
2009-10-15 12:26:54 +00:00
Ilia Alshanetsky
a3430a6b24
Fixed bug #49757 (long2ip() can return wrong value in a multi-threaded applications).
...
# original patch by Florian Anderiasch
2009-10-05 14:45:54 +00:00
Scott MacVicar
ce24f04694
Fix build on platforms where crypt isn't always available
2009-08-12 09:18:41 +00:00
Scott MacVicar
050653466f
Merge chanes from head to improve DNS on OSX and allow usage of bind9 stuff with the bind8 compatibility layer.
2009-08-11 22:07:35 +00:00
Scott MacVicar
af5df4c813
Change dns.h to php_dns.h, part of my dns cleanup
2009-08-05 23:20:17 +00:00
Jani Taskinen
ae492897c6
- Removed unused code (replaced long time ago by url_scanner_ex.*
2009-07-26 22:59:46 +00:00
Kalle Sommer Nielsen
9fef343050
MFH: Fixed arginfo for array_map, patch by Matthew Fonda <matthewfonda@gmail.com>
2009-06-20 06:07:35 +00:00
Pierre Joye
e52e1fab4c
- silent warning
2009-06-15 08:32:38 +00:00
Matt Wilmas
1fa3b21c15
MFH: Fixed error message grammar:
...
- "cannot" instead of "can not" (meaning "also can")
- "than" instead of "then" (Hint: "then" should hardly be needed;
you're not telling the order in which to do something)
... plus removed a couple ending. dots
2009-06-06 02:40:49 +00:00
Ilia Alshanetsky
7b064cf252
Fixed bug #47365 (ip2long() may allow some invalid values on certain 64bit
...
systems)
2009-04-28 22:27:00 +00:00
Felipe Pena
476ea1ad69
- MFH: Fixed bug #48087 (call_user_method() invalid free of arguments)
2009-04-27 12:52:31 +00:00
Arnaud Le Blanc
13061cf0a0
Removed deprecation warning for ticks
2009-03-27 02:32:57 +00:00
Pierre Joye
274dad3b83
- MFH:
...
- add nanosleep
- expose nanosleep and usleep
- [DOC] time_ nanosleep and time_ sleep_ until available on windows
- change nanosleep signature to match posix one
2009-01-19 02:35:22 +00:00
Pierre Joye
59b6e456cb
- symlink, hardlink & co support (2.1/2 :)
2009-01-16 01:01:04 +00:00
Ilia Alshanetsky
4093573e5c
Fixed a bug inside mail() logging code that prevents log file from existing
...
outside of open_basedir
2009-01-13 21:29:12 +00:00
Pierre Joye
27b89ad09b
- remove PHP_FE(dl) (actually removing the commented PHP_FE, was commited with my dns patch for win)
2009-01-07 08:53:47 +00:00
Pierre Joye
3c967db4a1
- [MFH]
...
- [DOC] add support for all DNS function on Windows
- dns_check_record (and its alias checkdnsrr)
- dns_get_record
- IPV6 specific info not available yet:
. AAAA info is available only on vista/2k8 for now
. A6 info is not available
- dns_get_mx (and its alias getmxrr)
2009-01-06 20:48:21 +00:00
Ilia Alshanetsky
540242dc2d
[DOC]
...
Added gethostname() to return the current system host name.
2008-12-31 14:30:38 +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
Sebastian Bergmann
08659c2dcd
MFH: Bump copyright year, 3 of 3.
2008-12-31 11:15:49 +00:00
Christian Seiler
2e32354456
- MFH: Implemented http://wiki.php.net/rfc/rounding
2008-12-02 16:27:15 +00:00
Stanislav Malyshev
f1056a827c
MFB: init BG(page_uid) and BG(page_gid)
2008-11-29 00:44:33 +00:00
Arnaud Le Blanc
c5c9fd8b07
MFH: Missed file from commit for #44181 & #44182
2008-11-26 04:08:19 +00:00
Arnaud Le Blanc
c3f0c8dd3c
MFH
2008-11-24 19:17:34 +00:00
Stanislav Malyshev
45572a498a
restore BC for arrays
...
[DOC] natsort, natcasesort, usort, uasort, uksort, array_flip, array_unique
still won't work with objects
2008-11-24 18:12:17 +00:00
Felipe Pena
fc2fb50d09
- MFH: Added 'static' into ZEND_BEGIN_ARG_INFO_EX macro
2008-11-17 11:28:01 +00:00
Stanislav Malyshev
2a5079e64c
[DOC] Add option for error_log to send directly to SAPI logger
2008-11-13 18:48:25 +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
Arnaud Le Blanc
06119f4748
MFH: Added stream_context_get_params()
2008-11-13 05:47:47 +00:00
Arnaud Le Blanc
2276e85f13
MFH: Added parse_ini_string() function (grange at lemonde dot fr, Arnaud)
...
[DOC] new function parse_ini_string()
proto array parse_ini_string(string ini_string
[, bool process_sections [, int scanner_mode]])
Same as parse_ini_file() except that it takes a string instead of a
filename.
2008-11-05 21:35:02 +00:00
Felipe Pena
7a37fa2d6b
- Revert ZEND_BEGIN_ARG_INFO change
2008-11-02 21:19:39 +00:00
Felipe Pena
8f12025b21
- MFH: Added str_getcsv()
2008-11-02 18:24:34 +00:00
Felipe Pena
df10005563
- MFH: Added 'static' into ZEND_BEGIN_ARG_INFO_EX macro
2008-10-24 14:35:40 +00:00
Arnaud Le Blanc
d69dfa4b9f
MFH: initialize optional vars
2008-10-21 22:08:38 +00:00
Kalle Sommer Nielsen
9de7506f8e
Use PHP_DEP_FE instead of throwing an E_DEPRECATED manually inside define_syslog_variables() (Thanks Hannes!)
2008-10-16 23:19:13 +00:00
Jani Taskinen
80f8ad97fb
MFH:- Fixed bug #45956 (parse_ini_file() does not return false with syntax errors in parsed file)
2008-08-31 00:19:50 +00:00
Pierre Joye
2620304003
- MFH:
...
- drop bindlib usage on windows
- inet_pton, inet_ntop and inet_aton are always available (VC9 uses the CRT implementation, VC6 our own)
2008-08-23 19:22:10 +00:00
Marcus Boerger
41282aa813
- MFH Fix 64bit issue
2008-08-21 16:55:45 +00:00
Antony Dovgal
a30c01d698
revert for now
2008-08-21 08:37:19 +00:00
Antony Dovgal
898f19975c
fix build
2008-08-21 07:38:16 +00:00
Pierre Joye
50066470cd
- MFH: work around vc6 bug
2008-08-20 22:23:16 +00:00
Antony Dovgal
e7a28edcba
fix warning
2008-08-20 09:01:24 +00:00
Antony Dovgal
881d80382b
MFH: shutdown crypt correctly and fix memleak in ZTS mode
2008-08-19 15:14:46 +00:00
Jani Taskinen
e2451b6825
MFH: fix include
2008-08-18 10:49:59 +00:00
Pierre Joye
85309f686a
- MFH: this change was not part of the env patch
2008-08-18 07:50:10 +00:00
Pierre Joye
a87a90873c
- [DOC] MFH: make putenv behaves like unix putenv on Windows:
...
. FOO=1234 => set FOO to 1234
. FOO= => set FOO to an empty string
. FOO= => unset FOO
. Use Set/GetEnvironmnent variable only
2008-08-18 07:11:00 +00:00
Hannes Magnusson
59463c54ce
Fix arginfo
...
# Yes Jani, it is correct in HEAD :)
2008-08-16 11:11:46 +00:00
Hannes Magnusson
eea3226d58
MFH: [DOC] Added stream_context_set_default() function. (Davey Shafik)
2008-08-16 10:57:56 +00:00
Antony Dovgal
a61c0c8414
MFH: add quoted_printable_encode()
2008-08-14 10:12:21 +00:00
Antony Dovgal
9e7d254f68
fix build
...
compile before commit?
2008-08-14 09:41:16 +00:00
Kalle Sommer Nielsen
b27d8ccda7
MFH: Fix arginfo for nl2br
2008-08-14 09:27:33 +00:00
Kalle Sommer Nielsen
fcf11ba65e
MFH: Implemented feature request #34381 (nl2br() should have an option for XHTML/HTML compatible BR element)
2008-08-14 02:56:23 +00:00
Arnaud Le Blanc
c93fbf629b
MFH:
...
Added clear_realpath_cache and filename parameters to clearstatcache() (Jani,
Arnaud)
[DOC] clearstatcache() now defaults to not affect the realpath cache.
clearstatcache() now takes two optionnal parameters, clear_realpath_cache to
clear the realpath cache (defaults to false), and filename to clear only the
given filename from the cache.
2008-08-07 09:25:33 +00:00
Jani Taskinen
b17dc14f18
MFH: nuketh C++ comments
2008-08-03 12:15:55 +00:00
Felipe Pena
e304515ddb
- MFH: Added parameter TSRMLS_DC in zend_is_callable()
2008-08-02 04:46:07 +00:00
Johannes Schlüter
b9f7b21ec1
MFH (DOC] Add array_replace/array_replace_recursive (Mett Wilmas)
2008-07-31 20:18:17 +00:00
Pierre Joye
acd17a85dc
- MFH: missing in the previous crypt commit (shutdown frees the locking mechanism)
2008-07-29 17:28:41 +00:00
Felipe Pena
0fbe6a0c14
- MFH: Added TSRMLS_DC to apply_func_args_t and zend_hash_apply_with_arguments.
2008-07-24 19:52:24 +00:00
Dmitry Stogov
feb8580166
LSB parent/self forwarding
2008-07-24 09:42:18 +00:00
Felipe Pena
0bbed66ede
- MFH: New parameter parsing API
2008-07-23 19:34:35 +00:00
Felipe Pena
b22f47ee30
- Added arginfo
2008-07-20 14:28:41 +00:00
Felipe Pena
c3453925c5
- Deprecate ticks
2008-07-17 19:29:34 +00:00
Dmitry Stogov
833a2295d1
Support for closures
2008-07-17 09:53:42 +00:00
Hannes Magnusson
5b398bf78d
Remove E_DEPRECATED from get_magic_quotes_*()
2008-05-25 14:06:15 +00:00
Antony Dovgal
ea62779338
MFH: revert patch that causes invalid reads/crashes on Linux
2008-05-12 08:47:01 +00:00
Felipe Pena
3e56d46fa1
- Use PHP_DEP_FE and PHP_DEP_FALIAS (magic_quotes related functions)
2008-05-08 22:21:19 +00:00
Ilia Alshanetsky
f5a90feff0
Fixed bug #44836 (putenv() crashes, avoid direct reference of environ in
...
POSIX systems)
# Original patch by delphij at FreeBSD dot org
2008-05-06 18:01:32 +00:00
Antony Dovgal
a00f016648
add atanh() for real
2008-05-05 11:28:11 +00:00
Kalle Sommer Nielsen
f61731874a
Merge PHP_5_3 - Implemented Windows support for asinh(), acosh(), atanh(), log1p() and expm1()
...
[DOC] Merge_5_3
2008-05-05 07:29:41 +00:00
Ilia Alshanetsky
30437c1241
Fixed error verbiage and free function_name on success
2008-04-21 14:32:57 +00:00
Ilia Alshanetsky
239fa7f79f
Fixed a bug #44403 (register_tick_function() does not check for a valid callback)
2008-04-20 15:07:39 +00:00
Jani Taskinen
8401580c37
MFH
2008-04-15 09:02:40 +00:00
Jani Taskinen
85ad3851e9
MFH
2008-04-15 08:44:21 +00:00
Hannes Magnusson
f0b7073308
[DOC] Remove config_get_hash() & and add new boolean parameter to ini_get_all()
...
to list ini entries key=>current_value like config_get_hash() did.
2008-04-14 15:32:42 +00:00
Etienne Kneuss
a1e0945143
MFH: Implement forward_static_call(_array) to complete LSB. Patch by Mike Lively
2008-04-07 10:44:59 +00:00
David Soria Parra
6d66530ae9
MFH: Fix bug #44487 (call_user_method_array issues a warning when throwing an exception).
2008-03-20 00:52:46 +00:00
Antony Dovgal
e3b672bb23
MFH: make use of zend_atol()
2008-03-19 12:42:16 +00:00
Felipe Pena
84a8bb038a
MFH: New way for check void parameters
2008-03-10 22:15:36 +00:00
Marcus Boerger
d3e5026564
- MFH Add E_DEPRECATED (Lars Strojny, Felipe Pena, Marcus)
...
[DOC] Finally added deprecation messages
2008-02-23 17:06:22 +00:00