Commit Graph

1085 Commits

Author SHA1 Message Date
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
Marcus Boerger
f3d7570197 - MFH Rename it again
[DOC]
- MFH Add config_get_hash()
2008-02-03 14:45:00 +00:00
Marcus Boerger
fa94dabd97 - MFH Rename dump_config_hash() to get_config_hash() as it doesn't dump 2008-02-03 14:35:59 +00:00
Felipe Pena
79cfa91a43 MFH: New parameter 'before_needle' 2008-02-01 12:28:44 +00:00
David Coallier
a3c09d611c - MFH (lcfirst())
- Initial test for lcfirst
2008-01-19 19:27:22 +00:00
Sebastian Bergmann
d1dded8751 MFH: Bump copyright year, 2 of 2. 2007-12-31 07:17:19 +00:00
Hannes Magnusson
024fc2c77a MFH: - Add support for optional values
MFH: - Add support for = as seperator
2007-11-21 10:24:22 +00:00
Johannes Schlüter
cbf466a953 MFH: Add stream_supports_lock() function (Benjamin Schulz) 2007-11-20 22:17:01 +00:00
Hannes Magnusson
0aae13f9d2 MFH: Allow numeric options & tests 2007-11-15 13:13:21 +00:00
Hannes Magnusson
35ba8020cd Fixed bug#43293 (Multiple segfaults in getopt()) 2007-11-14 14:42:25 +00:00
Marcus Boerger
5aa7108eb2 - MFH Add glob stream wrapper
[DOC] The glob stream wrapper allows stuff like this:
php -r '$it = new DirectoryIterator("glob://ext/spl/*.c");
        foreach($it as $f) var_dump($f);'
2007-11-06 12:12:58 +00:00
Jani Taskinen
b489251177 - MFH from HEAD:
. Folding tags
  . Parameter parsing
  . SPL debug info
  . array function improvements (not all yet)
  . Improvements to function calling with call_user_* functions
  . Improvements to debugging info in var_dump/print_r
# I propably forgot already something but this all was pretty close tied
# to each other so it wasn't possible to do it in parts.
2007-11-02 19:40:39 +00:00
Dmitry Stogov
fa6e5df126 Fixed move_uploaded_file() to always set file permissions of resulting file according to UMASK (Andrew Sitnikov) 2007-10-22 07:37:37 +00:00
Yiduo (David) Wang
4b4d634cb9 MFH: Added macros for managing zval refcounts and is_ref statuses 2007-10-07 05:22:07 +00:00
Jani Taskinen
aa3eee1dce MFH:- Moved the old regex functions to own extension: ereg 2007-10-05 15:00:09 +00:00
Johannes Schlüter
32966bb37d - pass the adress not the value 2007-10-01 20:36:01 +00:00
Jani Taskinen
2bc631fb40 MFH:- Added common getopt implementation to core.
MFH:- Added long-option feature to getopt().
MFH:- Made getopt() available on win32 systems.
MFH:  Patch by: David Soria Parra <dsp@php.net>
[DOC]: These changes will be available from 5.3+

# Note: Fixed also tests and synced basic_functions.c with HEAD.
2007-10-01 12:40:54 +00:00
Dmitry Stogov
f37e408ed8 Support for namespaces 2007-09-28 19:53:42 +00:00
Jani Taskinen
09b6f37f20 MFH:
- 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)
2007-09-28 02:05:10 +00:00
Dmitry Stogov
6c810b0d4c Improved memory usage by movig constants to read only memory. (Dmitry, Pierre) 2007-09-27 18:00:48 +00:00
Derick Rethans
e280715150 - MFH: Add a comment why not ~0 or -1. 2007-09-06 13:28:05 +00:00
Derick Rethans
152d379950 - MFH: Fixed bug #42512 (ip2long('255.255.255.255') should return 4294967295 on
64-bit PHP).
2007-09-01 18:38:39 +00:00
Jani Taskinen
cac7e107c6 MFH: ws + protos 2007-08-31 10:46:19 +00:00
Jani Taskinen
eb4a23c5ca - Check the length too (just like in HEAD) 2007-08-16 23:05:43 +00:00
Jani Taskinen
a3e6f47ea1 MFH:- Fix bug #41946 (ip2long("") should return FALSE) 2007-08-16 22:17:10 +00:00
Antony Dovgal
93af1c1f84 MFH: fix #41989 (move_uploaded_file() & relative path in ZTS mode) 2007-07-19 15:49:45 +00:00
Johannes Schlüter
dc8d09bbbd - MFH: Always enable mail() function 2007-07-11 17:36:56 +00:00
Dmitry Stogov
539f67ed8f 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-09 17:27:24 +00:00
Antony Dovgal
ce22f44493 MFH: fix #41445 (parse_ini_file() has a problem with certain types of integer as sections) 2007-06-26 12:10:08 +00:00
Antony Dovgal
5daef5cd4a fix #41773 (php_strip_whitespace sends headers with errors suppressed)
MFB is not needed, output buffering in HEAD handles this situation correctly
2007-06-25 21:12:47 +00:00
foobar
f7d22b60f0 MFH:- Added php_ini_loaded_file() function which returns the path to the actual
php.ini in use.
2007-06-09 11:44:08 +00:00
Hannes Magnusson
cdd37424a8 Update proto&arginfo for double_encode in htmlspecialchars()&htmlentities() 2007-05-22 15:38:27 +00:00
Antony Dovgal
a69e6e2c79 MFH: improve variable name checks
add more tests
2007-05-22 14:34:23 +00:00
Rasmus Lerdorf
52c2d6c235 Get rid of a useless RINIT and an empty RSHUTDOWN on non-Windows 2007-05-17 06:38:13 +00:00
Antony Dovgal
7efde494d7 MFH: flush output buffer when/if highlight_string()/php_strip_whitespace()/highlight_string() fail 2007-05-10 16:28:11 +00:00
Antony Dovgal
16129b7024 MFH: fix putenv("var") (i.e. unset) on BSD systems
add test
2007-04-17 20:34:14 +00:00
Antony Dovgal
562f886ecb MFH: fix #41037 (unregister_tick_function() inside the tick function crash PHP) 2007-04-10 09:37:09 +00:00
Ilia Alshanetsky
1453879587 Added additional checks for long input arrays inside
import_request_variables().

# Missing checks identified by Stefan Esser
2007-03-10 19:20:16 +00:00
Ilia Alshanetsky
b3b6db3f03 Add _SESSION to checklist 2007-03-09 01:48:56 +00:00
Ilia Alshanetsky
0fa1427c6e Fixed a possible super-global overwrite inside import_request_variables().
# Reported by Stefano Di Paola
2007-03-09 01:42:20 +00:00
Antony Dovgal
af1843f866 MFH: fix #40752 (parse_ini_file() segfaults when a scalar setting is redeclared as an array) 2007-03-08 00:44:23 +00:00
Dmitry Stogov
f027aef074 Fixed possible crash in putenv() on win32 2007-02-22 08:23:17 +00:00
Stanislav Malyshev
462d545a63 fix putenv - if there was no previous, remove variable from environ 2007-02-21 03:03:37 +00:00
Dmitry Stogov
a3493bd3de Optimize out RINIT() 2007-02-16 16:35:04 +00:00
Dmitry Stogov
0262f05c17 Fixed return value of assert_options(ASSERT_CALLBACK) and possible crash (Andy Wharmby) 2007-02-16 13:12:10 +00:00
Sebastian Bergmann
4223aa4d5e MFH: Bump year. 2007-01-01 09:36:18 +00:00
Dmitry Stogov
53b088e60c Make MEMORY_LIMIT and ZEND_USE_MALLOC_MM to be always enabled. They don't make any 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:49:33 +00:00
Hannes Magnusson
1e19ee8785 - 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:34:36 +00:00
Dmitry Stogov
03312cc0d9 Added function stream_socket_shutdown(). It is a wraper for system shutdown() function, that shut downs part of a full-duplex connection 2006-12-19 08:58:58 +00:00
Ilia Alshanetsky
a055e93a27 optimize out strlen() calls
# Patch by Matt Wilmas
2006-12-13 15:31:47 +00:00
Edin Kadribasic
42e1c9a1e0 Fixed by #39751 by KevinJohnHoffman at gmail dot com 2006-12-10 01:23:41 +00:00
Hannes Magnusson
d9f03aac34 MFH: sys_get_temp_dir() 2006-12-09 18:00:52 +00:00
Stanislav Malyshev
6b651f8e60 Improve tolower()-related functions on Windows and VC2005 by caching locale and using
tolower_l function.
# Gives 10-18% speedup on bench.php
# Does not change behaviour for non-windows
2006-12-04 18:37:15 +00:00
Ilia Alshanetsky
e6a3431315 Fixed bug #39623 (thread safety fixes on *nix for putenv() & mime_magic). 2006-11-26 17:02:13 +00:00
Dmitry Stogov
532b02cd19 Implemented registry cache that prevent registry lookup on each request. In case of modification of corresponding registry-tree PHP will reload it automatic. 2006-11-10 11:42:07 +00:00
Hannes Magnusson
050f94f746 MFH: Fix double "wron param count" messages 2006-11-03 14:46:48 +00:00
Ilia Alshanetsky
bc59416ff2 Fixed bug #38934 (move_uploaded_file() cannot read uploaded file outside of
open_basedir).
2006-10-13 01:42:20 +00:00
Hannes Magnusson
39219cf7fe protos 2006-10-02 07:58:13 +00:00
Ilia Alshanetsky
154f70acf1 Fixed bug #38993 (Fixed safe_mode/open_basedir checks for
session.save_path, allowing them to account for extra parameters).
2006-10-01 20:58:02 +00:00
Ilia Alshanetsky
af993553fb array_key_exists() should not work by by-ref 2006-09-19 23:44:30 +00:00
Antony Dovgal
04da058284 MFH: fix leak when call to shutdown function fails 2006-09-15 09:12:17 +00:00
Antony Dovgal
c2a38c607b more z/Z fixes 2006-08-31 14:41:24 +00:00
Antony Dovgal
7384c12b11 MFH: make sure ext/standard is down before ext/session (fixes #38534) 2006-08-28 19:57:57 +00:00
Antony Dovgal
ecfa880820 MFH: set BG(locale_string) to NULL on shutdown (partly fixes #38534) 2006-08-28 18:58:47 +00:00
Hannes Magnusson
2d3056e94f MFH:
- Fixed bug #33895 (missing math constants).
 - Remove M_PI from math.c (its defined in php_math.h)
2006-08-27 19:14:43 +00:00
Antony Dovgal
a0371df33f MFH: fix compile warning on Solaris, getloadavg() is in sys/loadavg.h there 2006-07-26 08:57:44 +00:00
Hannes Magnusson
d5ec319367 MFH: Update protos & arginfo for memory_get_usage() & memory_get_peak_usage() 2006-07-25 16:41:04 +00:00
Michael Wallner
46f21b8a32 MFH: added error_get_last() function 2006-07-19 12:25:46 +00:00
Marcus Boerger
87c64280b0 - MFH Added array_fill_keys(). (Marcus, Mathew W) 2006-07-15 10:21:10 +00:00
Hannes Magnusson
7af33194e5 MFH: arginfo fixes 2006-07-02 00:11:06 +00:00
Hannes Magnusson
6910275d51 MFH reference fixes 2006-06-30 18:17:38 +00:00
Ilia Alshanetsky
24ac7931cd Improved safe_mode check for the error_log() function. 2006-06-28 22:08:42 +00:00
Hannes Magnusson
297a3d8e4c arginof fixes 2006-06-27 22:14:18 +00:00
Hannes Magnusson
52fd069ff4 Fix arg info (php6 features) 2006-06-27 21:42:16 +00:00
Hannes Magnusson
fd1679e7f0 nuke obsolete arginfo 2006-06-26 22:47:31 +00:00
Hannes Magnusson
e06665c961 MFH: argument info 2006-06-26 22:41:22 +00:00
Hannes Magnusson
223d122cae MFH: use the ZEND_ACC_DEPRECATED flag rather than custom warnings 2006-06-26 16:33:39 +00:00
Rasmus Lerdorf
862c4d2345 MFH: fix sapi_getenv() leak 2006-06-26 13:15:20 +00:00
Hannes Magnusson
7b6bf33b03 MFH: image_type_to_mime_type() 2006-06-25 21:06:39 +00:00
Ilia Alshanetsky
5186ee9c59 Added memory_get_peak_usage() function for retrieving peak memory usage of
a PHP script.
2006-05-30 14:51:20 +00:00
Ilia Alshanetsky
53988d8cf5 Fixed bug #37563 (array_key_exists performance is poor for &$array). 2006-05-24 23:14:08 +00:00
Dmitry Stogov
14f6b9149d Optimized zend_try/zend_catch macroses (eliminated memcpy()) 2006-05-19 06:09:15 +00:00
Ilia Alshanetsky
4ab6eb3d19 MFH: Fixed bug #36630 (umask not reset at the end of the request). 2006-05-14 16:06:48 +00:00
Marcus Boerger
2100a86198 - MFH Initial support for RFC2397 2006-05-13 17:58:58 +00:00
Ilia Alshanetsky
3edb5a8b6d Fixed an unlikely, but possible memory leak. 2006-04-03 13:46:11 +00:00
Antony Dovgal
bace0def1e fix spelling in error messages:
greater/less thEn -> greater/less thAn
2006-04-03 09:14:33 +00:00
Antony Dovgal
b2bbaca8e8 shutdown syslog module before freeing basic_globals 2006-03-20 23:32:58 +00:00
Antony Dovgal
f789f0e384 .. and add missing #ifdef 2006-03-20 23:06:00 +00:00
Antony Dovgal
3309d14af2 fix wrong mshutdown func params 2006-03-20 23:04:30 +00:00
Antony Dovgal
edbfb9c2c7 fix #36808 (syslog ident becomes garbage between requests) 2006-03-20 23:03:11 +00:00
Derick Rethans
f87e7b8bab - Added lchown() and lchgrp() to change user/group ownership of symlinks. 2006-03-05 18:57:54 +00:00
Brian France
9f53c8e313 MFH: fixed bug #35594 for all systems. "optind = 0" doesn't work on FreeBSD, but "optind = 1" seems to work on all systems (bug #36091) 2006-02-23 03:51:46 +00:00
Ilia Alshanetsky
f5241f165f Fixed bug #36458 (sleep() accepts negative values). 2006-02-21 15:32:06 +00:00
Rasmus Lerdorf
bab48a0906 Rename getloadavg to sys_getloadavg 2006-02-18 05:41:59 +00:00
Wez Furlong
a8be85ce7e add getloadavg() function that has been running in production on rs1.php.net
for a couple of years.
2006-02-16 22:49:13 +00:00
Antony Dovgal
2108714a2b MFH: improve usleep(): use new param parsing API, check for negative values
(related to #36410)
2006-02-16 10:13:52 +00:00
Frank M. Kromann
80cc4867e3 Export symbols that will allow building WDDX as shared object 2006-01-28 06:18:01 +00:00
Antony Dovgal
0851c649d1 MFH: add missing ifdefs 2006-01-13 13:04:27 +00:00
Derick Rethans
88268c6bcc - MFH: Fixed bug #35887 (wddx_deserialize not parsing dateTime fields properly).
- MFH: Fixed bug #35885 (strtotime("NOW") no longer works).
- MFH: Fixed bug #33789 (Many Problems with SunFuncs).
- MFH: Fixed bug #33671 (sun_rise and sun_set don't return a GMT timestamp if one
  passes an offset).
- MFH: Fixed bug #32820 (date_sunrise and date_sunset don't handle GMT offset
  well).
- MFH: Fixed bug #30937 (date_sunrise() & date_sunset() don't handle endless
  day/night at high latitudes).
2006-01-04 21:31:35 +00:00
foobar
5bd93221a8 bump year and license version 2006-01-01 12:51:34 +00:00
Marcus Boerger
4bb39ad2a5 - Fix is_callable usage 2005-12-16 22:18:11 +00:00
Antony Dovgal
418223e2f6 fix #35713 (getopt() returns array with numeric strings when passed options like '-1') 2005-12-16 20:09:16 +00:00
Ilia Alshanetsky
b30602b78b Fixed bug #35594 (Multiple calls to getopt() may result in a crash). 2005-12-08 03:25:22 +00:00
Ilia Alshanetsky
d5bb2e38ef Undo accidental revert of patch for bug #34729 2005-12-07 17:36:17 +00:00
foobar
d0a54af4c5 MFH: Nuke php3 legacy 2005-12-05 22:54:01 +00:00
Ilia Alshanetsky
2994c23670 MFH:
Added 2nd optional parameter to parse_url() that allows retrieval of
individual URL components.
Added 3rd optional parameter to http_build_query() that allows custom param
separator.
2005-12-04 17:44:27 +00:00
Dmitry Stogov
8768ab94b3 Fixed bug #34729 (Crash in ZTS mode under Apache) 2005-12-01 11:48:17 +00:00
Ilia Alshanetsky
820b5aa9e4 Fixed bug #35425 (idate() function ignores timezone settings). 2005-11-29 20:19:56 +00:00
foobar
db77890bbd MFH: - Fixed bug #35243 (php_mblen() crashes when compiled with thread-safety on Linux) 2005-11-20 18:07:28 +00:00
Dmitry Stogov
8bd18e174b Fixed bug #35229 (call_user_func() crashes when arguement_stack is nearly full) 2005-11-16 09:31:21 +00:00
Ilia Alshanetsky
57510065ce Fixed bug #35022, #35019 (Regression in the behavior of key/current
functions).
2005-10-30 18:03:30 +00:00
Ilia Alshanetsky
941ac55d2f Removed unnecessary component that accidentally snuck-in 2005-09-29 16:39:37 +00:00
Ilia Alshanetsky
09540ee965 MFH:
Fixed possible crash and/or memory corruption in import_request_variables()
Fixed potential GLOBALS overwrite via import_request_variables().
2005-09-29 16:30:51 +00:00
Ilia Alshanetsky
c221e148d7 MFH: MFH: Make key() and current() take argument by value. 2005-09-13 13:24:38 +00:00
Dmitry Stogov
ebd4ab4d78 Fixed bug #25359 (array_multisort() doesn't work in a function if array is global or reference) 2005-08-10 12:02:52 +00:00
foobar
23e671a51e - Bumber up year 2005-08-03 14:08:58 +00:00
Derick Rethans
8aa3554d19 - Reimplemented time(), getdate() and localtime() functions with new datetime
library.
2005-07-03 20:45:08 +00:00
Derick Rethans
0ef991e5ae - Fixed bug #33532 (Different output for strftime() and date()).
- Re-implemented checkdate(), strftime() and gmstrftime() with the new timelib
  code.
2005-07-03 19:14:55 +00:00
Derick Rethans
ed02f202f0 - Fixed bug #30096 (gmmktime does not return the corrent time).
- Re-implemented mktime and gmmktime with new date time library.
- Added testcase for bug #30096, updated test cases for E_STRICT warning of
  is_dst parameter usage for mktime/gmmktime.
2005-07-03 14:27:31 +00:00
Derick Rethans
e155585e6e - Reimplemented date and gmdate with new timelib code.
- Removed old date/gmdate implementations.
- Moved date() related testcases to ext/date/tests.
- Implemented bug #33452.
- Fixed testcase for bug #27719 - there is no timezone called "EST5DST".
2005-06-30 21:38:06 +00:00
Andrei Zmievski
ec09711101 Fix FCI cache for array_walk and user array compare functions. Bug
#33286. (Patch from m.bretz@metropolis-ag.de)
2005-06-15 20:51:33 +00:00
Derick Rethans
4fb4cac65c - Add my new timelib and ext/date. For now only strtotime() makes use of this. 2005-06-14 21:32:29 +00:00
foobar
396affc81e nuked unused header file 2005-05-24 15:24:33 +00:00
Antony Dovgal
d5bb03b11a fix bugs #32742 (segmentation fault when the stream with a wrapper is not closed),
#32171 (Userspace stream wrapper crashes PHP)
2005-05-16 08:37:14 +00:00
Andrey Hristov
0e459321bf move math_standard_deviation and math_variance to the stats PECL extension 2005-05-13 10:11:19 +00:00
Andrey Hristov
be3a9ccdf3 add function array_product() 2005-05-11 11:43:11 +00:00
Andrey Hristov
f12b14078e rename math_std_dev to math_standard_deviation (the API wasn't published
yet)
2005-05-10 12:50:53 +00:00
Andrey Hristov
7a4eb25870 add also math_variance() which uses the same calculation as math_std_dev() 2005-05-02 12:12:04 +00:00
Andrey Hristov
fb0c19da1c add math_std_dev() 2005-05-02 09:17:49 +00:00
Dmitry Stogov
c81db6bc56 Fixed bug #29210 (Function: is_callable - no support for private and protected classes) 2005-04-27 15:45:36 +00:00
foobar
4c3fdcaa4e - Fixed bug #32647 (Using register_shutdown_function() with invalid callback can crash PHP) 2005-04-21 14:44:29 +00:00
Ilia Alshanetsky
6f539ae99e Added time_sleep_until() function, which is a high precision mechanism of
making a script sleep until specified timestamp.
2005-04-10 16:25:11 +00:00
Ilia Alshanetsky
1d60050312 Removed php_check_syntax() function, it never worked properly. For now
use shell_exec("php -l script_name") or similar.
2005-04-06 14:19:14 +00:00
Zeev Suraski
b31c44d0fd Oops, revert. 2005-03-10 14:33:53 +00:00
Zeev Suraski
1b5d558f91 Fix prototype 2005-03-10 14:32:16 +00:00
Ilia Alshanetsky
975ff6f5d5 Added htmlspecialchars_decode() function for fast conversion from
htmlspecialchars() generated entities back to characters.
2005-03-07 19:37:27 +00:00
Dmitry Stogov
ea6ea21939 Fixed bug #31190 (exceptions in call_user_func_array()) 2005-01-18 10:38:04 +00:00
foobar
6ffb0dcaf2 - Fix leaks with registered shutdown functions. 2005-01-09 16:30:09 +00:00
foobar
4db9db0cc7 - Fix possible crash (PR#26223). Leaks remain. 2005-01-08 20:44:23 +00:00
foobar
4cf9d27072 - Fixed bug #28930 (PHP sources pick wrong header files generated by bison) 2004-12-30 15:18:24 +00:00
Zeev Suraski
f64c4f4569 MFB - description fix 2004-12-27 18:22:50 +00:00
Wez Furlong
d10b86f8f4 Add stream_socket_pair(), a streams based version of socketpair().
Modified patch from Vincent [six at t0x dot net]
2004-12-12 16:10:35 +00:00
Frank M. Kromann
11363296be Avoid renaming of sprintf to php_sprintf 2004-11-15 21:13:25 +00:00
Antony Dovgal
b5c1040240 fix build 2004-11-03 06:22:08 +00:00
Andrey Hristov
494d665955 make sleep() return it's return value when possible
#on some *nix systems sleep() is implemented with SIGALRM. When SIGALRM
#interrupts sleep() it returns the number of seconds that has to be slept
#till the number of seconds wanted by the script. Sleep() on Windows is
# void.
2004-11-02 17:03:20 +00:00
Marcus Boerger
2ffbbb1588 Revert for now 2004-10-08 22:19:03 +00:00
Marcus Boerger
476013cebd - Use ZEND_ARG_SEND_AUTOMATIC for several array functions 2004-10-05 18:37:17 +00:00
Andi Gutmans
11bcaedfc8 - Rename delete_global_variable() to zend_delete_global_variable() 2004-10-04 20:17:06 +00:00
Andi Gutmans
db507dd153 - Commit the variable fetch optimization.
- Extensions which delete global variables need to use new special function
- delete_global_variable() (I'm about to rename it) to remove them.
- Will post to internals@ or via commit messages if there's anything else.
2004-10-04 19:54:35 +00:00
Sterling Hughes
8f1a327edb Add strptime function. 2004-09-29 04:57:19 +00:00
Marcus Boerger
32e478b9fc - Add fputcsv() (David Sklar) 2004-09-26 21:55:22 +00:00
Anantha Kesari H Y
24437ccb75 cleaned up confusing NetWare specific check. disabled chown and chgrp for NetWare 2004-09-25 13:19:45 +00:00
Wez Furlong
31a17d9044 Enable hypot for all 2004-09-20 22:08:06 +00:00
Sara Golemon
34550382d8 Added stream_filter_remove() to cancel a stream filter.
Register filters as resources when
instantiated by stream_filter_(ap|pre)pend().

Export php_stream_filter_flush() internal function to wind buffered data
out of a particular filter until consumed by a later filter or sent to
stream->readbuffer or stream->ops->write()
2004-09-14 03:48:17 +00:00
Sara Golemon
955b43ba12 Add stream_wrapper_unregister()
Disables a wrapper (user-defined or built-in) for the life of the request.

Add stream_wrapper_restore()
Restores the wrapper originally defined at the time the request started
to the protocol name mentioned.
2004-09-10 20:45:35 +00:00
Antony Dovgal
ca28e37be1 fix #29737 in the right way with performance in mind 2004-08-19 15:14:04 +00:00
Antony Dovgal
e156ed7433 fix #29737 (ip2long should return -1 if IP is 255.255.255.255 and FALSE on error) 2004-08-19 13:59:29 +00:00
Sara Golemon
74de8bdb02 Don't require the user to specify as a reference 2004-08-11 03:57:15 +00:00
Sara Golemon
37b8c079d6 Fix inet_pton/ntop() on BSD 2004-08-07 15:59:59 +00:00
Sara Golemon
592b17d4d1 Binary safety fix for inet_pton() 2004-08-07 05:11:26 +00:00
Sara Golemon
75f4ec8879 New Functions inet_pton() and inet_ntop() 2004-08-07 04:50:24 +00:00
Wez Furlong
47e7fef08e Allow win32 stuff to build non-zts.
Fix stream crypto func (again? didn't I already commit that?)
2004-07-31 17:28:27 +00:00
Wez Furlong
ff531cca4d Missing ifdef; thanks Tony 2004-07-29 11:54:12 +00:00
Wez Furlong
cde7423cde Misc. win32 thread safety fixes. 2004-07-29 02:59:44 +00:00
Wez Furlong
17adf438a2 Added stream_context_get_default() which returns the default context option.
You may then set options that affect streams operations for the whole script.

Added stream_socket_enable_crypto() which allows you to turn on or off a crypto
layer (eg: SSL/TLS) on stream, if supported by the underlying transport.

Registered a bunch of constants for that.
2004-07-22 12:12:28 +00:00
Andrey Hristov
5e5d2640fb add array_:
intersect_key()
intersect_ukey()
diff_key()
diff_ukey()
The first two by a patch of Cristiano Duarte. The second two were
implemented in almost the same way except one small difference.
2004-07-21 21:17:56 +00:00
Wez Furlong
a0191f0505 don't allocate 0 bytes here either 2004-07-18 09:55:46 +00:00
Ilia Alshanetsky
53bf5ccbea Removed unneeded if(). 2004-06-27 21:49:47 +00:00
Sara Golemon
a2c24ae90e BugFix#28868 (Part Two): This fixes thread unsafety in the userspace
filters which relates to the fix just applied for userspace wrappers.
2004-06-21 21:08:05 +00:00
Sara Golemon
7fcfa8865e BugFix#28868: Wrapper hash not thread-safe.
Userdefined wrappers were being registered into a global wrapper hash
which can cross threads.  Termination of once instance then has the
potential to leave an active stream in another instance with no wrapper
leading to segfault.
2004-06-21 18:58:55 +00:00
Marcus Boerger
43b4b086db Bugfix #28851: call_user_func_array has typo in error message 2004-06-20 09:37:35 +00:00
Derick Rethans
f964cc09d2 - Fixed ip2long() behavior if an invalid IP address was passed to the
function. This makes it possible to distingiush between "255.255.255.255"
  and a wrong one.
2004-05-28 10:45:18 +00:00
Andi Gutmans
b5daf7078e - Use FREE_HASHTABLE instead of efree() 2004-05-26 18:00:27 +00:00
Ilia Alshanetsky
396bf39311 Fixed bug #28508 (Do not make hypot() available if not supported by libc). 2004-05-24 17:02:12 +00:00
Marcus Boerger
05a9f544a7 - Move hash table destruction to proper location 2004-05-12 10:17:12 +00:00
Marcus Boerger
b0d27f9e85 - Decouple NAN and INF 2004-05-10 07:23:38 +00:00
Wez Furlong
73f49c16f4 The fix for the vc7 libc putenv bug is also needed here to avoid a crash. 2004-04-22 14:26:03 +00:00
Andi Gutmans
67502a2e7d - modifyable -> modifiable 2004-04-12 12:22:26 +00:00
Marcus Boerger
53b4597fca Initialize to 0 to prevent valgrind warnings 2004-04-03 09:51:57 +00:00
Marcus Boerger
8b15b46aa8 Found a NAN/INF solution that should be portable everywhere(?) (Ard,Marcus) 2004-03-29 18:51:47 +00:00
Marcus Boerger
4f855044c7 Improve portability (idea by Ard) 2004-03-28 21:46:43 +00:00
Marcus Boerger
bc0373b880 Portable solution for bug #27646 that works correct on Windows, too 2004-03-27 00:50:41 +00:00
Marcus Boerger
92d8c3d06e Correct that name 2004-03-26 19:53:07 +00:00
Marcus Boerger
86d3e496f0 let inf be generated by INF constant (thanks to Wez) 2004-03-26 19:45:09 +00:00
Marcus Boerger
3450ed948f -Make NAN and INF more portable (atof() doesn't work on MSVC.6 for example)
-Change test to use constants without prior conversion
2004-03-25 22:36:36 +00:00
Marcus Boerger
fdcff80c16 - Allow negative infinity
- Register missing constants, they work anyway but cause an E_NOTICE
# generation by atof() should be portable enough (afaik)
2004-03-23 22:30:25 +00:00
Rasmus Lerdorf
05f8b4e6bc getopt() doesn't work if variables_order does not include "S" because it
only looks in $_SERVER for argv.  So, if we don't find argv in $_SERVER
fall back to looking in the global symbol table where register_argc_argv
would have put it.
2004-03-10 19:12:49 +00:00
foobar
dde4c166c9 - Make sure srand() / mt_srand() are really called. 2004-01-19 19:01:17 +00:00
Andi Gutmans
dbeb4158d2 - A belated happy holidays and PHP 5 2004-01-08 08:18:22 +00:00
Derick Rethans
6923a16c26 - Fixed var_export() to show public, protected and private modifiers properly.
- Exported (un)mangle_property_name.
2004-01-03 13:51:02 +00:00
Marcus Boerger
a84f8156ff Bugfix #25038 (call_user_func issues warning if function throws exception) 2003-12-27 21:10:34 +00:00
Ilia Alshanetsky
1a53f3c5e0 Define INADDR_NONE for systems that don't have it (apparently solaris). 2003-12-22 16:00:52 +00:00
Ilia Alshanetsky
c6b04cb48a Check correction (Thanks Andi). 2003-12-19 13:49:59 +00:00
Ilia Alshanetsky
c9a9dee298 Fixed bug #26667 (Added safety checks to ip2long()). 2003-12-19 13:33:51 +00:00
Zeev Suraski
cb0fe5786e Cleanup 2003-12-14 12:32:35 +00:00
Wez Furlong
40a573445c Work around a bug in putenv() in the VS.Net C run time library (MSVCRT71) where it will double free a string. 2003-12-04 22:38:22 +00:00
Wez Furlong
37f135ceef Add stream_socket_sendto and stream_socket_recvfrom which work very much
like sendto() and recvfrom() syscalls.
2003-11-29 21:46:50 +00:00
Ilia Alshanetsky
b03d3fa5b7 Added php_strip_whitespace() and php_check_syntax() functions. 2003-11-24 01:17:27 +00:00
Sara Golemon
0101c27823 New function: headers_list(). Ennumerate headers sent to SAPI engine 2003-11-19 21:10:33 +00:00
Ilia Alshanetsky
c53b53f926 Rename nanosleep() to time_nanosleep(). 2003-11-14 22:55:54 +00:00
Ilia Alshanetsky
127ed194b7 Added configure check for nanosleep() availability. 2003-11-12 23:43:46 +00:00
Ilia Alshanetsky
3691ab699c Added nanosleep(), in addition to allowing setting of very short states.
This function is signal safe.
2003-11-12 22:02:37 +00:00
Ilia Alshanetsky
7fe481c9d0 Fixed bug #26176 (Fixed handling of numeric keys in INI files). 2003-11-10 04:12:38 +00:00
Ilia Alshanetsky
ab7ee13670 Added substr_compare(). 2003-10-30 00:49:33 +00:00
Ilia Alshanetsky
8f6b374d1d By popular demand renaming uu(encode/decode) to convert_uu(encode/decode). 2003-10-28 04:02:11 +00:00