Commit Graph

938 Commits

Author SHA1 Message Date
Gustavo André dos Santos Lopes
a2e0e2564d - 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
6fba6737d5 - Fixed bug #53959 (reflection data for fgetcsv out-of-date). 2011-02-08 16:29:34 +00:00
Adam Harvey
521e5462ab Fix bug #53913 (Streams functions assume HAVE_GLOB is defined). Patch by Chris
Jones.
2011-02-04 10:47:41 +00:00
Stanislav Malyshev
9acdcd93a7 revert non-BC change in 5.3 2011-01-13 07:27:46 +00:00
Rui Hirokawa
279a65eb09 MFH: added an option to http_build_query for RFC-3986
based url-encoding.
2011-01-08 02:34:33 +00:00
Felipe Pena
927bf09c29 - Year++ 2011-01-01 02:19:59 +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
Kalle Sommer Nielsen
a109c3538f Fix my fix for arginfo, trunk patch will follow shortly 2010-08-17 13:34:11 +00:00
Kalle Sommer Nielsen
a780e73f62 Fix arginfo for copy(), see r302376 for more info 2010-08-16 21:59:42 +00:00
Felipe Pena
a8cad398fc - Fixed bug #51791 (constant() aborts execution when fail to check undefined constant) 2010-05-13 02:13:30 +00:00
Pierre Joye
b298ed5b70 - [doc] merge stream_set_read_buffer, equivalent of stream_set_write_buffer for read operations. Fixing possible bad effects while reading devices 2010-04-12 13:10:05 +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