Hartmut Holzgraefe
daa5febadf
Added php_get_tmpdir() function that returns the default directory for
...
temporary files (as requested in bug #35380 )
2006-05-06 09:59:02 +00:00
Ilia Alshanetsky
a24cb8773f
MFB51: Fixed an unlikely, but possible memory leak.
2006-04-03 13:46:35 +00:00
Antony Dovgal
0b0fff07b2
fix spelling in error messages:
...
greater/less thEn -> greater/less thAn
2006-04-03 09:14:50 +00:00
Sara Golemon
30a2bd1d11
Another (and hopefully last) major streams commit.
...
This moves unicode conversion to the filter layer
(rather than at the lower streams layer)
unicode_filter.c has been moved from ext/unicode to main/streams
as it's an integral part of the streams unicode conversion process.
There are now three ways to set encoding on a stream:
(1) By context
$ctx = stream_context_create(NULL,array('encoding'=>'latin1'));
$fp = fopen('somefile', 'r+t', false, $ctx);
(2) By stream_encoding()
$fp = fopen('somefile', 'r+');
stream_encoding($fp, 'latin1');
(3) By filter
$fp = fopen('somefile', 'r+');
stream_filter_append($fp, 'unicode.from.latin1', STREAM_FILTER_READ);
stream_filter_append($fp, 'unicode.to.latin1', STREAM_FILTER_WRITE);
Note: Methods 1 and 2 are convenience wrappers around method 3.
2006-03-29 01:20:43 +00:00
Derick Rethans
3056defb26
- Moved strtotitle to ext/standard and implemented the fallback case to
...
non-unicode with ucwords. There is also an implementation for unicode ucwords
but that returns different results then strtotitle as it uppercases the
first character of every word, and doesn't *titlecase* a word. The test case
shows that.
2006-03-22 10:20:20 +00:00
Antony Dovgal
c2eabef473
shutdown syslog module before freeing basic_globals
2006-03-20 23:33:07 +00:00
Antony Dovgal
6901e09492
MF51: fix #36808 (syslog ident becomes garbage between requests)
2006-03-20 23:07:31 +00:00
Derick Rethans
c6b425432a
- Actually make this is_binary() too.
2006-03-17 14:53:57 +00:00
Dmitry Stogov
86780519d4
Disabled dl(). Now it is enabled only when a SAPI layer registers it explicitly. Only CLI, CGI and EMBED do this.
2006-03-16 16:53:10 +00:00
Ilia Alshanetsky
27e175eef0
So long safe_mode mode.
...
Also removed the magic_quotes configure option, no longer relevant since
the magic is gone :-).
2006-03-08 14:41:45 +00:00
Pierre Joye
bb1ec86f9d
- remove magic_quotes_gpc, magic_quotes_runtime, magic_quotes_sybase
...
(calling ini_set('magic_....') returns 0|false
- get_magic_quotes_gpc, get_magic_quotes_runtime are kept but always return false
- set_magic_quotes_runtime raises an E_CORE_ERROR
2006-03-08 00:43:32 +00:00
Ilia Alshanetsky
edd7d2a1df
Fixed bug #36630 (umask not reset at the end of the request).
...
# This needs to be MFHed, but since it requires an API break it has to wait
# until the next minor release.
2006-03-06 14:27:45 +00:00
Brian France
2eb346cce0
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:48:30 +00:00
Dmitry Stogov
84f0adff86
Unicode support: fixed GLOBALS protection
2006-02-22 13:10:32 +00:00
Dmitry Stogov
0f1209ab3d
Portable unicode string API:
...
- use the same type (int) for zval.value.usr.len and zval.value.str.len
- use union "zstr" as char*/UChar* mixture instead of void*
- Z_UNISTR() and Z_UNILEN() no longer check for Z_TYPE()
- nuke int32_t from ZE (not finisned)
2006-02-21 20:12:43 +00:00
Ilia Alshanetsky
fca6eecbe9
MFB51: Fixed bug #36458 (sleep() accepts negative values).
2006-02-21 15:32:34 +00:00
Dmitry Stogov
6e6a84129c
Incorrect usage of Z_TYPE() macro
2006-02-20 17:14:18 +00:00
Ilia Alshanetsky
c6ba5765be
Nuke safe_mode
2006-02-19 18:19:33 +00:00
Andi Gutmans
1efe984d08
- Get rid of using ENFORCE_SAFE_MODE.
2006-02-19 04:29:42 +00:00
Andi Gutmans
e94e25e621
Start nuking safe_mode. Still a lot of work to do...
2006-02-19 00:55:22 +00:00
Antony Dovgal
77b7b56ab0
improve usleep(): use new param parsing API, check for negative values
...
(related to #36410 )
2006-02-16 10:13:23 +00:00
Frank M. Kromann
921498e38b
MFB51 Export symbols that will allow building WDDX as shared object
2006-01-28 06:18:18 +00:00
Dmitry Stogov
227295a4f1
Unicode stuff is changed according to decision maden on PDM.
...
Now IS_BINRAY data type is removed and IS_STRING starts behave as IS_BINARY in unicode mode. IS_STRING is incompatible with IS_UNICODE, so ALL functions should be improved to support unicode mode.
2006-01-17 12:18:53 +00:00
Antony Dovgal
b5fd1c0ec3
add missing ifdefs
2006-01-13 13:04:01 +00:00
Derick Rethans
648e20c1b6
- New implementation of the sunset algorithm. Fixes bugs #33789 , #33671 , #32820
...
and #30937 .
#- Didn't add it to news yet, as we'll merge this to PHP 5.1.x (just need to
# wait for Ilia to approve it for 5.1.2).
2006-01-04 12:57:04 +00:00
Derick Rethans
223aa7294d
- Added the lchown() and lchgrp() functions which change permissions and group
...
permissions on symbolic links.
#- We'll also add this to PHP 5.1.3? or PHP 5.2, so I didn't add it to NEWS.
2006-01-04 12:22:23 +00:00
foobar
251c5173fd
bump year and license version
2006-01-01 13:10:10 +00:00
Marcus Boerger
927016e154
- MFB Fix zend_is_callable() usage
2005-12-16 22:26:43 +00:00
Antony Dovgal
c9ae9cd47e
MF51: fix #35713 (getopt() returns array with numeric strings when passed options like '-1')
...
TODO:
make getopt() unicode aware
2005-12-16 20:50:38 +00:00
Ilia Alshanetsky
331b7d7b27
MFB51: Fixed bug #35594 (Multiple calls to getopt() may result in a crash).
2005-12-08 03:25:42 +00:00
foobar
0ac2b74b0b
- Nuke php3 legacy
2005-12-05 22:53:34 +00:00
Dmitry Stogov
feaa2501d0
Fixed bug #34729 (Crash in ZTS mode under Apache)
2005-12-01 11:49:51 +00:00
Ilia Alshanetsky
667a9b9bce
MFB51: Fixed bug #35425 (idate() function ignores timezone settings).
2005-11-29 20:27:21 +00:00
foobar
895e795b53
- Fixed bug #35243 (php_mblen() crashes when compiled with thread-safety on Linux)
2005-11-20 18:06:09 +00:00
Dmitry Stogov
376d30f441
Fixed bug #35229 (call_user_func() crashes when arguement_stack is nearly full)
2005-11-16 09:43:56 +00:00
Ilia Alshanetsky
61c8e857e4
MFB51: Fixed bug #35022 , #35019 (Regression in the behavior of key/current
...
functions).
2005-10-30 18:04:20 +00:00
Ilia Alshanetsky
a36e2bd05a
Fixed possible crash and/or memory corruption in import_request_variables()
...
Fixed potential GLOBALS overwrite via import_request_variables().
2005-09-29 16:30:15 +00:00
Ilia Alshanetsky
a383bd062c
Make key() and current() take argument by value.
2005-09-13 13:22:49 +00:00
Dmitry Stogov
49c3b14f53
Unicode support for PHP constants
2005-09-08 11:10:34 +00:00
Dmitry Stogov
f4b8f4e958
Unicode support cleanup
2005-08-23 09:33:46 +00:00
Dmitry Stogov
6b622046dc
zend_is_callable() and zend_make_callable() were changed to return readable function name as zval (instead of string).
2005-08-22 12:22:16 +00:00
Marcus Boerger
acca0d32b0
Add is_unicode(), is_binary() and is_buffer()
2005-08-13 10:16:04 +00:00
Andrei Zmievski
264cec8be6
Unicode support.
2005-08-11 23:36:07 +00:00
Dmitry Stogov
b0d3aec8ad
Fixed bug #25359 (array_multisort() doesn't work in a function if array is global or reference)
2005-08-10 12:02:14 +00:00
Ilia Alshanetsky
430dea8ef8
News and constants for parse_url().
2005-08-09 14:40:59 +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