Wez Furlong
cde7423cde
Misc. win32 thread safety fixes.
2004-07-29 02:59:44 +00:00
Ilia Alshanetsky
739696d2d7
Fixed but #29437 (Possible crash inside array_walk_recursive()).
2004-07-29 00:35:07 +00:00
Ilia Alshanetsky
45ddc6a5cd
Better address availability check.
2004-07-28 23:34:27 +00:00
Ilia Alshanetsky
445daac3ab
Fixed possible crash in stream_socket_recvfrom() when length parameter has
...
a negative value.
2004-07-28 23:21:54 +00:00
Ilia Alshanetsky
89989f4e62
Fixed bug #29342 (strtotime() does not handle empty date string properly).
2004-07-28 01:44:39 +00:00
Andrey Hristov
e64af9a898
proto fix
...
(thanks to dave%php.net for spotting)
2004-07-26 06:32:54 +00:00
Andrey Hristov
d77a3f92e6
make behavior a bit field
2004-07-24 09:25:52 +00:00
Sara Golemon
b0f344e493
Oh by the way, only use proxy mode for reading...
2004-07-24 04:14:26 +00:00
Sara Golemon
93f795bb9e
Add proxy support to ftp using http wrapper
2004-07-24 04:01:48 +00:00
Andi Gutmans
d1b29ad4c2
- There's no reason why gettimeofday() shouldn''t return the same time in
...
successive calls; this test fails spuriously on Linux/x86_64 (which has
a particularly fast gettimeofday() implementation).
- Joe Orton <jorton@redhat>
2004-07-23 21:53:16 +00:00
Ilia Alshanetsky
70d78cf7dd
Fixed bug #29333 (output_buffering + trans_sess_id can corrupt output).
2004-07-23 02:05:49 +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
Sara Golemon
e5ed53b00a
Add MTDM support to ftp_fopen_wrapper::url_stat()
2004-07-21 04:37:47 +00:00
Ilia Alshanetsky
633ce3039f
Abort earlier on invalid format.
2004-07-21 00:14:48 +00:00
Moriyoshi Koizumi
e87fe59e96
- Cleanups.
2004-07-20 19:41:37 +00:00
Moriyoshi Koizumi
e25a206e87
oops...
2004-07-20 19:35:38 +00:00
Marcus Boerger
514dfbfbed
- Need to set handle prior to calling zend_register_module_ex()
...
(Marcus, Kamesh Jayachandran <kameshj at fastmail dot fm>)
2004-07-20 19:23:55 +00:00
Moriyoshi Koizumi
c210c68add
- Add more null checks.
2004-07-20 18:16:36 +00:00
Moriyoshi Koizumi
3e026f08ae
- pemalloc() might return NULL.
2004-07-20 18:03:19 +00:00
Moriyoshi Koizumi
5ff410efdf
- Fix test name
2004-07-19 18:49:20 +00:00
Moriyoshi Koizumi
fae637021d
- Oops, actual PR # is 29119, not 29199...
2004-07-19 17:51:41 +00:00
Moriyoshi Koizumi
46bc2c5ae2
- Fix bug #29199 (html_entity_decode() misbehaves with UTF-8)
2004-07-19 17:46:30 +00:00
Andi Gutmans
56f8195fe5
- Nuke empty_string. It is a reminanent from the time where RETURN_FALSE()
...
used to return "" and not bool(false). It's not worth keeping it because
STR_FREE() and zval_dtor() always have to check for it and it slows down
the general case. In addition, it seems that empty_string has been abused
quite a lot, and was used not only for setting zval's but generally in
PHP code instead of "", which wasn't the intention. Last but not least,
nuking empty_string should improve stability as I doubt every place
correctly checked if they are not mistakenly erealloc()'ing it or
calling efree() on it.
NOTE: Some code is probably broken. Each extension maintainer should
check and see that my changes are OK. Also, I haven't had time to touch
PECL yet. Will try and do it tomorrow.
2004-07-19 07:19:50 +00:00
Ilia Alshanetsky
8840191d91
Fixed bug #28633 (sprintf incorrectly adding padding to floats).
2004-07-18 17:27:49 +00:00
Marcus Boerger
1ea073fb7a
Update
2004-07-18 14:04:36 +00:00
Andrey Hristov
96f5c697dd
Add support for negative values of limit of explode(). If limit is negative
...
then all components are returned except the last abs(limit) ones.
2004-07-18 11:34:28 +00:00
Wez Furlong
a0191f0505
don't allocate 0 bytes here either
2004-07-18 09:55:46 +00:00
Sara Golemon
d40e78ad6f
convert.* filters not consuming buckets_in on PSFS_FLUSH_*
2004-07-16 23:40:21 +00:00
Ilia Alshanetsky
a75608c1de
Fixed Bug #29075 (strnatcmp() incorrectly handles whitespace).
...
# Original Patch by: curt@php.net
2004-07-15 01:26:03 +00:00
Wez Furlong
cfb84391d0
add missing break
2004-07-13 17:14:49 +00:00
Ilia Alshanetsky
11371cd0a8
Missing patch.
2004-07-12 18:49:47 +00:00
Andrey Hristov
0eef82a733
fixing bug #28974 : overflow in array_slice()
...
The same kind of overflow appeared in array_splice(), substr() and
substr_replace()
2004-07-11 21:15:04 +00:00
Andrey Hristov
268d3d7ba3
fixing bug #28739
...
array_*diff() and array_*intersect() not clearing the fci cache before work.
FCI call cache was introduced in HEAD. All functions that perform sorting
of arrays clear the fci cache before work. array_*diff() and\ array_*intersect()
were somehow missed to be updated.
2004-07-11 19:20:05 +00:00
Andrey Hristov
bc69bdb01a
fixing the name of the test
2004-07-11 18:19:43 +00:00
Andrey Hristov
7af08c0c34
fixing bug 29038:
...
EXTR_PREFIX_SAME is prevented from creating a new variable when the key
is a empty string. EXTR_PREFIX_ALL is also prevented from doing that,
but works for numbers.
2004-07-11 18:18:05 +00:00
Ilia Alshanetsky
4ebcb2ecfe
Fixed bug #29008 (array_combine() does not handle non-numeric/string keys).
2004-07-11 15:23:57 +00:00
Ilia Alshanetsky
79c28f7618
Fixed bug #29049 (array sorting via user function/method does not validate
...
it).
2004-07-08 17:07:22 +00:00
Ilia Alshanetsky
5201e62d0d
Fixed bug #29034 (wordwrap() returns a boolean when passed empty string).
2004-07-06 22:16:42 +00:00
Marcus Boerger
a2592aa5fb
- Revert storing handle, got lost in 1.92, noticed by Kamesh Jayachandran
...
<kameshj at fastmail dot fm>
2004-07-06 18:48:39 +00:00
Moriyoshi Koizumi
8989a96789
- Add test for bug #28325 .
2004-07-05 07:53:41 +00:00
Marcus Boerger
c5b9577df8
Fix TSRM build
2004-07-04 11:14:17 +00:00
Moriyoshi Koizumi
a92af73136
- Bugfix #28325 (circular reference serialisation).
2004-07-03 16:10:28 +00:00
Derick Rethans
da2a1977b5
- Fixed bug with leap year checking.
2004-06-28 14:33:57 +00:00
Ilia Alshanetsky
53bf5ccbea
Removed unneeded if().
2004-06-27 21:49:47 +00:00
Stefan Esser
a27d5d842a
IE we love you all...
2004-06-26 07:43:02 +00:00
Ilia Alshanetsky
81abbc66fc
Added missing safe_mode & open_basedir checks.
2004-06-24 00:48:58 +00:00
Ilia Alshanetsky
869a90f015
Fixed possible buffer overflow.
2004-06-22 20:27:46 +00:00
Ilia Alshanetsky
a3bd8bcd7b
Added missing safe_mode check.
2004-06-21 22:53:52 +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
Ilia Alshanetsky
a99e4b5969
Removed unneeded checks around Zend allocation macros.
2004-06-20 21:40:43 +00:00
Marcus Boerger
43b4b086db
Bugfix #28851 : call_user_func_array has typo in error message
2004-06-20 09:37:35 +00:00
Sara Golemon
851b6d4475
String lengths should never be char pointers.
2004-06-18 00:44:37 +00:00
Ilia Alshanetsky
23d71171cf
Properly handly high ascii values in soundex().
2004-06-17 00:17:49 +00:00
Ard Biesheuvel
5232a5afea
64-bit bugsquash party
2004-06-16 23:57:25 +00:00
Stefan Esser
585628ba67
Fixed: made 3rd parameter to strrpos 64bit safe.
2004-06-15 22:38:18 +00:00
Ilia Alshanetsky
d26ddca966
Standardize error reporting.
2004-06-13 17:04:36 +00:00
Ilia Alshanetsky
b9fc9a6ad1
hypot() is not experimental.
2004-06-10 19:38:24 +00:00
Ilia Alshanetsky
ceb70dbc68
Fixed bug #28668 (glob() does not work with relative paths on Windows).
2004-06-07 18:30:16 +00:00
Ilia Alshanetsky
9c1e668593
Fixed bug #28649 (Proper glob() return value on Linux when there are no
...
matches).
2004-06-06 16:21:11 +00:00
Ard Biesheuvel
2c97bc2632
Fixed unregistered bug [crash in http_build_query()]
2004-06-04 16:54:14 +00:00
Wez Furlong
bd818c0118
Turn this off then
2004-05-29 09:27:18 +00:00
Wez Furlong
7171429f21
Don't rely on TIOCNOTTY.
2004-05-29 00:30:11 +00:00
Stefan Esser
23813d603c
Fixed off-by-one in http_fopen_wrapper
2004-05-28 13:38:06 +00:00
Wez Furlong
54bbe548fe
Hopefully resolve proc_open build issues.
...
If we need anything more elaborate than this, then we can move to a configure
time check as Sascha suggests.
2004-05-28 13:25:51 +00:00
Stefan Esser
2e3b9ec278
Fixed off-by-one in php_parse_url.
2004-05-28 11:33:23 +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
Wez Furlong
429bce6519
Apparently it is better to specify 500 here for unix98 bits and pieces.
2004-05-26 14:55:32 +00:00
Ilia Alshanetsky
6304e5d7cb
Kill unused var.
2004-05-25 13:51:00 +00:00
Wez Furlong
1360e3478c
Merge that nicer error message here too
2004-05-25 13:25:22 +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
Wez Furlong
9462eb6db5
Ok, so we do need to rinit here after all.
2004-05-21 17:17:55 +00:00
Wez Furlong
fbccd1438c
Update to reflect recent changes in dl()
2004-05-21 17:08:36 +00:00
Andrey Hristov
19d0283ce8
for now removing ":public". Waiting for a decision? ":public" will require
...
quite a lot of phpt files changes.
2004-05-20 21:15:42 +00:00
Andrey Hristov
44de5a0e8e
fixing the tests so to work with the new var_dump() (dumping private and
...
protected member variables)
2004-05-20 21:13:14 +00:00
Andrey Hristov
aafb2b1581
var_dump() now shows private and protected member variables.
...
Not BC is that since now the public variables are explicitly shown as public
Example :
class a{ protected $a=1; private $b=2;var $c=3;} $a=new a(); var_dump($a);
object(a)#1 (3) {
["a:protected"]=>
int(1)
["b:private"]=>
int(2)
["c:public"]=>
int(3)
}
2004-05-20 17:46:20 +00:00
Ard Biesheuvel
fd7a92f046
Fixed unregistered bug (memory leak in printf() & friends)
2004-05-19 16:46:29 +00:00
Marcus Boerger
29cfd6d24f
- Remove unused blocks
2004-05-19 08:56:50 +00:00
Marcus Boerger
d94136fc30
- Remove unused blocks
2004-05-19 08:45:46 +00:00
Stanislav Malyshev
da26db3054
Z_TYPE_P is for zvals
2004-05-18 16:13:57 +00:00
Wez Furlong
f76725902b
Fix dl() and extension=
2004-05-18 15:26:32 +00:00
Ilia Alshanetsky
3e0cbfb077
Fixed command line escaping routines for win32.
2004-05-18 13:43:24 +00:00
Ilia Alshanetsky
0a38683b14
Correct output.
2004-05-17 20:58:57 +00:00
Sara Golemon
cceecdbcdb
BugFix# 27982: Provide error message when trying to overwrite an existant file without overwrite context option.
2004-05-17 20:31:59 +00:00
Marcus Boerger
ed5ce047db
- Add new test
2004-05-16 14:48:45 +00:00
Marcus Boerger
251b627684
- Fix printf with floats
2004-05-16 14:01:45 +00:00
Ilia Alshanetsky
5b4dc50c01
Fixed possible memory leak inside popen().
2004-05-14 16:12:03 +00:00
Ilia Alshanetsky
d24465ba8a
Fixed bug #28386 (wordwrap() wraps lines 1 character too soon).
2004-05-13 17:44:23 +00:00
Marcus Boerger
40a9fd5f76
- Touch
2004-05-12 10:19:06 +00:00
Marcus Boerger
05a9f544a7
- Move hash table destruction to proper location
2004-05-12 10:17:12 +00:00
Ilia Alshanetsky
bd92164eff
Make vprintf() and printf() return the length of the string printed.
...
Make fprintf() and vfprints() return the correct length of the string
printed.
2004-05-11 19:51:46 +00:00
Ilia Alshanetsky
1842676706
Fixed bug #28355 (glob() does not return error on Linux when it does not
...
have permission to open the directory).
2004-05-11 13:34:19 +00:00
Marcus Boerger
b0d27f9e85
- Decouple NAN and INF
2004-05-10 07:23:38 +00:00
Ilia Alshanetsky
468e834ef1
Fixed bug #28289 (incorrect resolving of relative paths by glob() in
...
windows).
2004-05-09 19:01:13 +00:00
Stanislav Malyshev
255d87b1b8
Add __EXTENSIONS__ define - otherwise it won't compile on Solaris
2004-05-09 11:08:04 +00:00
Jay Smith
8f306fd749
Fixed a segfault. (It's possible for large offsets to make strrpos()
...
read past the end of the haystack string...)
2004-05-06 16:11:50 +00:00
Sara Golemon
0dae58bb2a
Bugfix #28300 Userspace stream/filter names don't need to be lowercased.
2004-05-06 14:29:33 +00:00
Sara Golemon
0180c36951
BugFix#28287 stream_*_register() not calling __autoload().
2004-05-05 18:18:57 +00:00