Commit Graph

4167 Commits

Author SHA1 Message Date
Stefan Esser
135fee7f10 and use it... 2005-01-15 18:30:16 +00:00
Stefan Esser
2c25b9d866 Restore unserialize() speed 2005-01-15 18:18:08 +00:00
foobar
58c6ed3583 CS fix 2005-01-15 04:50:26 +00:00
Dmitry Stogov
9de934c210 Fixed SIGSEGV in ext/standard/tests/network/tcp4loop.phpt and ext/standard/tests/network/unixloop.phpt 2005-01-14 09:02:02 +00:00
Moriyoshi Koizumi
20a5a1d61c - Fix the fix :) 2005-01-11 20:58:46 +00:00
Moriyoshi Koizumi
ee18958f98 - Fix htmlentities() / html_decode_entity() UTF-8 related bugs
initially reported by Kamesh Jayachandran
2005-01-11 20:44:04 +00:00
foobar
32d86482cc update test to include negative floats as strings too 2005-01-10 16:00:08 +00:00
foobar
71ea389f74 Missing $Id$ tag 2005-01-10 15:20:53 +00:00
foobar
2b407ef934 - Update credits 2005-01-10 15:11:17 +00:00
foobar
a139dbf9cc - Fix outside-source-tree builds. Always include generated header files
with #include <some_header.h> to make sure the correct file is used.
2005-01-09 21:05:06 +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
Marcus Boerger
5516915115 - Add new test 2005-01-08 13:47:05 +00:00
Marcus Boerger
344d2210c2 - Unify 2005-01-08 13:46:18 +00:00
Antony Dovgal
5eeb444b8b remove duplicated include 2005-01-07 20:55:46 +00:00
Wez Furlong
c4bc5b7f33 Fix #31408: memory leak in stream_socket_recvfrom 2005-01-04 15:30:45 +00:00
Moriyoshi Koizumi
88ce94a3c2 - Add testcases for bug #29493 and #31213. 2005-01-02 06:51:03 +00:00
foobar
4cf9d27072 - Fixed bug #28930 (PHP sources pick wrong header files generated by bison) 2004-12-30 15:18:24 +00:00
foobar
69eec3f3b9 MFB_4_3: Quote macro names in AC_DEFUN() 2004-12-30 07:08:39 +00:00
Ilia Alshanetsky
585833ab7e Fixed proto. 2004-12-30 01:23:44 +00:00
Zeev Suraski
f64c4f4569 MFB - description fix 2004-12-27 18:22:50 +00:00
Wez Furlong
843807c647 When a socket is non-blocking, don't block ssl enabled sockets.
Allow for non-blocking negotiation when calling stream_socket_enable_crypto().
That function will return the foolowing values:

false - negotiation failed
0     - try again when more data is available (only for non-blocking sockets)
true  - ssl was enabled
2004-12-25 02:02:56 +00:00
Wez Furlong
e1f3beaa13 really don't blow up 2004-12-23 19:39:22 +00:00
Antony Dovgal
38d8e20f68 destroy return_value and fix leak in array_fill() 2004-12-23 16:35:48 +00:00
Wez Furlong
d3d757d95a don't crash... 2004-12-23 05:56:50 +00:00
Magnus M��tt�
774a978ea9 Fix test so it doesn't hang make test on HP-UX. 2004-12-21 04:34:22 +00:00
Derick Rethans
13c2cbb515 - MF43: Fixed bug #31072 (var_export() does not output an array element with an
empty string key). (Derick)
2004-12-17 14:40:39 +00:00
Ilia Alshanetsky
77c0395968 Fixed bug #31087 (broken php_url_encode_hash macro). 2004-12-16 22:39:39 +00:00
Antony Dovgal
33c24b5436 fix leak (init array only if we got valid start key) 2004-12-16 19:13:58 +00:00
foobar
ce742b08b0 - Fix typo (avaliable -> available). (bug #28725) 2004-12-16 12:34:32 +00:00
Ilia Alshanetsky
cc17322c14 MFB: test fix. 2004-12-14 17:43:53 +00:00
Ilia Alshanetsky
6d7cac7731 Fixed bug #28228 (NULL decimal separator is not being handled correctly). 2004-12-14 00:37:19 +00:00
Wez Furlong
419bbffeef Make it really build... 2004-12-13 13:52:01 +00:00
Wez Furlong
d213b67cdf Add missing constants for socketpair().
I thought I had included these...
Good catch Nuno :)
2004-12-12 23:21:53 +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
Ilia Alshanetsky
c96a1e0ddf Fixed bug #31056 (php_std_date() returns invalid formatted date if
y2k_compliance is On).

# will MFH to 5.0.X and 4.3.X after release
2004-12-12 15:50:06 +00:00
Antony Dovgal
01b996b98b fix buffer overrun & segfault in get_meta_tags() when there is no tag value 2004-12-10 10:30:01 +00:00
Ilia Alshanetsky
6883a3f09c Fixed bug #30990 (allow popen() on *NIX to accept 'b' flag). 2004-12-06 23:30:37 +00:00
Antony Dovgal
b6b8bf0010 fix array_walk_recursive() so it doesn't reuse cached fci between calls
and add test for it
2004-12-03 17:43:23 +00:00
Stefan Esser
9a18fb197d Handle already existing elements correctly 2004-12-03 16:02:48 +00:00
Antony Dovgal
ccc6462cc5 revert my previous patch as it breaks more than fixes 2004-12-02 16:35:02 +00:00
Stefan Esser
1094a0d243 Beware of negative indices 2004-12-01 22:42:00 +00:00
Derick Rethans
b6f9b5c693 - Added testcase for bug #30695 2004-11-29 10:15:03 +00:00
Antony Dovgal
dbc0bb7514 fix #29954 (array_reduce segfaults when initial value is array) 2004-11-28 17:03:45 +00:00
Stefan Esser
6d98fc38b5 Fixed: removed possible integer over-/underflows 2004-11-28 12:44:28 +00:00
Dmitry Stogov
5ece0ecdfb Test was fixed. 2004-11-23 17:21:33 +00:00
Derick Rethans
a6ded1178e - Added test for bug #28599 2004-11-23 09:40:07 +00:00
Antony Dovgal
39b25e4f3d fix yet another typo 2004-11-21 13:35:32 +00:00
Antony Dovgal
d9dd604ae7 fix typo (bug #30857) 2004-11-21 13:33:20 +00:00
Antony Dovgal
2a588879ef fix bug #30587 (array_multisort doesn't separate zvals before changing them) 2004-11-19 16:55:37 +00:00
Frank M. Kromann
11363296be Avoid renaming of sprintf to php_sprintf 2004-11-15 21:13:25 +00:00
Derick Rethans
d79407f4fd - MF5.0: Fixed bug #28599 (strtotime fails with zero base time). 2004-11-15 16:31:12 +00:00
Derick Rethans
61364b5bb1 - MFH4.3: Cleaned up some of the locale mess:
* all internal use of sprintf, snprintf and the like will always
    use the . as thousands seperator (if php.h is included only!).
  * echo, printf() and sprintf() always render locale-aware
  * added the %F modifier for non-locale aware rendering for floats
2004-11-15 13:42:22 +00:00
Antony Dovgal
d33eb14569 fix #30751 (phpinfo() shows the same ini path after reconfigure with --with-config-file-path) 2004-11-11 06:57:06 +00:00
Wez Furlong
be4778b87e Fix leaking handle.
Thanks to ilya77 at gmail dot com
2004-11-10 19:47:15 +00:00
Joe Orton
0f858fc744 Make the "rounding fuzz" check work again with gcc 3.3 and later,
fixing the bug24142 test.
2004-11-09 15:58:16 +00:00
Derick Rethans
59651c4e58 - Fixed bug #30630: Added a BSD based strtod function that is
locale-independent. (PHP part)
2004-11-03 23:36:51 +00:00
Ilia Alshanetsky
9a9815a123 emalloc() failures are handled by zend engine. 2004-11-03 22:17:45 +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
Ilia Alshanetsky
5f9d72c431 Fixed open_basedir & safe_mode bypass inside readlink() function. 2004-11-02 00:37:32 +00:00
Marcus Boerger
c18e248e60 - Remove doubled definition 2004-11-01 22:28:59 +00:00
Marcus Boerger
b0c2af58f7 - Add some comment 2004-11-01 21:06:42 +00:00
Marcus Boerger
2ce7bcd742 - Allow direct access to spl class entries (SPL cannot be build shared) 2004-11-01 20:57:23 +00:00
Marcus Boerger
db47e478c5 - Use new way for global variables
- Cache class lookup
2004-11-01 12:09:46 +00:00
Marcus Boerger
8e3a8b1e8e - Add interface Countable (PECL #30113) 2004-11-01 10:45:54 +00:00
Marcus Boerger
0e6d7d652e - Update to new API 2004-10-30 19:14:05 +00:00
Andi Gutmans
939a0f136e - [PATCH] Bug fix for #29770, but for PHP 4.3.9 (Vladimir Zidar) 2004-10-29 00:37:22 +00:00
Ilia Alshanetsky
321cd10977 Simplify code. 2004-10-28 22:22:22 +00:00
Ilia Alshanetsky
23344ea427 Simplify and cleanup code. 2004-10-27 23:12:05 +00:00
Ilia Alshanetsky
852170d740 Merge gettimeofday() based code to prevent duplication. 2004-10-25 13:28:56 +00:00
Rob Richards
b20d2ba86c fix windows build 2004-10-22 13:11:33 +00:00
Ilia Alshanetsky
4b947b0525 Allow gettimeofday() return a float if optional argument is specified. 2004-10-21 21:20:52 +00:00
Ilia Alshanetsky
0818faee7f Slight optimization in str_split() when split length is the same or greater
then the string length.
2004-10-20 22:44:43 +00:00
Ilia Alshanetsky
c5e2e02b0a Simplify code. 2004-10-19 22:25:15 +00:00
Anantha Kesari H Y
2559c94740 As NetWare LibC don't have the implementation of chown and chgrp there is no point in exposing this function to PHP 2004-10-19 08:21:24 +00:00
Ilia Alshanetsky
51ffc01776 Added optional offset parameter to file_get_contents(). 2004-10-13 23:26:29 +00:00
Ilia Alshanetsky
2390ca71f1 MFH: Added optional offset parameter to stream_get_contents(). 2004-10-12 23:25:24 +00:00
Ilia Alshanetsky
5c04e39383 Fixed bug #30362 (stream_get_line() not handling end string correctly). 2004-10-11 18:31:49 +00:00
Marcus Boerger
2ffbbb1588 Revert for now 2004-10-08 22:19:03 +00:00
Marcus Boerger
f0c9f998d3 speling 2004-10-08 19:02:00 +00:00
Ilia Alshanetsky
2476198086 Fixed bug #30356 (str_ireplace() does not work on all strings). 2004-10-07 23:10:35 +00:00
Marcus Boerger
476013cebd - Use ZEND_ARG_SEND_AUTOMATIC for several array functions 2004-10-05 18:37:17 +00:00
Ilia Alshanetsky
5316f7bf25 Fixed bug #30281 (Prevent non-wbmp images from being detected as such). 2004-10-04 20:42:30 +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
Marcus Boerger
bb77132391 - Add new test 2004-10-04 17:53:55 +00:00
Anantha Kesari H Y
474c53348c removed unwanted comments, NEW_LIBC checks and NetWare specific stat structure population 2004-09-29 10:21:41 +00:00
Anantha Kesari H Y
745beb2deb removed redundant NEW_LIBC and CLIB_STAT_PATCH checks for NETWARE 2004-09-29 09:47:15 +00:00
Anantha Kesari H Y
ec42c1432c implemented proc_open for NETWARE 2004-09-29 06:04:36 +00:00
Sterling Hughes
8f1a327edb Add strptime function. 2004-09-29 04:57:19 +00:00
foobar
72b2d1c9ee MFB: - Fixed bug #30205 (Missing <unistd.h> in crypt() configure test). 2004-09-28 20:42:56 +00:00
Ilia Alshanetsky
52ee529ef4 Make test more generic.
# Thanks Marcus.
2004-09-27 17:52:25 +00:00
Anantha Kesari H Y
549ec65eee removed redundant NEW_LIBC checks 2004-09-27 15:55:04 +00:00
Anantha Kesari H Y
32788092da removed redundant NEW_LIBC and CLIB_STAT_PATCH checks 2004-09-27 15:37:33 +00:00
Anantha Kesari H Y
09d305c1ff removed redundant NEW_LIBC checks 2004-09-27 14:51:17 +00:00
Marcus Boerger
32e478b9fc - Add fputcsv() (David Sklar) 2004-09-26 21:55:22 +00:00
Marcus Boerger
881c2f05f5 - Earlier detection of failure (.c now) 2004-09-26 21:49:16 +00:00
Marcus Boerger
abe47301c1 - Earlier detection of failure 2004-09-26 21:47:27 +00:00
Ilia Alshanetsky
d6501f756a fixed test output. 2004-09-26 19:12:06 +00:00
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