Commit Graph

4167 Commits

Author SHA1 Message Date
Marcus Boerger
3cdd2bcb01 - Add more tests 2004-09-26 18:28:07 +00:00
Anantha Kesari H Y
cc45f504d4 removing the unwanted inclusion of headers 2004-09-25 15:39:26 +00:00
Anantha Kesari H Y
b35e507884 removing unwanted comment 2004-09-25 15:36:47 +00:00
Anantha Kesari H Y
293ab565b5 removing unwanted inclusion of socket header file 2004-09-25 15:33:57 +00:00
Anantha Kesari H Y
80a4042a5c removed NEW_LIBC checks in NETWARE 2004-09-25 15:30:26 +00:00
Anantha Kesari H Y
7d57757a8a removed redundant NEW_LIBC checks 2004-09-25 15:26:55 +00:00
Anantha Kesari H Y
6692794433 removed redundance LIBC checks for NETWARE 2004-09-25 15:23:35 +00:00
Anantha Kesari H Y
78ecac2569 removed unwanted NEW_LIBC checks as they are no more needed for NETAWRE 2004-09-25 14:54:41 +00:00
Anantha Kesari H Y
146cb29054 removing unwanted header files getting included 2004-09-25 14:48:44 +00:00
Anantha Kesari H Y
bc90ecb7e2 removed unwanted NEW_LIBC checks 2004-09-25 14:46:24 +00:00
Anantha Kesari H Y
c4b57bc16b Now NetWare LibC supports proper stat structure no need of CLIB_STAT_PATCH and all such checks 2004-09-25 14:23:32 +00:00
Anantha Kesari H Y
595268403a removed the redundant NEW_LIBC checks 2004-09-25 14:19:38 +00:00
Anantha Kesari H Y
00760e1343 removed the redundant NEW_LIBC checks 2004-09-25 14:09:45 +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
Frank M. Kromann
62fbbd1494 Fix win32 build 2004-09-21 18:09:29 +00:00
Wez Furlong
31a17d9044 Enable hypot for all 2004-09-20 22:08:06 +00:00
Ilia Alshanetsky
4af4cf0914 Fixed bug #29913 (parse_url() is now binary safe). 2004-09-20 05:13:35 +00:00
Wez Furlong
99e290f882 Fix for Bug #24189: possibly unsafe select(2) usage.
We avoid the problem by using poll(2).

On systems without poll(2) (older bsd-ish systems, and win32), we emulate
poll(2) using select(2) and check for valid descriptors before attempting
to access them via the descriptor sets.

If an out-of-range descriptor is detected, an E_WARNING is raised suggesting
that PHP should be recompiled with a larger FD_SETSIZE (and also with a
suggested value).

Most uses of select(2) in the source are to poll a single descriptor, so
a couple of handy wrapper functions have been added to make this easier.

A configure option --enable-fd-setsize has been added to both the unix and
win32 builds; on unix we default to 16384 and on windows we default to 256.
Windows FD_SETSIZE imposes a limit on the maximum number of descriptors that
can be select()ed at once, whereas the unix FD_SETSIZE limit is based on the
highest numbered descriptor; 256 should be plenty for PHP scripts under windows
(the default OS setting is 64).

The win32 specific parts are untested; will do that now.
2004-09-17 12:44:56 +00:00
foobar
36a76f403a Test for bug #30069 2004-09-15 13:54:16 +00:00
Derick Rethans
7795da58e6 - Added new boolean (fourth) parameter to array_slice() that turns on the
preservation of keys in the returned array.
2004-09-15 11:50:27 +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
Marcus Boerger
61bbeabdfa - Moe changed from .re to .c 2004-09-12 12:45:01 +00:00
Marcus Boerger
8564352f59 - Readd check for nested data (but correct this time) 2004-09-12 12:43:05 +00:00
Marcus Boerger
06ade1ab1c - Check for legal key types 2004-09-12 12:23:16 +00:00
Marcus Boerger
6200c9a5a1 - Remove wrong test 2004-09-12 11:51:13 +00:00
Derick Rethans
4bae5cb4d0 - MFB: Added the sorting flag SORT_LOCALE_STRING to the sort() functions which
makes them sort based on the current locale. (Derick)
2004-09-11 14:22:35 +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
Wez Furlong
751f67d5d1 avoid ANSI stdio when calling tempnam() to avoid limitations of AT&T libc. 2004-09-09 19:41:07 +00:00
Sara Golemon
532a79aa52 *** empty log message *** 2004-09-08 23:37:55 +00:00
Sara Golemon
92c4a37a6a Chunk Length may optionally be followed by whitespace 2004-09-07 22:46:24 +00:00
Sara Golemon
a85bff9796 Protocol version context option and chunked transfer encoding 2004-09-07 19:27:11 +00:00
Marcus Boerger
2f5990a5c4 Touch 2004-09-05 17:44:15 +00:00
Marcus Boerger
338e3357ae - Bugfix #29985 2004-09-05 17:37:57 +00:00
Marcus Boerger
efea880e6f - Add some checks to unserialize() to prevent bufferoverflows 2004-09-05 17:16:02 +00:00
Marcus Boerger
91af7f394f - Add some checks when unserializing data to prevent buffer overflows 2004-09-05 16:29:05 +00:00
Andrey Hristov
945f7d68b9 remove "." at the end of messages 2004-09-05 13:27:58 +00:00
Moshe Doron
9632e324b6 make autogenerated docs happy (Friedhelm Betz) 2004-09-05 08:13:56 +00:00
Marcus Boerger
72000ecda9 Fix memleak in serialize 2004-09-02 18:28:47 +00:00
Marcus Boerger
94c4feef12 Fix test 2004-09-02 18:24:58 +00:00
Stanislav Malyshev
dbc1cb5e92 MF4: fix crash if shutdown uses file stats 2004-09-02 09:39:55 +00:00
Ilia Alshanetsky
9996b5f731 Fixed leak when serializing protected & private properties. 2004-08-29 17:16:20 +00:00
Ilia Alshanetsky
fe73e4d851 Fixed bug #29808 (array_count_values() breaks with numeric strings). 2004-08-26 00:26:19 +00:00
Ilia Alshanetsky
f95c1df583 Fixed bug #29821 (Fixed possible crashes in convert_uudecode() on invalid
data).
2004-08-24 15:25:48 +00:00
Ilia Alshanetsky
8eacea8b48 Fixed proto of headers_list(). 2004-08-23 16:58:11 +00:00
Andrey Hristov
dd5538566e fix for bug 26737 : private & protected member variables not serialized
when user defined __sleep() is declared. Additionally E_NOTICE is
being thrown if __sleep() returns a non-existing member variable name
2004-08-21 13:49:19 +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
Ilia Alshanetsky
60fc9c050a Fixed bug #29678 (opendir() with ftp:// wrapper segfaults if path does not
have trailing slash).
2004-08-16 01:41:14 +00:00
Andi Gutmans
0286913937 - Use FREE_HASHTABLE() 2004-08-12 06:17:42 +00:00
Derick Rethans
318be175a4 - Added a notice to getimagesize in case zlib is not available and a compressed
SWF movie has been passed to the function.
2004-08-11 12:33:03 +00:00
Sara Golemon
74de8bdb02 Don't require the user to specify as a reference 2004-08-11 03:57:15 +00:00
Moriyoshi Koizumi
51fc7b8ea5 - Bugfix #29493 (extract(array, EXTR_REFS) misbehaves with elements referred
twice or more times). (Patch inspired by Michael Manley. Thanks.)
2004-08-10 06:00:30 +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
Sara Golemon
d1341b1c15 Add A6 support, fix IPv6 address parsing, and improve define compatability 2004-08-06 18:38:35 +00:00
Wez Furlong
d0ce6368b1 Avoid possible segfault when using stream_socket_client with bogus flags. 2004-08-06 14:08:17 +00:00
Gabor Hojtsy
15e14aeca5 update documentation credits, mentioning that more contributors are listed in the manual 2004-08-05 16:26:15 +00:00
Ilia Alshanetsky
e7b73ddce7 Fixed argument handling in sun* functions. 2004-08-04 00:28:03 +00:00
Antony Dovgal
cc39d06e4e fix typo in mail.c: mail_force_extra_parameters -> mail.force_extra_parameters 2004-08-03 06:25:25 +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
Frank M. Kromann
62cd02c5a7 Adding missing PHPAPI for non ZTS builds 2004-07-30 22:49:02 +00:00
Ilia Alshanetsky
972940509f Fixed bug #29443 (Sanity check for wbmp detection). 2004-07-30 01:10:41 +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
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
Wez Furlong
263723ec9b Update for count_elements handler for overloaded objects. 2004-05-04 15:03:48 +00:00
Marcus Boerger
6a4e1fff78 Use caseinsensitive sort 2004-05-02 13:23:30 +00:00
Wez Furlong
4d5ce8cd08 Fix Bug #28251 2004-05-02 11:13:08 +00:00
Marcus Boerger
f571b188f9 Don't load modules twice 2004-05-01 20:34:15 +00:00
Ilia Alshanetsky
91e9545f4f Fixed bug #28228 (number_format() does not allow empty decimal separator). 2004-04-30 13:26:01 +00:00
Sara Golemon
1335bc8fb8 Don't strip off those []s, it'll only create problems in wrappers and elsewhere. 2004-04-27 19:28:11 +00:00
Sara Golemon
99b6724a4c BugFix 28187 parse_url does not handle scheme://[0123:4567::89]:12345/etc style IPv6 embedded address URLs 2004-04-27 19:13:13 +00:00
Derick Rethans
9ee23d7066 - Fixed buffer overflow in phpinfo() for Zend Extension Api NO. 2004-04-23 13:28:25 +00:00
Sara Golemon
d5e0742e8d In-HEAD bugfix# 28115 2004-04-23 03:37:20 +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
Wez Furlong
daa90c915c Fix #27865; don't dup STDIN, STDOUT or STDERR when running under CLI. 2004-04-19 17:41:39 +00:00
Wez Furlong
398b4a2fbb Add pty support to proc_open() for systems with Unix98 ptys.
# With permission from Andi
2004-04-19 15:07:30 +00:00
Derick Rethans
c8c5e8bbe6 - MFH: Fix for bug #28042 (greek letters in html to entitity mapping not
correct)
2004-04-17 23:08:02 +00:00
Andi Gutmans
67502a2e7d - modifyable -> modifiable 2004-04-12 12:22:26 +00:00
Marcus Boerger
ad4755e257 studlyCaps 2004-04-10 13:56:27 +00:00
Derick Rethans
3ec166aba4 - Add missing "CEST" timezone 2004-04-08 19:21:05 +00:00
Derick Rethans
b91a947d5e - Added test and not the diff ;-) 2004-04-08 16:17:35 +00:00
foobar
5d3900a2e9 remove crap 2004-04-08 15:58:35 +00:00
Derick Rethans
9d4f01a8af - Test case for bug #20382 2004-04-08 14:18:23 +00:00
Stanislav Malyshev
72e2e4fea3 Fix incomplete class for the new object model 2004-04-07 08:06:09 +00:00
Derick Rethans
f1141d79c6 - Fixed comment and double 0 2004-04-04 12:45:02 +00:00
Derick Rethans
794846e5c5 - One more test for a date/time related bug. 2004-04-04 12:42:13 +00:00
Marcus Boerger
8fd505f4b4 Add a comment why it is in 2004-04-04 12:31:12 +00:00
Ard Biesheuvel
e7eccf10e6 That should do it 2004-04-03 16:38:10 +00:00
Ard Biesheuvel
5367158046 MFB: more elaborate HUGE_VAL test 2004-04-03 10:42:42 +00:00
Marcus Boerger
53b4597fca Initialize to 0 to prevent valgrind warnings 2004-04-03 09:51:57 +00:00
Derick Rethans
95659890ba - Fixed expected shift/reduce conflict count nu,ber 2004-04-02 21:26:35 +00:00
Ilia Alshanetsky
c85843aec1 MFB: Revert patch for bug #27782. 2004-04-01 22:07:42 +00:00
Derick Rethans
b2ed70e4e0 - MFB: Fixed bug #27780 (strtotime(+1 xxx) returns a wrong date/time) 2004-04-01 21:40:56 +00:00
Derick Rethans
88c17817a9 - Fixed bug #27822 (is_resource() returns TRUE for closed resources) 2004-04-01 08:54:44 +00:00
Sara Golemon
72616e6eae BugFix#27619
Filters not applied to pre-buffered stream data.
(esp. http:// streams)
2004-03-31 23:48:59 +00:00
Hartmut Holzgraefe
f8708f369d disallow negative timestamps on windows only 2004-03-31 17:57:33 +00:00
Ard Biesheuvel
81cfb1b312 Make time tests more robust against differences in implementation
# FreeBSD mktime() returns -1 if is_dst==1 and no DST timezone is set
2004-03-31 01:00:55 +00:00
Ilia Alshanetsky
ec4655f864 Fixed bug #27782 (Wrong behaviour of next(), prev() and each()). 2004-03-30 19:08:43 +00:00
Ard Biesheuvel
04d178f79c Prevent test from failing on least significant digit 2004-03-30 12:36:44 +00:00
Andi Gutmans
9094dd7a5e - Tiny improvement. 2004-03-30 08:56:29 +00:00
Marcus Boerger
dddf796edf NAN==NAN doest work (Ard) 2004-03-29 23:08:36 +00:00
Ilia Alshanetsky
f7fd3a7dcc Removed extra spaces that cause the test to fail. 2004-03-29 21:57:29 +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
f8ff2ccf20 Fix writing of SQLite and SimpleXMl extension and add Rob to the credits
line of the latter. Add ext/SPL.
2004-03-28 20:27:18 +00:00
Rasmus Lerdorf
1ece5eb5ad MFB test case for bug #27719 and improve comments in this tricky DST code 2004-03-28 15:03:56 +00:00
Marcus Boerger
e4a6365181 Move defines to proper location 2004-03-27 01:41:32 +00:00
Marcus Boerger
141049a2e2 Touch after .c 2004-03-27 01:27:53 +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
Rasmus Lerdorf
a40518164b MFB: The 2am offset was a bad choice as this hour doesn't necessarily exist
on a DST switch.  So use 4am instead.  Fixes bug #27719
2004-03-26 19:32:49 +00:00
Sara Golemon
c52cc1c333 BugFix 27675 and add regression test. 2004-03-26 19:23:42 +00:00
Marcus Boerger
a4fba990a4 Pending touch 2004-03-25 22:40:25 +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
3f8a43989d Update .c output after .re 2004-03-23 22:33:29 +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
Marcus Boerger
c64376bda5 Bugfix #27646: Cannot serialize/unserialize non-finite numeric values 2004-03-23 20:54:00 +00:00
Sara Golemon
dd28c137f6 Cleanup, minor refactor, and CS 2004-03-19 22:21:53 +00:00
Sara Golemon
75268270d6 Bug Fix #27657: TXT records longer than MAXHOSTNAMELEN cause segfaults. 2004-03-19 21:42:29 +00:00
Ilia Alshanetsky
d45b2c6bc3 MFH: Fixed bug #27628 (Simplify the process of making a POST request via
stream context).
2004-03-19 15:41:26 +00:00
Dmitry Stogov
deb84befae BUG #27469 was fixed (serialize() objects of incomplete class) 2004-03-18 16:54:36 +00:00
Dmitry Stogov
6e63ea45c7 BUG #27457 was fixed (using temporary hash table with string keys only) 2004-03-18 09:48:37 +00:00
Sara Golemon
4341ee6061 Userspace Directory Stream Test 2004-03-17 20:48:12 +00:00
Ilia Alshanetsky
88058e5715 Fixed bug #27498 (bogus safe_mode error on nonexistent directories for
chdir() and opendir() functions).
2004-03-16 23:23:17 +00:00
Jay Smith
83b2d923f8 Fixed bug #27291 (get_browser matches browscap.ini patterns incorrectly). 2004-03-15 21:26:39 +00:00
Jon Parise
633c95aa40 Fixed crash in php_ini_scanned_files() when no additional INI files were
actually parsed.

I'll merge this into the PHP_4_3 branch as soon as I receive permission
from the release master.
2004-03-15 07:45:25 +00:00
Marcus Boerger
15e1d817be Fix strval to use __toString if necessary 2004-03-14 22:59:04 +00:00
Rasmus Lerdorf
8f58b974b2 Fix/workaround for http://bugs.php.net/27533 2004-03-12 17:29:52 +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
Ard Biesheuvel
cc924cad9d Nuke unused vars 2004-03-10 15:59:50 +00:00
Ard Biesheuvel
e6281ab38b Don't use fp arithmetic for int results
# FP arithmetic is not accurate enough on 64-bit archs
# This patch relies on ZEND_SIGNED_MULTIPLY_LONG(),
# so that should be fixed as well.
2004-03-10 15:57:49 +00:00
foobar
3bd12064ef test for bug #27457 2004-03-09 14:19:50 +00:00
Ard Biesheuvel
b303ba089c More wordsize fixes 2004-03-08 23:11:45 +00:00
Ilia Alshanetsky
6112260738 Fixed compiler warnings. 2004-03-08 03:06:56 +00:00
Ilia Alshanetsky
72a3bb18d1 Fixed bug #27460 (base64_decode() does not handle extra padding). 2004-03-06 19:06:04 +00:00
Ilia Alshanetsky
bf6b0dc5e6 Fixed bug #27505 (htmlentities() does not handle BIG5 correctly). 2004-03-06 18:35:41 +00:00
Pierre Joye
a8b6b2102b - fix #27238 2004-03-06 17:31:51 +00:00
Derick Rethans
6644d38e35 - Fixed yacc file 2004-03-02 13:12:44 +00:00
Moriyoshi Koizumi
df8ee549f5 - Add support for more ISO8601 style formats.
. Timezone specifier (ex. 20040301T00:00:00+1900)
 . Week specifier "W"  (ex. 1997W021)
- Modified test case to test new features.
2004-03-01 10:42:28 +00:00
Sara Golemon
d9d38900b6 context parameter for opendir() and dir() 2004-03-01 05:40:14 +00:00
foobar
639073bd2a MFB: typofix 2004-02-26 00:13:30 +00:00
Ilia Alshanetsky
0f5f7c6dd0 Handle situation where feof() occurs before the HTTP header is retrieved. 2004-02-26 00:02:27 +00:00
Derick Rethans
f954677e54 - Fix tests after change to highlight_string() 2004-02-25 22:55:47 +00:00
Ard Biesheuvel
81f05c18f5 Wordsize fixes 2004-02-25 20:16:27 +00:00
Sebastian Bergmann
184b379fd7 ZTS fix. 2004-02-25 09:36:46 +00:00
Ilia Alshanetsky
895f244236 Fixed bug #27383 (Potential crash inside fopen_wrapper, while parsing
response code).
2004-02-24 21:52:40 +00:00
George Schlossnagle
a38761cd68 fix for bug 27384 2004-02-24 21:49:28 +00:00
Wez Furlong
0619eee6d0 test case for statcache corruption of BG 2004-02-23 21:07:10 +00:00
Wez Furlong
2b95eccf7e Ooops, these should not be pointers ;) 2004-02-23 21:03:58 +00:00
Sara Golemon
ba8ad292d9 Make today's changes work w/ str_ireplace() as well. 2004-02-23 20:34:59 +00:00
Sara Golemon
1c82797664 Short circuit str_replaces when we already know that needle does not occur in haystack.
Note: Prior bugfix was for #27176 not #27276
2004-02-23 20:13:14 +00:00
Sara Golemon
5144a1f522 Bugfix #27276: When using str_replace to expand a string, count occurances of needle in haystack to avoid massive overallocation 2004-02-23 20:06:01 +00:00
Derick Rethans
769dc0be75 - Added testcase for bug #27276 2004-02-23 19:45:16 +00:00
Ard Biesheuvel
b2bc520067 64-bit fixes 2004-02-23 16:26:34 +00:00
Ard Biesheuvel
154893115a 64-bit fix 2004-02-23 02:09:48 +00:00
Sara Golemon
15cd6762f8 Bug Fix #27335: Numeric indexes crashing http_build_query() 2004-02-20 20:38:14 +00:00
Ilia Alshanetsky
95cbb0046c Fixed bug #27295 (memory leak inside sscanf()). 2004-02-18 19:48:13 +00:00
Sara Golemon
da55c00362 Show registered transports in phpinfo() 2004-02-18 05:07:13 +00:00
foobar
7a7927c146 shorten the description a bit 2004-02-16 17:44:27 +00:00
Ilia Alshanetsky
4a954193e4 Fixed bug #27278 (*printf() functions treat arguments as if passed by
reference).
2004-02-16 17:09:37 +00:00
foobar
7fd4bdbec4 nuke copypaste rubbish 2004-02-16 16:50:53 +00:00
foobar
173794732b test for bug #27278 2004-02-16 16:50:11 +00:00
Stanislav Malyshev
794975d97f ce is not used, don't get it 2004-02-16 11:21:31 +00:00
foobar
6e06620089 - fix test 2004-02-16 06:39:13 +00:00
Jan Lehnardt
4d0ad7fbb7 - improve error message 2004-02-14 19:02:23 +00:00
Stig Bakken
4127b304ea * email address update 2004-02-12 19:05:41 +00:00
foobar
b10ce1155c - Fixed bug #23467 (Showing incorrect Time Zone)
# patch by scottmacvicar at ntlworld dot com
2004-02-12 01:28:12 +00:00
Brian France
d5b6608da5 Added checks for invalid characters in a cookie name or cookie data from setrawcookie 2004-02-11 19:00:42 +00:00
Ilia Alshanetsky
8b97d9d7f1 'Touch' the file to make sure re2c is not needed. 2004-02-11 17:32:38 +00:00
Ilia Alshanetsky
0fc2bb9d49 Fixed bug #26862 (ob_flush() followed by output_reset_rewrite_vars() may
result in data loss).
2004-02-11 17:00:48 +00:00
Zeev Suraski
0018eed69f Finally add a notice to hint people that using dl() is a bad idea... 2004-02-11 11:46:20 +00:00
Stanislav Malyshev
1c433049ca fix serialization 2004-02-05 09:07:46 +00:00
foobar
1f34bc0f10 touch 2004-02-03 15:50:21 +00:00
Stanislav Malyshev
3fd027c5ac fix bug #27120 and bug #25975 - preserve is_ref when bound
objects are serialized
2004-02-03 14:12:59 +00:00
Sara Golemon
18588497d7 Fix potential bug in http:// proxy support.
Some proxy servers require entire URI be sent in request string.

Add context option "http"/"request_fulluri" to allow this behavior.
2004-01-30 00:24:18 +00:00
Sara Golemon
c603f3112e FTP dirstream_read should not leave whitespace/newlines on dirents 2004-01-28 22:50:12 +00:00
Sara Golemon
6d10371ec6 'Bug Fix': scandir, being a new function in PHP5 should have always been wrapper aware. 2004-01-28 22:21:54 +00:00
Andrey Hristov
eaab3ef8cd this should not belong to HEAD 2004-01-28 20:25:30 +00:00
Ard Biesheuvel
86fe4ab6a1 CS 2004-01-25 15:08:31 +00:00
foobar
2a05750281 Fixed bug #27020 (Compile failure; sys/select.h: No such file or directory) 2004-01-25 06:09:36 +00:00
Ard Biesheuvel
6b8c406481 Changed prototypes to allow parsing of string literals and constant strings
Minor CS/WS
2004-01-25 00:30:50 +00:00
Andrey Hristov
9957fc6305 Added third parameter (optional) to array_keys for strictness. It behaves
like the "strict" parameter of in_array().
#Closing feature request #24258
2004-01-24 00:25:58 +00:00
foobar
8cd863f738 test case for bug #26938 2004-01-21 22:48:28 +00:00
Ilia Alshanetsky
17d420e5f7 Fixed bug #26938 (exec() has problems reading long lines). 2004-01-21 16:57:13 +00:00
Sara Golemon
1fb629de8a Typo 2004-01-21 04:08:10 +00:00
foobar
56373e08d6 - Fixed bug #26973 (*printf() + modifier broken) 2004-01-21 04:00:07 +00:00
foobar
6f56bc3b8d extend a bit 2004-01-21 03:58:30 +00:00
foobar
d7a54202d8 test case for bug #26973 2004-01-21 03:49:15 +00:00
foobar
dde4c166c9 - Make sure srand() / mt_srand() are really called. 2004-01-19 19:01:17 +00:00
Ilia Alshanetsky
39b62f26cf Fixed bug #26967 (make various file operations return FALSE on error). 2004-01-19 18:40:39 +00:00
Ilia Alshanetsky
608db4728b Added fgetcsv() tests. 2004-01-19 03:55:29 +00:00
foobar
e0782e2519 - Moved php_srand() call into php_rand().
# Makes shuffle() and str_shuffle() to be random without having to
# call srand() in scripts.
# They don't internally call php_srand() at all and it would be silly
# to start adding php_srand() calls all over the place..
2004-01-19 03:14:58 +00:00
foobar
c7f8c84f36 - Fixed bug #26949 (rand(min,max) always returns min when ZTS enabled) 2004-01-19 02:30:54 +00:00
Moriyoshi Koizumi
abfda09eda Fix fgetcsv() to reflect the change on 4.3.5 behaviour. 2004-01-18 20:29:34 +00:00
Andrey Hristov
9e5df0c666 HEAD is now bundled only with ZE2 2004-01-17 17:33:11 +00:00
foobar
f4983c0d3f - Renamed all *php4* files to *php5*, changed all php4/PHP4 to php5/PHP5 2004-01-17 13:00:38 +00:00
Wez Furlong
09fb5dc1e6 Remove stale code from flock();
spotted by Hartmut.
2004-01-14 14:37:38 +00:00
Wez Furlong
cd4262eedd Fix #26772: fgets returns NULL instead of FALSE. 2004-01-14 14:25:01 +00:00
Ilia Alshanetsky
43becc02f1 Fixed bug #26878 (problem with multiple references to the same variable
with different types).
2004-01-13 23:11:31 +00:00