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