Commit Graph

3746 Commits

Author SHA1 Message Date
Sara Golemon
3d6fcddfd2 Restore ability to use strrpos/strripos with an ordinal needle 2003-12-03 01:11:36 +00:00
Wez Furlong
05b9b20ed8 Add new (optional!) win32 build infrastructure.
Will follow up to internals@ shortly.
2003-12-02 23:17:04 +00:00
foobar
49af06e7b4 - Updated credits 2003-12-02 14:50:37 +00:00
Moriyoshi Koizumi
3c02eb1ffe all '_' (underscores) should be replaced by '\x20' (whitespaces)
in encoding.
# should I bump API version?
2003-12-02 07:36:42 +00:00
Ilia Alshanetsky
5a4dda42e3 Optimize substr_replace (this makes it 3-8 times faster depending on the
string length).
2003-12-01 23:17:22 +00:00
Sara Golemon
681d18effd Move safemode/basedir checks for url_stat to plain_wrapper. 2003-12-01 19:47:05 +00:00
Ilia Alshanetsky
d9edc99fbe MFB: Fix for possible uninitialized usage of subject_r. 2003-11-30 19:56:30 +00:00
Marcus Boerger
c3fddcab62 Fix tests for E_STRICT and check for E_STRICT in run-tests.php. 2003-11-30 13:57:20 +00:00
Wez Furlong
37f135ceef Add stream_socket_sendto and stream_socket_recvfrom which work very much
like sendto() and recvfrom() syscalls.
2003-11-29 21:46:50 +00:00
Sara Golemon
e9a1d12f71 Add in missing stat element and fix win32 build 2003-11-29 20:01:00 +00:00
Ilia Alshanetsky
99dec6927c Fixed bug #26463 (Incorrect handling of semicolons after heredoc) 2003-11-29 19:05:14 +00:00
Sara Golemon
9defdab180 Finish off ftp://'s url_stat support 2003-11-29 17:16:58 +00:00
Ilia Alshanetsky
91052eb93b Fixed bug #26458 (var_dump(), var_export(), debug_zval_dump() not binary
safe for array keys).
2003-11-29 04:43:06 +00:00
Sara Golemon
026d4c9e4c Route php_stat() via streams/url_stat API (php_stream_stat_path).
This enables fopen-wrappers support on stat() and related family calls.
2003-11-28 23:25:28 +00:00
Ilia Alshanetsky
e1bdc33d18 More memory leak fixes for stream contexts. 2003-11-28 18:33:14 +00:00
Wez Furlong
28277f1d00 fix #26001; serialize crashes when accessing an overloaded
object that has no properties (NULL hashtable).
2003-11-28 15:42:58 +00:00
Ilia Alshanetsky
e898ae955e Added image_type_to_extension() function. 2003-11-27 22:03:35 +00:00
Wez Furlong
43698d6dbb initialize this one to be safe 2003-11-27 17:37:35 +00:00
Ilia Alshanetsky
cd482c502c Removed dead code. 2003-11-27 01:08:42 +00:00
Sebastian Bergmann
8dd6cded76 'Fix' for bison 1.875. 2003-11-25 15:36:38 +00:00
Ilia Alshanetsky
d1a04493bb Make sure zend stuff is built first. 2003-11-24 18:23:36 +00:00
Ilia Alshanetsky
c722ab91ee Fixed bug #26355 (flock() doesn't initialize the wouldblock argument) 2003-11-24 01:42:43 +00:00
Ilia Alshanetsky
b03d3fa5b7 Added php_strip_whitespace() and php_check_syntax() functions. 2003-11-24 01:17:27 +00:00
Hartmut Holzgraefe
ead7c2388d debug mode no longer needed 2003-11-20 19:01:33 +00:00
Andi Gutmans
fea31127ec - Fix Windows build 2003-11-20 09:14:51 +00:00
Sara Golemon
0101c27823 New function: headers_list(). Ennumerate headers sent to SAPI engine 2003-11-19 21:10:33 +00:00
Hartmut Holzgraefe
7eb2471565 XSchema stuff finally done right ... (at least i hope so ...) 2003-11-19 19:55:13 +00:00
Hartmut Holzgraefe
8053a324aa typo fix 2003-11-19 17:38:42 +00:00
Hartmut Holzgraefe
47ee4d5e88 regression test for bug # 26320
"strtotime() does not understand ISO6801 datetime format as used in XMLSchema"
2003-11-19 16:37:50 +00:00
Hartmut Holzgraefe
5339f9134f Testcase done right ... 2003-11-19 16:19:28 +00:00
Hartmut Holzgraefe
8cc9c96cef regression test for http://bugs.php.net/bug.php?id=26317
"military timezones and strtotime()"
2003-11-19 16:01:25 +00:00
Ilia Alshanetsky
2b7b909e16 Fixed bug #26285 (escapeshellarg() uses wrong quotes on windows). 2003-11-19 15:34:30 +00:00
Hartmut Holzgraefe
45a07a546f the military time zone offsets where pointing in the wrong direction 2003-11-18 06:46:07 +00:00
Hartmut Holzgraefe
f4d669d712 make strtotime() understand the datetime format used with XML Schema 2003-11-18 06:45:01 +00:00
Ilia Alshanetsky
2a58fb80e7 Fixed Bug #25694 (round() and number_format() give inconsistent results). 2003-11-18 02:50:41 +00:00
Ilia Alshanetsky
c53b53f926 Rename nanosleep() to time_nanosleep(). 2003-11-14 22:55:54 +00:00
Moriyoshi Koizumi
6b7bd4be8f ctime (#10) may differ on several filesystems.
# I confirmed it on Darwin
2003-11-14 08:59:30 +00:00
Ilia Alshanetsky
127ed194b7 Added configure check for nanosleep() availability. 2003-11-12 23:43:46 +00:00
Marcus Boerger
81d1a19d0b Bugfix #26216: ("getimagesize(): stream does not support seeking" when
using remote files)
2003-11-12 22:51:22 +00:00
Ilia Alshanetsky
3691ab699c Added nanosleep(), in addition to allowing setting of very short states.
This function is signal safe.
2003-11-12 22:02:37 +00:00
Jay Smith
544fe688c5 Plugged a small memleak when errstr isn't efree()'d. 2003-11-12 22:01:02 +00:00
Ilia Alshanetsky
770a111a43 Fixed bug #26198 (strtotime() handling of M/F Y date format). 2003-11-12 02:55:03 +00:00
Ilia Alshanetsky
7fe481c9d0 Fixed bug #26176 (Fixed handling of numeric keys in INI files). 2003-11-10 04:12:38 +00:00
Marcus Boerger
220e41a421 Move typedef to where it is needed now. 2003-11-07 09:26:18 +00:00
Marcus Boerger
ccb6311406 Make php_stat() available for extensions. 2003-11-07 09:16:16 +00:00
Moriyoshi Koizumi
bb6f3a115e Fixed bug #24394 (serializing cross-referenced objects causes segfault) 2003-11-04 16:08:10 +00:00
Derick Rethans
3ab8d263b8 - Always store the URI path in the streams structure, and expose it with
stream_get_meta_data().
2003-11-03 14:12:46 +00:00
Ilia Alshanetsky
ab7ee13670 Added substr_compare(). 2003-10-30 00:49:33 +00:00
Moriyoshi Koizumi
e6feb47f00 Some clean-ups 2003-10-29 22:25:57 +00:00
Moriyoshi Koizumi
cca80292fe This check's always necessary. 2003-10-29 21:50:15 +00:00
Moriyoshi Koizumi
28369f6e86 Add test case for bug #26003 2003-10-29 19:45:38 +00:00
Moriyoshi Koizumi
13f16d5690 MFB(r-1.109.2.12): A possible fix for bug #26026 2003-10-29 18:48:37 +00:00
Sara Golemon
70f4a0c9ec Allow userspace filters to use wildcards 2003-10-29 00:19:57 +00:00
Sara Golemon
735b24a727 Allow userfilter instantiation to programmatically fail by returning false.
Equivalent of Cspace filter "failure" by returning NULL.
2003-10-28 23:56:57 +00:00
Ilia Alshanetsky
8f6b374d1d By popular demand renaming uu(encode/decode) to convert_uu(encode/decode). 2003-10-28 04:02:11 +00:00
Moriyoshi Koizumi
1085c08aa5 Add missing reinitialization call 2003-10-27 22:45:58 +00:00
Moriyoshi Koizumi
69dcdcb7c1 Fixed bug #26003 (fgetcsv() not binary-safe on null bytes) 2003-10-27 22:36:44 +00:00
Ilia Alshanetsky
17b9b2dc85 Added uuencode() & uudecode() functions. 2003-10-27 05:35:41 +00:00
Marcus Boerger
ee0f709e4b - Fixed bug #25581 (getimagesize () return incorrect values on bitmap
(os2) files)
2003-10-25 14:06:29 +00:00
Marko Karppinen
074ca45399 Workaround for bug #25955
Generalized a Darwin check in dns.c to a check for inet_pton() (kalowsky)
2003-10-24 17:09:36 +00:00
Ilia Alshanetsky
4d349926ff Fixed some test names.
Removed extraneous \r from a number of tests.
2003-10-24 03:31:57 +00:00
Moriyoshi Koizumi
bde1fe4d81 Missing '&' in the result of get_html_translation_table() 2003-10-21 01:46:54 +00:00
Moriyoshi Koizumi
5dac05638f Fix typo 2003-10-20 15:45:01 +00:00
Ilia Alshanetsky
21fceae7d6 Fixed bug #25923 (mail() modifies the to & subject arguments). 2003-10-20 14:22:01 +00:00
Ilia Alshanetsky
26f7af25ba Fixed bug #25895 (Incorrect detection of safe_mode limited ini options) 2003-10-20 01:59:35 +00:00
Shane Caraveo
e5103d764a make file uri's work with streams 2003-10-19 20:04:33 +00:00
Shane Caraveo
4505a611ba make parse_url work correctly for file uri's on windows, such as
file:///c:/somepath/somefile.txt
2003-10-19 20:00:51 +00:00
Wez Furlong
54d1769653 MFB Fix for #25825 2003-10-15 00:18:53 +00:00
Ilia Alshanetsky
a9b20a6abf Fixed bug #25800 (parse_url() could not parse urls with empty port). 2003-10-13 04:27:23 +00:00
Ilia Alshanetsky
3158ff714e Remove sendmail patch check. 2003-10-13 04:15:09 +00:00
Andrey Hristov
638b940307 New array functions for doing intersection of arrays that are complementary
to array_*diff* family of functions. Namely array_uintersect(), array_uintersect_assoc(),
array_intersect_uassoc() and array_uintersect_uassoc(). Test case is also included.
#docs and news entry later.
2003-10-09 08:10:39 +00:00
Wez Furlong
628afb40b6 Implement stream_get_contents, which is somewhat akin to file_get_contents,
except that it works on an already opened stream.
2003-10-08 10:07:25 +00:00
Moriyoshi Koizumi
ed40a56c6c Oops.. 2003-10-08 01:51:32 +00:00
Moriyoshi Koizumi
f4595d18af Better fix for bug #25758 2003-10-08 01:49:31 +00:00
Ilia Alshanetsky
6f8b8ade45 Fixed bug #25758 (var_export does not escape ' & \ inside array keys) 2003-10-08 01:16:44 +00:00
Ilia Alshanetsky
31a3c87159 Fixed clobbering of the source array, when merging complex
multi-dimensional arrays. Bug reported by Lukas Smith.
2003-10-05 19:37:02 +00:00
Moriyoshi Koizumi
2c95c42404 Fix the macro to prevent it from falling over in a mess 2003-10-05 13:59:15 +00:00
Moriyoshi Koizumi
80edbeba2f Change fgetcsv() so that the second parameter is also optional. 2003-10-04 21:06:29 +00:00
Moriyoshi Koizumi
10961114ad Fix autoconf(2.13) build 2003-10-04 12:23:11 +00:00
Moriyoshi Koizumi
921e5b47c5 Fix fgetcsv() to correctly support international characters
# note: mblen() is not a mbstring function, but is part of the ANSI standard
# which is even supported by Microsoft's libc.
2003-10-04 02:51:19 +00:00
Moriyoshi Koizumi
4859431fc1 Fixed bug #24766 (strange result array from unpack()) 2003-10-03 22:41:43 +00:00
foobar
f3f9f8db7f - Added test for bug #24766
# This bug is caused by the HANDLE_NUMERIC() change in ZE2 vs ZE1
2003-10-03 05:47:07 +00:00
Moriyoshi Koizumi
76ae064883 Add a test case for bug #25708 2003-10-02 22:50:28 +00:00
Moriyoshi Koizumi
75bb36ed09 Fixed bug #25708 (extract($GLOBALS, EXTR_REFS) mangles $GLOBALS) 2003-10-02 22:20:48 +00:00
Moriyoshi Koizumi
6745000c37 Fix for the fix for #25707 2003-10-02 19:23:00 +00:00
Moriyoshi Koizumi
04bcd89277 Add support for hexadecimal-style numeric entities (&#x..;) 2003-10-02 19:07:59 +00:00
Moriyoshi Koizumi
edd18bae09 Drop multibyte character support in html_entity_decode().
# This has never worked as expected.
2003-10-02 19:06:44 +00:00
Moriyoshi Koizumi
647408978e Fixed bug #25707 (html_entity_decode over-decodes <) 2003-10-02 06:57:21 +00:00
Andrey Hristov
26aba89a43 Move the test to new file. 2003-09-30 15:22:33 +00:00
Andrey Hristov
a11645dda8 fix 2003-09-30 15:06:05 +00:00
Andrey Hristov
40088d0bbc smash a segmentation fault 2003-09-30 15:00:36 +00:00
Andrey Hristov
02827c46be Memory leak fixed (no need of MFH since this is code specific to PHP5) 2003-09-30 12:43:58 +00:00
Stanislav Malyshev
e21669502b MF4: allow realpath() for win32 non-ZTS 2003-09-30 09:52:11 +00:00
Moriyoshi Koizumi
103b3c6626 Simplification. 2003-09-29 02:23:40 +00:00
Sara Golemon
2acca5d015 Test for Bug 25671 2003-09-27 18:48:48 +00:00
Sara Golemon
ef7905a188 Bug Fix#25671 Corruption in subarrays in subject when using str_replace 2003-09-26 17:57:13 +00:00
foobar
3462761d2b typo 2003-09-26 09:56:24 +00:00
foobar
ef1c2d59a4 Test case for bug #25665 2003-09-26 09:55:56 +00:00
Hartmut Holzgraefe
075e66cc08 signed/unsigned compiler warning fixes 2003-09-26 08:09:56 +00:00
Hartmut Holzgraefe
0a46866d8f silenced a compiler warning 2003-09-26 07:51:52 +00:00
Ilia Alshanetsky
6966350013 Fixed typo. 2003-09-26 00:40:32 +00:00
Andrey Hristov
a7ac568486 New test cases for the new 4 functions :
- array_udiff()
- array_udiff_assoc()
- array_diff_uassoc()
- array_udiff_uassoc()
2003-09-23 17:40:34 +00:00
Andrey Hristov
3579f212df 4 new functions :
array_udiff()
array_udiff_assoc()
array_diff_uassoc()
array_udiff_uassoc()
They work like array_diff() or array_diff_assoc() but callback function(s)
can be used to perform the comparisons. For example array_udiff_uassoc()
expects 2 callbacks are last 2 parameters one is used to compare the values
of the entries in the arrays the second to compare the keys.
Class methods are also valid callbacks. Even when the data that should be
used in the comparison is private or protected then a static method of a
class should be used (this behaviour can be seen in the regression test -
007.phpt).
2003-09-23 17:37:29 +00:00
Andrey Hristov
63d7df3e2f improve the fix for #25494. If more then one bad parameter is passed
an warning for all will be emitted.
2003-09-22 23:19:17 +00:00
Ilia Alshanetsky
e2caa6eaf9 String formatting stuff. 2003-09-22 04:18:24 +00:00
Sascha Schumann
36ac7a5bb0 MFB Avoid zero-length keys which result in a spinning process 2003-09-20 16:10:49 +00:00
Ilia Alshanetsky
0917a7f62f Fixed bug #25583 (Incorrect handling of paths starting with / on win32
inside glob() function).
2003-09-20 02:51:20 +00:00
Ilia Alshanetsky
67a070c151 Fixed bug #25530 (checkdate incorrectly handles floats) 2003-09-15 00:07:51 +00:00
Jay Smith
6c6fd76bac Fixed bug #25494 (array_merge allowing "false" as argument (silent when
non-array is passed))
# 4.3 throws E_NOTICEs, 5 errors out on non-array args as per Ilia's
# suggestion.
2003-09-11 17:40:18 +00:00
Ilia Alshanetsky
f3f3b772b2 Cleanup r1.76 patch 2003-09-11 04:46:10 +00:00
Ilia Alshanetsky
dfe3f32ec6 Cleanup previous patch. 2003-09-10 01:07:01 +00:00
Ilia Alshanetsky
29e829fdcf Fixed bug #14049 (realpath() w/ZTS returns invalid results for non-existent
paths)
2003-09-10 00:22:10 +00:00
Melvyn Sopacua
50947cb155 MFB: Fix US/Eastern vs. America/New_York style tzset implementations. 2003-09-09 21:56:33 +00:00
foobar
5e40faa1d6 - Fixed bug #25211 (image.c compile failure with AIX) 2003-09-09 19:25:55 +00:00
Ilia Alshanetsky
80fb9496b3 Re-enable sendmail binary check, now with parameter detection. 2003-09-08 20:15:35 +00:00
foobar
5a7d97fab7 typo + proto fix 2003-09-07 00:00:00 +00:00
Sara Golemon
f9734f810c Add missing proto 2003-09-06 14:56:36 +00:00
Sara Golemon
e6fbb7baf5 http.h php_http,h rename 2003-09-06 14:52:10 +00:00
foobar
d00a14339c - Typos, CS, etc.
# Sara, add the missing description to the proto..
2003-09-06 13:07:47 +00:00
foobar
ed32007f58 renamed http.h -> php_http.h 2003-09-06 12:56:02 +00:00
Sara Golemon
c0469ceb8d Fix Objects bug. (Objects != Arrays) 2003-09-06 07:34:58 +00:00
Sara Golemon
490e7fd6fd Fix segfault on uninitialized zval, skip NULL/Resource types, fix integer value handling, and process doubles/bools more efficiently. 2003-09-06 06:57:40 +00:00
Sara Golemon
3b63b21f37 Standard Footer 2003-09-06 05:41:48 +00:00
Sara Golemon
79ad5802a5 Prevent Recursion 2003-09-06 05:41:36 +00:00
Sara Golemon
0be65c49d3 Introducing php_url_encode_hash_ex() internal function
and http_build_query() userspace function.
2003-09-06 00:35:21 +00:00
foobar
af06d049cf test for bug #25378 2003-09-03 16:40:52 +00:00
foobar
7d57f9eddf sync 2003-09-03 16:24:24 +00:00
foobar
ba6c58ad73 - Fixed bug #25378 (Invalid data passed to unserialize() causes segfault) 2003-09-03 16:24:15 +00:00
foobar
acd8096d53 - Fixed bug #25372 (sscanf() does not work with %X) 2003-09-03 11:54:35 +00:00
Ard Biesheuvel
3d6426ee14 Fix use of EXTERN_C macros 2003-09-02 13:34:23 +00:00
foobar
62d2810cfc - Fixed bug #25343 (is_dir() gives warning on FreeBSD). 2003-09-02 01:22:02 +00:00
Sara Golemon
29664d9322 MFB: Plug leak when invalid domain name provided. 2003-09-01 22:38:40 +00:00
Stanislav Malyshev
90f7a474ac The sendmail_path executable check breaks setups that use parameters
for sendmail - including the default setup - so I'm disabling it for now.
2003-09-01 08:20:17 +00:00
Sascha Schumann
e090d2ddb9 Never overwrite .c files when re2c does not exist. 2003-08-30 07:27:05 +00:00
Sascha Schumann
436a07176c fix format strings 2003-08-28 16:49:57 +00:00
Sascha Schumann
6a7dde29e7 kill warnings 2003-08-28 16:28:33 +00:00
Sascha Schumann
96ad1c8bcb fix format string (long port) 2003-08-28 15:16:20 +00:00
Andrey Hristov
367880b2c1 proto fix 2003-08-28 12:18:51 +00:00
Ilia Alshanetsky
32b5df0bc7 Prevent abrupt script execution when sendmail_path contains invalid
executable.
Add more detail to the warnings regarding execution of sendmail binary.
2003-08-27 23:53:15 +00:00
Sara Golemon
3560cd83c0 Squelch warning "Variable may be used uninitialized."
This would never occur anyway because of the logic of the function,
but gcc isn't quite smart enough to realize this.
2003-08-27 00:43:54 +00:00
Sara Golemon
a76f0dc8ae Bugfix#25239 Closing control stream while data stream is open violates RFC959 section 2.3 2003-08-25 22:25:33 +00:00
Jon Parise
34821ed474 Under FreeBSD, statfs(2) requires both <sys/mount.h> _and_ <sys/param.h>.
The autoconf check for <sys/mount.h> was failing because <sys/param.h>
wasn't being universally included.

This gets disk_total_space() and disk_free_space() working again under
FreeBSD.
2003-08-21 06:24:17 +00:00
Sara Golemon
6f88d49d6c Add resume_pos (resume position) context option for restarting file downloads. 2003-08-20 21:59:29 +00:00
Brian France
d50e0bf4de Added a parameter to php_setcookie to toggle URL encoding of the cookie data
Added the function setrawcookie that turns off URL encoding of the cookie data
Changed setcookie to turn on the URL encoding of the cookie data
2003-08-20 20:51:10 +00:00
Ilia Alshanetsky
ece0a731e9 Fixed bug #25170 (Problem with generation of random numbers on solaris) 2003-08-20 16:40:22 +00:00
Derick Rethans
5e1062fe7c - Back out Ilia's not-yet-ready patch. 2003-08-19 06:34:46 +00:00
Wez Furlong
bedccec85b Update credits
# re-ordering of some of the lines is due to case-insensitive
# win32 filesystem
2003-08-18 23:31:14 +00:00
Wez Furlong
42a8c536de 5 sir 2003-08-18 23:26:31 +00:00
Ilia Alshanetsky
c23609efa7 Fixed paths in various tests. In certain conditions usage of partial file
paths results in test failures.
2003-08-18 22:57:49 +00:00
Sascha Schumann
feb1ccc6b8 Use explicit rule to create parsedate.c 2003-08-17 14:16:03 +00:00
Derick Rethans
fe7bb97737 - Fix the comment too 2003-08-17 11:49:18 +00:00
Derick Rethans
cd2540373f - This parser contains 17 reduce conflicts 2003-08-17 11:48:29 +00:00
David Croft
2a216c1f36 #typo 2003-08-17 09:57:21 +00:00
Derick Rethans
77729f89dd - Fixed bug #17988: strtotime fails to parse timestamp from postgresql
#- This is actually a feature request
2003-08-16 20:55:28 +00:00
Ilia Alshanetsky
64345cdd6e Fixed a possible crash due to invalid handling of assert ini options. 2003-08-14 00:37:42 +00:00
Wez Furlong
1e679b02fe It's boolean, not long.
# fixes a warning under vc7
2003-08-13 22:31:22 +00:00
foobar
e7820af9f8 fix test 2003-08-13 10:40:28 +00:00
foobar
604b06e4ca Fix the test. (this was mixed test with bug #24159) 2003-08-13 09:48:20 +00:00
foobar
8733d2dacb revert that, it did not fix anything 2003-08-13 01:37:31 +00:00
foobar
0ee19d47d9 Fix external builds (configure run outside srcdir) 2003-08-13 01:24:27 +00:00
Sara Golemon
cc28589156 Prevent carryover when max-min > signed int max 2003-08-13 00:49:22 +00:00
Ilia Alshanetsky
3652ab6032 Fixed bugs in various tests. 2003-08-12 00:44:05 +00:00
foobar
24b26ec546 Fix the test results (negative indices are not strings anymore) 2003-08-11 23:55:46 +00:00
Ilia Alshanetsky
ed40ae2650 emalloc -> safe_emalloc 2003-08-11 23:16:54 +00:00
Marcus Boerger
f77f977d0e Bugfix 21918 2003-08-11 20:14:25 +00:00
Ilia Alshanetsky
4320c6994f Fixed bug #21957 (serialize() mangles objects with __sleep). 2003-08-11 03:22:24 +00:00
Sara Golemon
530f502198 Collection of tests for stream_socket_(client|server)(). TCP/UDP (AF_INET & AF_INET6) and UNIX/UDG 2003-08-11 01:30:55 +00:00
foobar
ebec2bb859 Moved the RINIT(crypt) stuff into crypt() itself. 2003-08-11 00:49:19 +00:00
foobar
9a2a0aa5e1 - Fixed bug #25007 (rand() & mt_rand() seed RNG every call).
# Also cleaned up the code a bit with this fix.
2003-08-11 00:42:29 +00:00
Ilia Alshanetsky
e5b7d5ccb4 Fixed bug #24897 (inconsistent behavior of shuffle() & array_multisort()) 2003-08-09 20:49:00 +00:00
Ilia Alshanetsky
ac41c5db23 Added/improved tests for bugs 24142, 24063, 24951, 24980 2003-08-09 16:44:33 +00:00
Ilia Alshanetsky
e49964fe99 Do not assume array contains numeric values. 2003-08-09 16:43:28 +00:00
Marcus Boerger
66b910e87c Bugfix #24142, part 2 2003-08-09 01:12:41 +00:00
Ilia Alshanetsky
a2873880f6 Fixed bug #24980 (array_reduce() uses first element as default running
total).
Fixed memory leak that can be replicated using the function example on
http://www.php.net/array_reduce
2003-08-08 23:50:36 +00:00
Ilia Alshanetsky
370ea1c82f Avoid a round() bug that occurs due to over optimization of C code by gcc.
This bug was confirmed across multiple systems with gcc 2.95.3 & 3.X+
2003-08-08 23:40:44 +00:00
Ilia Alshanetsky
6f2df21136 Fixed bug #24909 (Bad random numbers with ZTS builds on Solaris) 2003-08-08 13:34:38 +00:00
Sara Golemon
1a0bd6e903 Plug leak in ftp_url_stat 2003-08-08 06:18:25 +00:00
Moriyoshi Koizumi
12ac36ca8d Move shutdown code to better place 2003-08-07 19:53:31 +00:00
Moriyoshi Koizumi
3bf0b26218 Tru64 requires TZ values be POSIX styled.
# See http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V50_HTML/MAN/MAN3/0247____.HTM for detail.
2003-08-07 17:46:18 +00:00
Zeev Suraski
522bcba0a8 Fix docline 2003-08-07 15:51:05 +00:00
Ilia Alshanetsky
e06311c091 Fixed bug #24839 (& -> &amp; in php credits) 2003-08-07 15:41:24 +00:00
Ilia Alshanetsky
02e0e08958 Fixed bug #18291 (escapeshellcmd() can now handle quoted arguments). 2003-08-05 20:15:53 +00:00
foobar
6d6ac93241 - Fixed bug #21611 (version_compare() does not support "p" suffix) 2003-08-05 12:34:31 +00:00
Moriyoshi Koizumi
0ff21d0370 putenv() should be put here as well. 2003-08-05 12:29:26 +00:00
Zeev Suraski
90b29aa076 Replace fast_call_user_function() with zend_call_function() 2003-08-05 10:29:03 +00:00
Stanislav Malyshev
97c2522128 syncronize 2003-08-05 09:23:17 +00:00
Stanislav Malyshev
d113d32314 Don't try to __sleep incomplete classes 2003-08-05 09:19:38 +00:00
Stanislav Malyshev
53bbeedc89 don't try to wakeup incomplete classes 2003-08-05 09:15:31 +00:00
Stanislav Malyshev
f9bc33e78f pass trsm via parameters 2003-08-05 09:07:49 +00:00
Stanislav Malyshev
6afa320667 fix incomplete class for ZE2 2003-08-05 09:06:02 +00:00
Zeev Suraski
2547b6f6f6 Fix bug #24652 - Sterling, do you begin to think that maybe it wasn't such
a good idea?
2003-08-04 08:38:24 +00:00
Zeev Suraski
538d58dd5f Use new infrastructure.
There are bound to be some messups, please report build/runtime bugs!
2003-08-03 17:44:39 +00:00
Marcus Boerger
54df2e14b4 Use correct macro 2003-08-02 13:49:12 +00:00
Ilia Alshanetsky
4d98e9ec97 Finalize the closing process of persistent streams. The current
behavior/API is as follows:

1) To close a persistent use php_stream_pclose(), it will close the stream
and remove it from the persistent list.

2) Inside PHP code only explicit fclose() will close persistent streams,
all other actions such as unset() or assigning a value to stream handle
will not.

3) Regular streams can still be closed by either fclose(), unset() or an
assignment of a value to the stream handler.
2003-07-29 18:26:34 +00:00
Ilia Alshanetsky
abe2afcf6e Make pclose() respect references. 2003-07-28 14:42:42 +00:00
foobar
082f49a27b Fixed bug #24839 (missing </div>) 2003-07-28 10:44:19 +00:00
Ilia Alshanetsky
f9cf39bd30 Fixed bug #13142 (strtotime not handling "M d H:i:s Y" format) 2003-07-28 04:01:32 +00:00
Ilia Alshanetsky
cd4a281364 Fixed bug #24557 (make fclose() respect refcount on the resource). 2003-07-27 18:45:02 +00:00
Ilia Alshanetsky
ee3e4f79df Removed unused variable. 2003-07-25 03:03:26 +00:00
Sara Golemon
3caa0d0aa9 Fix Bug#24784 single character search keys not respecting case sensitivity/replace count parameters. 2003-07-25 01:03:39 +00:00
foobar
d8e5bd97c1 fix the test 2003-07-24 10:37:57 +00:00
foobar
760fe8e923 test for bug #14580 (key() not binary safe) 2003-07-24 10:13:17 +00:00
Zeev Suraski
0fe21a3a29 Fix bug #19613 2003-07-24 08:02:08 +00:00
Ilia Alshanetsky
0bd1e86d4c Fixed GLOB_ONLYDIR to work on GNU libc based system. 2003-07-23 21:41:44 +00:00
Zeev Suraski
0a49c033d0 - Use the new infrastructure of zend_symtable_*() (fixes bug #24565)
- Fix bogus use of get_current_key()
2003-07-22 16:08:50 +00:00
Jason Greene
7eea6525a7 Fix EINVAL errors for OS's (Solaris + BSD) that do not appreciate microseconds >= 1 second
Patch submitted from meebery@php.net
2003-07-22 07:20:55 +00:00
Ilia Alshanetsky
7825a1864c Fixed bug #24560 (parse_url() incorrectly handling certain file:// based
schemas).
2003-07-21 13:36:23 +00:00
Hartmut Holzgraefe
b0a4e1a2d2 whitespace 2003-07-15 17:28:41 +00:00
Hartmut Holzgraefe
2f5a3b4c63 #1 $_ENV is not always set, use getenv() instead
#2 bail out after 1000 loop iterations to avoid hanging tests
2003-07-15 16:55:44 +00:00
foobar
94a19d1bc6 Make this test work regardless of safe_mode setting (bug #24654) 2003-07-15 07:06:42 +00:00
Harrie Hazewinkel
83063e7445 Updating the SNMP credits in ext/standard/credits_ext.h 2003-07-14 18:59:18 +00:00
foobar
e209272db1 CS & WS fixes 2003-07-14 16:23:14 +00:00
Moriyoshi Koizumi
d33ffb78aa Added regression test for proc_open() 2003-07-13 08:03:46 +00:00
Moriyoshi Koizumi
4b07cb98b1 Fixed bug #24556 2003-07-12 09:33:31 +00:00
Moriyoshi Koizumi
4c8230696c Add folding markers 2003-07-12 07:01:30 +00:00
Moriyoshi Koizumi
77ae01ac72 Oops, this is not needed though. 2003-07-12 06:54:03 +00:00
Moriyoshi Koizumi
cd52986a5c Fixed leaks that occurs if the third parameter already contains a valid value. 2003-07-12 06:50:32 +00:00
foobar
5afd8cbf07 update credits. 2003-07-11 07:44:56 +00:00
foobar
a952a4383a fix typo (most likely fixes #24533 too) 2003-07-08 14:46:32 +00:00
Hartmut Holzgraefe
de6a6ed6d7 skip test if glob() is not available at all 2003-07-04 15:07:11 +00:00
Hartmut Holzgraefe
3c34e4edaf regression test for #24482 GLOB_ONLYDIR is not working (on BSD) 2003-07-04 14:38:07 +00:00
Hartmut Holzgraefe
f49b1d2da0 make sure operator precedence is not playing tricks on us
(it worked before on gcc3.2/Linux and with VC++ 6, but not
 with gcc3.1/MacOSX)
2003-07-04 13:24:47 +00:00
Hartmut Holzgraefe
00fbf2af67 VCWD awareness and (hopefully) windows compile fix 2003-07-03 14:54:03 +00:00
Hartmut Holzgraefe
a7edbe04ad PHP glob() will now emulate GLOB_ONLYDIR on non-GNU systems 2003-07-03 14:34:02 +00:00
Moriyoshi Koizumi
181508a837 s/cvs/csv/ 2003-07-02 17:07:56 +00:00
Moriyoshi Koizumi
1379c46d9e Fixed a leak that occurs with "R" reference variable specifier. 2003-07-02 16:19:57 +00:00
Moriyoshi Koizumi
ed033faaec s/cvs/csv/ :) 2003-07-02 15:43:44 +00:00
Ilia Alshanetsky
4634554976 Fix up test 2003-07-01 03:11:09 +00:00
Shane Caraveo
d6ee8bab7f fix a crash I run into on occasion 2003-06-30 20:31:57 +00:00
Sterling Hughes
f6d84a10ea set precision properly.. test passes here 2003-06-30 20:03:17 +00:00
Sterling Hughes
223584a138 this is the correct result 2003-06-30 19:50:18 +00:00
Rasmus Lerdorf
832ffd1970 Fix 3 tests that didn't adequately specify the .ini settings they rely on 2003-06-30 18:22:53 +00:00
foobar
8dca948cf9 - Moved the PEAR check after the extensions.
. added checks for the dependancies PEAR has.
- Moved PHP_REGEX checks to ext/standard/config.m4

# If someone knows the reason for PHP_REGEX macro being where it was,
# please tell..
2003-06-30 16:33:50 +00:00
Ilia Alshanetsky
8cb5c9c6ba Fixed bug #24063 (*printf() did not handle scientific notation correctly) 2003-06-30 01:03:21 +00:00
Ilia Alshanetsky
a6fd611c5e Added array handling to file_put_contents()
More verbose error reporting mechanism.
Test case for file_put_contents().
2003-06-28 20:06:13 +00:00
Ilia Alshanetsky
9e53c34ad3 Fixed test failure on systems with short_tags (<?) off. 2003-06-28 17:36:46 +00:00
Wez Furlong
5ecc91c27d Merge selectable descriptor casting from PHP_4_3 branch. 2003-06-28 11:24:47 +00:00
Derick Rethans
f2acb42223 - Return number of bytes written instead of just TRUE. (Path by Paul Hudson,
hudzilla@php.net)
2003-06-28 08:21:02 +00:00
Sebastian Bergmann
67400949f2 Remove aggregation tests as well. 2003-06-28 05:51:37 +00:00
Sebastian Bergmann
10ec176f69 Buckle your seatbelt, Dorothy, 'cause Aggregation is going bye-bye. 2003-06-28 05:38:52 +00:00
Sara Golemon
2e4ef86e10 MFB
Plug leak in context notifiers, implement notifier->dtor
2003-06-27 16:23:58 +00:00
Sterling Hughes
747937d1f7 touch the file 2003-06-26 03:53:17 +00:00
Sterling Hughes
a0ae63670a fix by ilia to fix crashes in the session extension when /tmp/sess_* files
previously existed.  make test now passes fully with the session extension.
2003-06-26 03:24:11 +00:00
Sterling Hughes
1ed8e46273 according to the notes in the bugs database, this is the correct result.
this result is also the same one given in 4.3.2 and 5.0
2003-06-26 03:21:45 +00:00
Ilia Alshanetsky
c8ecf7ec3e Fixed bug #24312 (base64_decode() does not skip 0xF0-0xFF characters)
Patch by: gereon.steffens[at]onvista.de
2003-06-24 15:23:17 +00:00
Ilia Alshanetsky
6b5b6079da Fix for bug #24313 (port from dead PHP_5 branch) 2003-06-24 13:56:25 +00:00
Stanislav Malyshev
02bebe8186 add test for #24281 2003-06-23 14:18:33 +00:00
Stanislav Malyshev
baa3892fe1 Fix #24281 - str_replace not updating the count if value is
not initialized
2003-06-23 14:09:14 +00:00
Sara Golemon
4c52cf5f90 When skipping blank searchvals we should advance the corresponding replace hash as well 2003-06-20 15:41:43 +00:00
Sara Golemon
496d17b98d Quiet down decode_context_param when stream (not context) is passed.
Switch stream_socket_*() to use macro for retrieving context from zval.
2003-06-19 22:30:54 +00:00