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 (& -> & 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
Ilia Alshanetsky
7ef01f01b9
Reverting previous patch (not necessary, thanks Pollita ;) )
2003-06-19 21:04:43 +00:00
Ilia Alshanetsky
a370ceb742
Fixed memory leak, when invalid context is specified.
2003-06-19 16:35:17 +00:00
Ilia Alshanetsky
cbfb63c1c4
Fixed possible crashes in streams code
2003-06-19 16:10:54 +00:00
Sascha Schumann
be4947b0e6
Use a smaller default size to accomodate the engine
...
Submitted by: Stanislav Malyshev, with some massaging by me
2003-06-18 16:15:47 +00:00
Sara Golemon
66881b5f2c
Fix compiler warnings
2003-06-18 03:26:29 +00:00
Sara Golemon
897e6a4069
No need to allocate a hashtable when return_value is just going to be overwriten
2003-06-17 18:38:56 +00:00
Ilia Alshanetsky
abe8647eb4
Added a test case for bug #24220
2003-06-17 13:19:20 +00:00
foobar
9aa14246d9
Fixed the expected result
2003-06-16 19:59:27 +00:00
Moriyoshi Koizumi
a3873c986b
Added test case for bug #24208
2003-06-16 19:10:12 +00:00
Sara Golemon
2f4e91bf8a
optionvalue is being copied via zval_copy_ctor, there's no need to addref the original
2003-06-16 18:19:14 +00:00
Derick Rethans
cd5fd7eed7
- Added test for bug #24142
2003-06-16 17:50:07 +00:00
Ilia Alshanetsky
6057160dbf
Fixed bug #24198 (Invalid recursion detection in array_merge_recurcive())
2003-06-16 17:35:16 +00:00
Edin Kadribasic
6bcf810687
This needs to be exported for dynamic extensions
2003-06-15 23:27:05 +00:00
Marcus Boerger
0137868171
No more namespaces
2003-06-14 22:10:15 +00:00
Marcus Boerger
f304458bdb
Fix ZTS mode (hopefully all is working fine now again)
2003-06-14 19:30:42 +00:00
Marcus Boerger
9605db43ed
Fix ZTS mode
2003-06-14 17:08:49 +00:00
Sara Golemon
236349f156
User Filters don't need to register a resource list for streams.
...
That functionality is already exported by the streams API.
2003-06-13 22:25:29 +00:00
Sara Golemon
99db19661a
Plug leak (context options not freed)
...
Make contexts auto-registered, ensures userland contexts
and C API contexts are both dealt with on request shutdown.
Also brings contexts in keeping with streams which are already
auto-registered.
2003-06-13 21:33:59 +00:00
Sara Golemon
82ddb23338
Loosen restrictions on method used with http_fopen_wrapper, still default to GET though.
2003-06-13 19:27:26 +00:00
Andrey Hristov
2d4449caf9
silly bug
2003-06-12 15:11:11 +00:00
Ilia Alshanetsky
b5dc8f918e
fixed proto
2003-06-11 02:16:19 +00:00
James Cox
f68c7ff249
updating license information in the headers.
2003-06-10 20:04:29 +00:00
Ilia Alshanetsky
aec7815e9c
Fixed bug #24098 (Crash in pathinfo() due to double var initialization).
...
# This is a php5 specific bug, no MFB needed
2003-06-09 18:12:36 +00:00
foobar
9e71e39fa9
WS
2003-06-06 08:10:02 +00:00
Sterling Hughes
295a1c665c
fix array_key_exists() from HANDLE_NUMERIC() changes
...
# need to go through this file and find any stuff that relies on this
# change
2003-06-05 13:58:14 +00:00
foobar
89e2d04ab9
Fix the regex issues with apache2handler
2003-06-05 04:14:43 +00:00
Moriyoshi Koizumi
12ecc6ca1e
Fixed base64_encode() integer overflow issue pointed out in TODO_SEGFAULTS
2003-06-04 14:41:45 +00:00
foobar
fde80076ec
No C++ comments and extra tabs.
2003-06-04 05:45:54 +00:00
Hartmut Holzgraefe
c83ed19a7b
handle return value for "no matches" on systems that don't return
...
GLOB_NOMATCH consistent to those that do (return array(), not FALSE)
2003-06-03 11:01:16 +00:00
Ilia Alshanetsky
55676c662a
Fixed bug #23912 (Invalid CSS in phpinfo() output)
2003-06-03 00:06:01 +00:00
Wez Furlong
1011d196b1
Add "seekable" flag to stream_get_meta_data()
...
# Caveat Emptor: some streams don't know if they are seekable until
# sometime tries to seek first (user streams).
2003-06-02 16:36:10 +00:00
Sebastian Bergmann
572504845d
Leftover.
2003-06-02 15:53:09 +00:00
Ilia Alshanetsky
32a0044a21
Fixed bug #23913 (make rename() work across partitions on *nix)
2003-05-31 00:32:45 +00:00
Marcus Boerger
ed09fed5cb
Removed parts committed by mistake
2003-05-30 19:57:13 +00:00
Jay Smith
a79c751ae2
Relying on longer matches seems to work better than
...
matching the whole string with ^...$.
2003-05-30 19:06:34 +00:00
Moriyoshi Koizumi
a51ab0fed0
Fixed bug #23894 (sprintf() decimal specifiers problem)
2003-05-30 13:49:33 +00:00
Moriyoshi Koizumi
3c0071a211
Added test case for bug #23894
2003-05-30 13:48:14 +00:00
Marcus Boerger
25704f0753
Fix memleaks (detected by rrichards@php.net)
2003-05-30 12:28:48 +00:00
Marcus Boerger
97a9bf4dd1
MFB
2003-05-29 12:54:01 +00:00
foobar
3c2f9fd5c0
MFB: php_error_docref -> zend_error (MINIT)
2003-05-27 17:24:59 +00:00
Melvyn Sopacua
e4006659b2
MFB: LC_MESSAGES support
2003-05-27 00:42:39 +00:00
Moriyoshi Koizumi
3cd1ea3154
Changed the test so it would not fail on some old platforms.
2003-05-26 22:16:14 +00:00
foobar
380bf699ae
Added regression test for bug #23788
2003-05-26 03:55:08 +00:00
Ilia Alshanetsky
2e361db1fe
Fixed bug #23788 (str|preg_replace clober the array elements).
...
# Should this be MFBed to 4.3 branch?
2003-05-25 21:48:57 +00:00
Marcus Boerger
0b0e0e9511
Update after fix
2003-05-24 17:12:58 +00:00
Marcus Boerger
e035046ac2
Add new test
2003-05-24 17:10:34 +00:00
Marcus Boerger
3b2fa8bb96
Fix namespace related problems
2003-05-24 17:10:03 +00:00
Marcus Boerger
7ff718f455
Make this a warning
2003-05-23 20:51:49 +00:00
foobar
a747e1b768
added another test case (due to the problems we saw with 4.3.2RC4)
2003-05-22 23:59:37 +00:00
Sara Golemon
af5e2af752
Setup FG(default_context) in RINIT/RSHUTDOWN instead of fg_ctor/fg_dtor.
...
Frees context at right time without double freeing.
2003-05-21 21:36:51 +00:00
Sterling Hughes
24eee37fed
seems there is only the stupid way to be stupid (implode copying array
...
elements)
at least we check for IS_STRING, which should clear this up 90% of the time
2003-05-21 17:44:08 +00:00
Sterling Hughes
90ae4e0095
be stupid, but at least be smart about being stupid.
2003-05-21 17:38:17 +00:00
Sterling Hughes
8d5c30c14b
make brian happy
2003-05-21 16:52:09 +00:00
Wez Furlong
2d1a6e5dc2
MFB context refcounting and text-mode fopen fixes
2003-05-21 13:33:55 +00:00
Marcus Boerger
e504166277
This depends on libc and CPU used
2003-05-21 07:23:45 +00:00
Sara Golemon
83b7b75c3c
Implement default contexts. For the moment this is useless
...
but it will be used soon for connection pooling.
2003-05-21 04:04:50 +00:00
Sterling Hughes
3c6fd35007
initialize these to NULL
2003-05-20 18:18:56 +00:00
Jay Smith
515f0e3f71
Make get_browser() try harder to find better matches.
2003-05-20 17:59:16 +00:00
Sterling Hughes
9ac50a13d7
convert array functions to use fast_call_user_function(), gives a nice
...
performance win.
2003-05-20 16:46:53 +00:00
Hartmut Holzgraefe
78b874f85e
C++ extensions build fix
2003-05-20 13:32:21 +00:00
Marcus Boerger
4a11372805
Fix Test (2nd time)
2003-05-20 00:09:47 +00:00
Marcus Boerger
0c77fef23a
Fix Test
2003-05-19 22:16:58 +00:00
Sara Golemon
8e9c159f75
The bucket rewrite was done some time ago...
2003-05-19 18:40:11 +00:00
Derick Rethans
92f0da58e6
- Rename stream_register_filter() to stream_filter_register(),
...
stream_register_wrapper() to stream_wrapper_register() and added an alias for
the latter change.
2003-05-19 15:35:06 +00:00
Ilia Alshanetsky
8e3772a827
Added skip condition.
2003-05-19 04:57:01 +00:00
foobar
422309353d
CS
2003-05-18 14:55:18 +00:00
Marcus Boerger
66a3e8deb7
Fix test (for now - need EXPECTF/EXPECTREGEX)
2003-05-18 12:10:03 +00:00
Marcus Boerger
dbf0d7572e
Fix unserialize (commit later)
2003-05-18 12:09:08 +00:00
Marcus Boerger
2307193255
Fix unserialize
2003-05-18 12:08:51 +00:00
Moriyoshi Koizumi
80c75c4d62
MFB(r-1.1.2.7): fix test
2003-05-17 20:06:00 +00:00
Sebastian Bergmann
85a13e3e9a
Fix warnings.
2003-05-17 06:21:34 +00:00
Sara Golemon
8924395720
MFB(r-1.333.2.27) Bugfix 23654. If subject is an array and it contains other arrays, we want to pass those subarrays through unchanged rather than attempt to convert them to string.
2003-05-16 23:30:08 +00:00
Ilia Alshanetsky
7e2a99d091
Fixed bug #23657 (Missing initialization in browscap module init)
2003-05-16 15:13:47 +00:00
Moriyoshi Koizumi
27b8c453b9
copy'n'paste failure
2003-05-16 06:24:57 +00:00
Moriyoshi Koizumi
3d2b9af9eb
Added test case for bug #23650
2003-05-16 06:20:23 +00:00
Moriyoshi Koizumi
8cbb6b6341
Fixed bug #23650 (strip_tags() removes hyphens)
2003-05-16 06:19:51 +00:00
Ilia Alshanetsky
e2444c223b
MFB
2003-05-16 01:09:58 +00:00
Moriyoshi Koizumi
f78ec11339
Fixed test so it won't fail in case the output handler is enabled
2003-05-15 19:20:31 +00:00
Sara Golemon
022a1625a3
Implement unlink() method in ftp wrapper ops and do some general cleanup of other code
2003-05-14 18:02:10 +00:00
Sara Golemon
65d359d71a
Fold 'options' parameter into wops->unlink method
2003-05-14 15:12:07 +00:00
Sascha Schumann
31dc62a905
MFB segfault fix
2003-05-14 08:27:48 +00:00
Sara Golemon
5126fbe556
Setup unlink() method in wrapper_ops structure, implement unlink in plainfiles wrapper, explicitly set method NULL in other wrappers (for now), and rewrite unlink userland function to call into wrapper_ops
2003-05-14 06:10:04 +00:00
Moriyoshi Koizumi
4e9e9c6e21
Fixed bug #22463 and bug #23581
2003-05-11 06:36:37 +00:00
Moriyoshi Koizumi
065a192411
Added a test case for bug #23581
2003-05-11 06:33:35 +00:00
Moriyoshi Koizumi
b666d8c679
Added test case for bug #22463
2003-05-11 02:37:17 +00:00
Moriyoshi Koizumi
598dba147d
Fixed test case so it reflects the recent change on var_dump()
2003-05-08 23:23:02 +00:00
Moriyoshi Koizumi
ea39409c60
Added missing break
2003-05-08 16:45:59 +00:00
Moriyoshi Koizumi
e911b39158
Added "€" support for htmlentities() and html_entity_decode()
2003-05-08 15:43:34 +00:00
Moriyoshi Koizumi
ee86979e21
I should have tested more carefully..
2003-05-08 15:39:24 +00:00
Moriyoshi Koizumi
6ed4fd1666
Improved html_entity_decode() so it can handle multibyte charsets and
...
numeric entities.
2003-05-08 10:42:20 +00:00
Ilia Alshanetsky
b20df54af7
Make serialize precision a configurable option.
2003-05-08 01:23:21 +00:00
Sara Golemon
13191aa841
Revert, this caused more trouble than it fixed.
2003-05-07 20:33:53 +00:00
Moriyoshi Koizumi
29f346d7d7
Removed redundant TSRMLS_FETCH's
2003-05-07 17:40:46 +00:00
Sara Golemon
451cd602f6
HINFO RDATA is <label><label> not <nshort><nshort>
2003-05-06 19:51:46 +00:00
Ilia Alshanetsky
7f404846ad
s/g/G/
2003-05-05 22:21:29 +00:00
Ilia Alshanetsky
a7591863fd
Fixed tests to reflect full float values.
2003-05-05 19:57:32 +00:00
Moriyoshi Koizumi
b874a54846
Added links to HTML entity resources
2003-05-05 19:50:15 +00:00
Hartmut Holzgraefe
e6490c4a41
basename() now binary safe, testcases added
2003-05-05 13:46:14 +00:00
Hartmut Holzgraefe
e364d1f589
proto fix
2003-05-05 12:36:35 +00:00
Thies C. Arntzen
747822c616
fixed FMR
2003-05-05 12:17:02 +00:00
Ilia Alshanetsky
88bafcb7a5
Safer implementation.
...
Thanks Marcus.
2003-05-04 19:09:54 +00:00
Ilia Alshanetsky
75c01dd66b
Fixed bug #23298 (serialize cuts off floats & doubles)
2003-05-04 18:41:02 +00:00
Moriyoshi Koizumi
b44ae54bc6
Real fix and a test case for bug #22008
2003-05-04 12:44:36 +00:00
Moriyoshi Koizumi
e9c903ad3f
A quick fix for bug #22008
...
# BTW I'm working on an enhanced strip_tags implementation with re2c, which
# will feature more CSS awareness and more stateful scanning.
2003-05-04 11:45:58 +00:00
Moriyoshi Koizumi
1dfc59f6d8
Added missing sanity check
...
# likely a fix for bug #23457
2003-05-04 11:19:57 +00:00
Moriyoshi Koizumi
7638a25fef
Fixed bug #23449
2003-05-02 11:00:42 +00:00
Andrey Hristov
a894bf5c87
Extending substr_replace().
...
Every parameter can be mixed (string/array) also the return type.
#see the test file if you need more info.
2003-05-02 10:02:40 +00:00
Sara Golemon
07c679064a
Bug Fix (22433). When the bottom of a range() is chr(0) or the top is chr(255), the for loop carries over and never exits.
2003-05-02 00:58:02 +00:00
Moriyoshi Koizumi
193fe6863a
Really fix the test.
...
# sorry for the mess..
2003-04-30 16:30:44 +00:00
Sara Golemon
5d3a8e4ce7
Add support for SRV and NAPTR records to dns_get_record() and dns_check_record()
...
Feature Request #23407
2003-04-29 22:02:01 +00:00
Wez Furlong
89503b163e
Fix dirname() under win32.
...
The calculated length would be off-by-two under windows, which resulted in bogus dirnames.
2003-04-29 13:35:48 +00:00
Moriyoshi Koizumi
180806f9e6
Fixed typo
2003-04-29 13:05:58 +00:00
Moriyoshi Koizumi
cc9b7895a0
Fixed bogus skip condition
2003-04-29 13:04:19 +00:00
Jay Smith
ab1124b014
A few fixes Uwe suggested, plus plugged a memleak and a possible
...
overrun.
2003-04-28 21:49:47 +00:00
Derick Rethans
9ab3ad2963
- Commit the .c file too...
2003-04-28 18:52:59 +00:00
Derick Rethans
cd13464709
- Make them available on Windows too from other files.
2003-04-28 18:41:32 +00:00
Sascha Schumann
e422f56dff
improve php_url_encode
2003-04-28 16:24:14 +00:00
Moriyoshi Koizumi
f4c9feb774
Added missing sanity check in fgetcsv()
2003-04-28 15:04:56 +00:00
Wez Furlong
169b3f72ed
Fix for #23340 ; fopen on multiple urls from the same server crashes.
2003-04-28 14:41:36 +00:00
Sara Golemon
bb48c7d861
Take STREAMS_CC/STREAMS_DC declarations out of do_connect/do_pasv where they don't need to be. Add minimalist url_stat method to ftp:// wrapper which can at least determine filesize. Other properties set to 0 since the FTP protocol simply doesn't support exploring them. url_stat won't actually work however until ext/standard/filestat.c is patched to allow stat wrappers.
2003-04-26 01:55:31 +00:00
Sara Golemon
2d558127af
No idea how that character dissapeared.
2003-04-24 22:25:33 +00:00
Sara Golemon
2fc1d2c330
Fix error handling bug I just introduced (php_ftp_fopen_connect == NULL) and add append support to wrapper
2003-04-24 21:21:41 +00:00
Sara Golemon
228f65f889
Abtract some ftp connection/negotiation steps out and add support for stream_opendir. This allows things like opendir('ftp://ftp.foo.com/path')
2003-04-24 20:32:14 +00:00
David Hill
cec89b2446
Fix compiler error on null statement in switch
2003-04-24 18:01:26 +00:00
Rasmus Lerdorf
0d248d81a6
MFB: &039; which is a single-quote may also come in as &39;
...
I see no reason not to support both in html_entity_decode()
2003-04-22 20:47:09 +00:00
Sara Golemon
cb89565ba4
Feature Request #7121 .
...
Allow overwritting of files via ftp:// wrapper.
Requires context option: $context['ftp']['overwrite'] != 0
2003-04-22 04:13:09 +00:00
Sascha Schumann
c523fc4766
Add vr class
...
Noticed by: Jon Parise
2003-04-22 03:21:29 +00:00
Moriyoshi Koizumi
c591d4decd
Reduced leaks in userland filters
2003-04-21 18:43:36 +00:00
Moriyoshi Koizumi
cf620ddfdb
Unified all those redundant printf's
2003-04-21 18:00:41 +00:00
Stanislav Malyshev
5a904d6ea8
Update to latest inteface change for get_class_name
2003-04-21 17:03:29 +00:00
Sara Golemon
7c8c09b3cf
Revert change to stream_copy_to_stream()
2003-04-20 01:18:58 +00:00
Marcus Boerger
9e19524c5e
Access the struct directly here
2003-04-19 19:06:52 +00:00
Ilia Alshanetsky
6bc4ce43d0
Do not hardcode php path.
2003-04-19 18:10:54 +00:00
Ilia Alshanetsky
e4c38aec5a
Do not make the test rely on the availability of the cat command.
2003-04-19 17:45:46 +00:00
Sascha Schumann
e4183ae980
Extend print_table_row so that one can specify the CSS class
...
directly. Add "vr" class which aligns the content to the right border.
2003-04-19 17:40:19 +00:00
Marcus Boerger
b99a491e33
Update to new macros
2003-04-19 15:01:22 +00:00
Sara Golemon
6dde464ce7
Let stream_copy_to_stream() accept either stream resource or filename/url string. If filename, open the file, do the copy, then close it.
2003-04-19 02:47:16 +00:00
Sara Golemon
19ef914bb4
Catch up to Moriyoshi's streams megapatch
2003-04-17 23:59:28 +00:00
foobar
2cd55ce73b
touch
2003-04-17 02:54:23 +00:00
foobar
b319982868
add missing header
2003-04-17 02:53:32 +00:00
foobar
85874549d6
touch
2003-04-17 02:45:10 +00:00
Moriyoshi Koizumi
0c5548e636
Fixed implicit cast issue with is*() and to*() functions
2003-04-16 21:40:48 +00:00
Moriyoshi Koizumi
0ad2fc2007
Fixed bug #19795
...
# to*() and is*() expect for their arguments an integer in range of 0 - 255
2003-04-16 21:10:29 +00:00
Moriyoshi Koizumi
2a31fa0569
Fixed memleak
2003-04-16 15:10:01 +00:00
Moriyoshi Koizumi
6dd17c380d
Added missing sanity check
2003-04-16 14:55:25 +00:00
Moriyoshi Koizumi
49b43ad115
Changed stream filter factory to be capable of accepting a zval as a parameter
...
instead of a string
2003-04-16 14:30:25 +00:00
Sascha Schumann
0bda867fe7
Simplify use of this header in external apps
2003-04-16 09:14:32 +00:00
Ilia Alshanetsky
7f8bd25fcc
Fixed bug #23225 (money_format() didn't handle erroneous return of strfmon)
...
# Initial patch proposed by marcot@tabini.ca
2003-04-16 01:07:03 +00:00
Ilia Alshanetsky
3d6fccc08c
Fixed bug #23152 ($http_response_header empty on invalid URLs)
2003-04-14 13:55:34 +00:00
Sara Golemon
9103aac254
Modify str_replace/str_ireplace to report how many needles were matched. (FR #8218 )
2003-04-13 22:59:19 +00:00
Moriyoshi Koizumi
560efa10c0
Forgot about this one :)
2003-04-12 21:56:08 +00:00
Moriyoshi Koizumi
fa0ac8a273
Made dirname() binary-safe.
2003-04-12 21:53:46 +00:00
Sara Golemon
76965beb04
Add tests for strrpos/stripos, and minor fix to maintain BC for condition with empty needles/haystacks
2003-04-12 20:04:06 +00:00
Sara Golemon
0b5c1112c5
Rewrite strrpos and strripos to be binary safe and behave the way their prototype suggests (also like their counterparts strpos and stripos) i.e.: Allow string needles rather than just characters
2003-04-12 07:36:22 +00:00
Sara Golemon
8da5e8e48e
Export constants to userland
2003-04-11 02:55:00 +00:00
Rasmus Lerdorf
861679d6c3
MFB: Forgotten _FORM -> _REQUEST change
2003-04-09 17:46:42 +00:00
Derick Rethans
429ae4e821
- Fixed printing the version string if it includes zend extensions in
...
text-mode
2003-04-09 15:19:07 +00:00
Sara Golemon
87c5019dd2
Switch file_put_contents 'bool use_include_path' to 'int flags' to allow other options such as appending
2003-04-08 23:24:53 +00:00
Sara Golemon
41d4fcd0da
Add context support to file_put_contents() and readfile(), convert readfile() to zend_parse_parameters usage, fix proto for file_put_contents()
2003-04-08 22:10:15 +00:00
Sara Golemon
1e853b74a3
Added context support to file()
2003-04-08 21:00:07 +00:00
Andrei Zmievski
b18542ba68
Remove php_memnstr (it's in ZE now).
2003-04-08 17:15:43 +00:00
foobar
a45b4258f0
file_set_contents -> file_put_contents
2003-04-08 14:12:52 +00:00
Sara Golemon
8001f2922c
Add context support to file_get_contents
2003-04-08 00:02:47 +00:00
Sara Golemon
70155b6dcf
Introduce support for context options 'method', 'header', 'content'
2003-04-07 21:02:04 +00:00
foobar
c3e90bd6ed
Fixed bug #23071 (when DST in effect, date("T") crashed PHP)
2003-04-06 22:37:45 +00:00
Wez Furlong
c64256e671
Warning fix
2003-04-04 21:09:25 +00:00
Sara Golemon
a65564f0fa
User shouldn't have to initialize this pass-by-ref parameter
2003-04-04 20:43:36 +00:00
Wez Furlong
0148c0cb02
Simplify and enhance readability.
2003-04-04 08:57:40 +00:00
Sara Golemon
b2d4514580
Added stream_get_transports()
2003-04-04 05:21:03 +00:00
Sara Golemon
465bb61357
Kludgy fix for floating point drift causing problems like range(1.0,1.5,0.1) == array(1.0,1.1,1.2,1.3,1.4);
2003-04-03 18:33:05 +00:00
Sascha Schumann
7e7bbb751e
Prevent entering of anything but arrays/strings in register_shutdown_func
...
Noticed by: Jan Schneider
2003-04-03 18:09:41 +00:00
Derick Rethans
6412e65bf9
- CS
2003-04-03 06:21:59 +00:00
foobar
16da825c7c
CS fix
2003-04-03 01:12:47 +00:00
Rasmus Lerdorf
066a68d7fa
MFB: Fix unregister_tick_function crash
2003-04-02 23:11:31 +00:00
Rasmus Lerdorf
1612ffad05
MFB: Fix the setlocale() segfault
2003-04-02 21:33:02 +00:00
Colin Viebrock
4888473efa
fixes for logo guid functions
2003-04-02 16:51:40 +00:00
Sara Golemon
c249c67178
New test for userfilters rewrite
2003-04-02 00:41:09 +00:00
Ilia Alshanetsky
aab9718253
Fixed possible integer overflow in str_repeat().
2003-04-02 00:25:45 +00:00
Rasmus Lerdorf
4b343a0562
MFB
2003-04-01 21:47:21 +00:00
Moriyoshi Koizumi
6301bd9b95
Fixed bogus test
2003-04-01 19:47:33 +00:00
Moriyoshi Koizumi
b302824171
Added a test case for bug #22538
2003-04-01 19:10:04 +00:00
Moshe Doron
3c982dea22
oops
2003-04-01 12:54:35 +00:00
Moshe Doron
d8b5687925
revert due the last string.c revert
2003-04-01 12:53:44 +00:00
Moshe Doron
31bd24860c
revert last commit for now
2003-04-01 12:46:01 +00:00
Thies C. Arntzen
60214a0338
*** empty log message ***
2003-04-01 11:04:38 +00:00
Sascha Schumann
cc39646730
Fix segfault in register_shutdown_function
2003-04-01 10:02:29 +00:00
Sara Golemon
48c947389e
Bug #22962
2003-04-01 06:21:54 +00:00
Sebastian Bergmann
b8e3e0bfe3
Sorry Sterling, but this broke the ZTS build and I'd rather not 'ZTS fix' an April's Fool joke.
2003-04-01 05:30:32 +00:00
Sterling Hughes
53d90d8b9b
Add the landonize() and landonize_url() functions which provide a secure
...
alternative to the sha1() and sha1_file() functions.
2003-04-01 05:01:50 +00:00
Moriyoshi Koizumi
93386a8b09
oops
2003-03-31 23:49:53 +00:00
Moriyoshi Koizumi
e8f13586a7
Fixed test; in ZE2, all the properties used in any methods are populated
...
at compile time.
2003-03-31 22:54:18 +00:00
Moshe Doron
64bd1cdbd6
# make derik happy
2003-03-31 19:01:43 +00:00
Moshe Doron
dc8daad70d
fix for 22904
...
@ now addslashes() do it also on cybase magic mode(moshe).
2003-03-31 18:56:41 +00:00
Moshe Doron
5c3a073c07
# unnecessary condition here.
2003-03-31 12:08:31 +00:00
Sascha Schumann
0481896ff7
TS issue, noticed by Sebastian Bergmann
2003-03-31 05:39:25 +00:00
Sascha Schumann
cb3c506639
Ensure that the seed function has been called, even if we are used by
...
another module's request init function.
Noticed by: marcus.boerger@t-online.de
2003-03-31 03:24:18 +00:00
Moriyoshi Koizumi
47e40e1b98
Improved var_dump() and debug_zval_dump() so they also show the
...
namespace of the given object.
2003-03-29 21:29:22 +00:00
Ilia Alshanetsky
0e73275429
CS
2003-03-28 14:31:31 +00:00
David Hill
60a7aef6e9
Changing parsedate to be reentrant using pure_parser (Dave)
2003-03-28 13:10:52 +00:00
Ilia Alshanetsky
3db5278dcc
CS
2003-03-27 18:57:53 +00:00
David Hill
86569cb154
Backing out part of TZ change
2003-03-27 14:23:48 +00:00
David Hill
1fa7504fae
Changing TZ to match Unix98 standard to make Tru64 happy
2003-03-26 16:42:03 +00:00
Sebastian Bergmann
5ca078779a
Eliminate some TSRMLS_FETCH() calls. Tested with Win32 build of SAPI/CGI and SAPI/CLI on Win32.
2003-03-25 08:07:13 +00:00
Moriyoshi Koizumi
570e929d49
Fixed bug #22834 (compile failure due to ugly implicit casts)
2003-03-24 21:22:23 +00:00
Moriyoshi Koizumi
03a5129429
oops...
2003-03-24 19:24:35 +00:00
Moriyoshi Koizumi
68b03bde3a
Added test cases for new functionality
2003-03-24 19:21:20 +00:00
Moriyoshi Koizumi
93b250f923
Added koi8-r, cp866, and cp1251 support for htmlentities
2003-03-24 19:13:02 +00:00
Alex Waugh
d403ed4bc3
Fix linkage of symbols.
2003-03-23 21:58:03 +00:00
Shane Caraveo
456b6cbeab
The environment should *never* be magic quoted.
2003-03-23 19:30:31 +00:00
Sterling Hughes
0a4282eabf
fix segfault in file_set_contents() when the file could not successfully
...
be opened.
2003-03-21 22:22:15 +00:00
Wez Furlong
0fd995f9fc
Add the mode string that was used to open the stream to the meta data,
...
as requested by Philip Olson.
2003-03-18 23:45:27 +00:00
Wez Furlong
86fb577d59
Implement persistent plain file streams.
...
Usage:
php_stream *stream = php_stream_fopen("/path/to/file", "r+b", NULL,
STREAM_OPEN_PERSISTENT | ENFORCE_SAFE_MODE | REPORT_ERRORS);
the filename and mode are combined to form the hash key for the persistent
list; they must be identical for this same stream to be returned again in the
next request.
Calling php_stream_close() on a persistent stream *will* close it, as is
usual with all persistent resources in PHP/ZE.
This is deliberately *not* exposed to user-space PHP at this time.
2003-03-18 23:37:54 +00:00
Jay Smith
c0d1508ec8
get_browser() needs to use zend_is_auto_global() on _SERVER.
2003-03-18 21:49:01 +00:00
Marcus Boerger
3e621fac94
make phpinfo() depend on executed sapi
2003-03-18 20:52:52 +00:00
Wez Furlong
ce01fd9526
Avoid using FILE* where possible.
...
Tidy up handling of potential error situations for the php:// wrapper.
2003-03-18 16:40:29 +00:00
Wez Furlong
862586e376
CS fixes
2003-03-18 14:35:15 +00:00
Stig Bakken
0e6fca4f22
* email address change
2003-03-18 12:06:09 +00:00
Hartmut Holzgraefe
dbe4f2238c
proto fixes
2003-03-17 13:11:19 +00:00
Sascha Schumann
d0debaf45c
Merge macro changes
2003-03-16 23:02:19 +00:00
Jay Smith
830b14297f
@- Fixed bug #22386 (Using browscap causes segfault). This fix
...
@ also adds an optional bool argument to get_browser() that
@ makes the return value an array instead of an object. (jay)
2003-03-14 17:54:38 +00:00
Jay Smith
39ec83bb5f
Solaris knows nothing of "Europe/Amsterdam". Use "US/Eastern" instead.
2003-03-13 18:51:39 +00:00
Sterling Hughes
39b8f06f9b
@ Add the file_set_contents() function, as a complement to the file_get_contents()
...
@ function. (Sterling)
2003-03-12 06:47:34 +00:00
Sascha Schumann
65b9a40640
fix sizeof(size_t) > sizeof(uint) issue
2003-03-11 02:28:46 +00:00
Sascha Schumann
dfb0d70b5b
reverting jani's non-sense commits
2003-03-11 01:47:06 +00:00
foobar
febb535db0
touch
2003-03-10 22:59:46 +00:00
foobar
7a1ecedf85
64bit issue fixed
2003-03-10 22:59:34 +00:00
Moriyoshi Koizumi
a41e0c1382
Modified the test to reflect the recent change on var_dump()
2003-03-10 20:46:39 +00:00
David Hill
a7b84ac7cb
Correcting int/long mismatched - 64bit issues.
2003-03-10 20:30:33 +00:00
Andrei Zmievski
b1546a1775
Print the object handle (it's useful).
2003-03-10 15:13:32 +00:00
Sara Golemon
c4a491e12c
Adjustment to user filters reimplementation. Make a bucket an object containing a resource(the real bucket) and a data element for direct operations. Simplifies
...
user interface and reduces number of function calls/reallocs needed.
2003-03-09 23:12:31 +00:00
Derick Rethans
0d603b2d9a
- Fix proto
2003-03-09 00:05:48 +00:00
Stefan Esser
1f54605723
wrong place.
2003-03-08 14:51:16 +00:00
Stefan Esser
76c427fd05
fixing memory leak
2003-03-08 14:37:01 +00:00
foobar
3c9155e0cb
Renamed OnUpdateInt -> OnUpdateLong to prevent further misunderstandings.
...
# Intentionally left out any 'alias' for it, this way 3rd party extension
# maintainers will really NOTICE the change.
2003-03-07 05:15:28 +00:00
David Hill
5c90216d2c
64-bit correction to variables passed to zend_parse_parameters
...
@64-bit correction to variables passed to zend_parse_parameters (Dave)
2003-03-06 23:07:28 +00:00
Stefan Esser
af4aa97d1e
Fixing functionicalls with variable number of parameters...
2003-03-06 20:31:20 +00:00
Moriyoshi Koizumi
9bdc86973b
Fixed a small leak in the convert filter code
2003-03-05 17:51:33 +00:00
Ilia Alshanetsky
53530765ff
Added support for http redirects to ftp.
...
Fixed bug #22508 (Added protection against circular HTML redirects).
2003-03-04 16:04:05 +00:00
Ilia Alshanetsky
b162e18a29
Skip test if running under safe-mode.
2003-03-04 14:37:38 +00:00
Edin Kadribasic
d1feae01d9
Credits update.
2003-03-04 00:10:11 +00:00
Zeev Suraski
622da33231
- Optimize $_REQUEST
...
- Fix phpinfo()
2003-03-02 13:35:01 +00:00
Moriyoshi Koizumi
da0d5a11ed
Fixed my silly mistake in the filter code
2003-03-02 08:39:01 +00:00
Wez Furlong
558db0d87a
Expose php_stream_copy_to_stream as stream_copy_to_stream(); a high
...
performance alternative to looping reads and writes.
2003-03-01 01:27:50 +00:00
Wez Furlong
349ce76f96
Tidy up stupid signed/unsigned issues with win32 by introducing a php_socket_t typedef.
2003-02-28 21:03:36 +00:00
Wez Furlong
68c1294462
Add this file...
2003-02-28 20:06:05 +00:00
Wez Furlong
1b53a2d12e
New user-space functions:
...
. stream_socket_client() - similar to fsockopen(), but more powerful.
. stream_socket_server() - Creates a server socket.
. stream_socket_accept() - Accept a client connection.
. stream_socket_get_name() - Get local or remote name of socket.
Tidy up some leaks and debug printfs.
Move more streams functions into streamsfuncs.c and streamsfuncs.h.
2003-02-28 19:53:21 +00:00
Ilia Alshanetsky
14bf872003
Fixed compiler warnings.
2003-02-28 17:26:28 +00:00
Hartmut Holzgraefe
050e86fde4
it is still to early in the morning for coding :(
2003-02-28 07:57:00 +00:00
Hartmut Holzgraefe
80d267e271
make sure that GNU extensions exist for fnmatch()
2003-02-28 07:52:23 +00:00
Ilia Alshanetsky
912bef379d
Fixed compiler warning.
2003-02-27 23:53:55 +00:00
Wez Furlong
0cec0bd8a9
streams.c -> streamsfuncs.c
...
# argh!
2003-02-27 22:48:13 +00:00
Wez Furlong
493ef36299
Update win32 build.
...
Since msvc sucks, I had to rename ext/standard/streams.c to ext/standed/streamsfuncs.c
2003-02-27 22:43:51 +00:00
Wez Furlong
5def83df0b
Move streams specific stuff from ext/standard/file.c -> ext/standard/streams.c
...
Move win32 select implementation into win32/.
Will update win32 build in a moment.
2003-02-27 22:23:39 +00:00
Ilia Alshanetsky
ea1f34e892
Fixed a bug that would cause filetype() to return "unknown" for
...
non-existent files on Win32.
2003-02-27 20:38:00 +00:00
Wez Furlong
cfd8150b30
Add a generic meta data api for streams.
2003-02-27 19:10:24 +00:00
Wez Furlong
76ebaa6ee7
- Move https:// and ftps:// wrapper registration into the openssl module.
...
- Expose the http:// and ftp:// wrappers as PHPAPI
- Remove unused variables
2003-02-27 18:16:35 +00:00
Wez Furlong
fd61f69077
Another big commit (tm).
...
Main Changes:
- Implement a socket transport layer for use by all code that needs to open
some kind of "special" socket for network or IPC.
- Extensions can register (and override) transports.
- Implement ftruncate() on streams via the ioctl-alike option interface.
- Implement mmap() on streams via the ioctl-alike option interface.
- Implement generic crypto API via the ioctl-alike option interface.
(currently only supports OpenSSL, but could support other SSL toolkits,
and other crypto transport protocols).
Impact:
- tcp sockets can be overloaded by the openssl capable sockets at runtime,
removing the link-time requirement for ssl:// and https:// sockets and
streams.
- checking stream types using PHP_STREAM_IS_SOCKET is deprecated, since
there are now a range of possible socket-type streams.
Working towards:
- socket servers using the new transport layer
- mmap support under win32
- Cleaner code.
# I will be updating the win32 build to add the new files shortly
# after this commit.
2003-02-27 17:43:38 +00:00
Ilia Alshanetsky
560e33968d
Fixed bug #21410 (fixed handling of NULL or "" files on Win32)
2003-02-27 16:41:23 +00:00
Ilia Alshanetsky
695ae92c97
1) Make the output of system() binary safe
...
2) Solved a memory leak when the return_value variable passed by reference is
not an integer in system()/exec()/passthru().
3) Solved a bug in exec(), which would make it append to the 2nd parameter
(passed by reference) if the parameter is an array instead of overwriting it.
4) Changed the code to use the streams code, resulting in a smaller code base.
5) Various cleanups resulting in reduction of overall code base inside the file
by ~ 1/3.
6) Speed improvements of ~2.5 times compared to previous performance (based on
attached PHP script).
2003-02-26 22:11:12 +00:00
Derick Rethans
424c41a72e
- Added an extra ini setting with which extra commands can be forced to
...
the sendmail deamon on a per-vhost base. The value in this ini setting
will override all extra commands passed as the 5th parameter to mail()
and will work in Safe Mode.
@- Added an extra ini setting (mail_force_extra_paramaters) which forces
@ the addition of the specified parameters to be passed as extra
@ parameters to the sendmail binary. These parameters will always replace
@ the value of the 5th parameter to mail(), even in safe mode. (Derick)
2003-02-26 20:04:16 +00:00
Derick Rethans
17acc55ad0
- Fix proto
2003-02-26 19:34:16 +00:00
Derick Rethans
bc11c47ce6
- Whitespace
2003-02-26 19:25:24 +00:00
Ilia Alshanetsky
aee0c18bde
Made shell_exec() use streams, this simplifies the code and in some cases
...
makes it a little faster too.
2003-02-25 23:52:34 +00:00
Ilia Alshanetsky
bce8bfdae4
MFH (forgot to put this fix into the 5.X tree).
2003-02-25 23:39:57 +00:00
Moriyoshi Koizumi
991da29849
Set fgetss() free from the length parameter
2003-02-25 20:12:18 +00:00
Ilia Alshanetsky
503e49feae
Fixed test.
2003-02-25 16:27:51 +00:00
Ilia Alshanetsky
f29964e2ba
Fixed bug #22414 and added a test case for it.
2003-02-25 16:21:00 +00:00
Ilia Alshanetsky
e8823a205a
Fixed bug #22402 (opening of ftp for read/write could fail due to invalid
...
return code handling).
Solution suggested by jan@jancm.org
2003-02-25 04:20:22 +00:00
Ilia Alshanetsky
862634ffa5
Added locking to streams.
...
Allow PHP to automatically release locks on files when terminating the
stream.
Fixed bugs in the handling of the 3rd optional parameter to flock().
2003-02-25 01:39:06 +00:00
Moriyoshi Koizumi
14db9ea88d
Fixed string.strip_tags filter so it reflects the change on php_strip_tags
2003-02-24 22:41:55 +00:00
Moriyoshi Koizumi
b44b0b80e0
Made fgetss() binary safe too
2003-02-24 22:39:47 +00:00
Moriyoshi Koizumi
8f341f6a19
Fixed possible buffer overflow of php_strip_tags
2003-02-24 22:19:36 +00:00
Moriyoshi Koizumi
385a809694
Made strip_tags() binary safe
2003-02-24 22:01:12 +00:00
Sara Golemon
85a5ef3ec9
Initial re-implementation of userfilters after filterchain redesign by wez. More userspace API to come.
2003-02-24 21:56:19 +00:00
Wez Furlong
088e2692c3
MFB: Bunch of streams related fixes.
2003-02-24 21:40:23 +00:00
Ilia Alshanetsky
4474f9225a
Fixed bug #22355 (PHP would remove folding from Subject & To fields).
2003-02-24 19:41:18 +00:00
Moriyoshi Koizumi
93b6d05bb8
Forgot to fix this part
2003-02-24 16:54:21 +00:00
Moriyoshi Koizumi
f73f94f258
Fixed a signed / unsigned issue.
...
# imagine the case like "\\\xfe" where walk[1] takes a value that is greater
# than 127 in integer...
2003-02-24 16:29:00 +00:00
Moriyoshi Koizumi
171fd93840
Style fix
2003-02-24 16:13:13 +00:00
Ilia Alshanetsky
a3cb589b71
Fixed bug #22382 (fgetcsv did not handle \" correctly).
2003-02-24 03:13:25 +00:00
foobar
c87c4c7bd7
Extra paranoia checks if dn_skipname/dn_expand exist or not
2003-02-24 00:09:18 +00:00
Ilia Alshanetsky
8908faa47f
Revent previous patch, adding of file_write_content() was premature.
2003-02-22 20:35:22 +00:00
Ilia Alshanetsky
d2e2fbcc5b
int/long change.
2003-02-22 20:33:11 +00:00
Andrey Hristov
8c2dbd5f0f
additional speedup for array_shift(). No need to rehash if the removed element's
...
key is not scalar and elements with scalar keys are already well numbered
(sequentially from 0) for some reason. This is the case if the leading
elements have no scalar indexes.
2003-02-22 13:55:11 +00:00
Andrey Hristov
94040a28ce
rehash only in case something is changed.
...
#lowers the execution time in half on my machine on array with 1000 elements
#with nonscalar keys. Maybe it can be optimized further.
2003-02-22 10:54:26 +00:00
foobar
b420beba61
- Fixed bug: #22339
...
# No NEWS, this was bug introduced by Marcus a while ago..
# Not present in php4.3.x branch
2003-02-21 08:45:58 +00:00
Sara Golemon
2002ca0203
Reduce unnecessary filter applications when stream is (read|write) only
2003-02-20 20:05:31 +00:00
Derick Rethans
2bff9cae27
- Fixed testcase... you can never trust on RFCs it seems
2003-02-20 16:15:41 +00:00
Derick Rethans
91766d4b9a
- Fixed copy and paste bug
2003-02-20 10:33:55 +00:00
Derick Rethans
b4b33b11ef
- Also add the optional raw output parameter to md5_file and sha1_file.
2003-02-20 10:32:35 +00:00
Derick Rethans
ead7521e4d
- No need to add the \0 ourselves, the estrndup in STRINGL takes care of
...
that for us.
2003-02-20 06:56:37 +00:00
foobar
6043ee22e8
- Fixed bug #22299 (gethostbyname() crash with non-existing domain on MacOSX)
2003-02-20 05:34:58 +00:00
Ilia Alshanetsky
69094da0e8
Revert accidental commit.
2003-02-20 00:34:03 +00:00
Ilia Alshanetsky
3bff5c0419
Fixed bug #22308 (optimized passthru, code is now ~40 times faster).
2003-02-20 00:32:51 +00:00
foobar
2b90480fa9
scandir -> php_scandir, alphasort -> php_alphasort
2003-02-19 09:27:29 +00:00
Ilia Alshanetsky
a6ef609a37
Fixed bug #22283 (possible crash when opening relative URLs).
2003-02-19 00:49:31 +00:00
Moriyoshi Koizumi
69113a3099
Added string.strip_tags filter.
2003-02-19 00:12:23 +00:00
Moriyoshi Koizumi
6389a79ea5
Fixed memory leaks on conversion failure.
2003-02-18 23:30:36 +00:00
Moriyoshi Koizumi
8793a78fee
Revived convert filter codes
2003-02-18 23:22:49 +00:00
Derick Rethans
d95c41eddb
- Added new parameter to sha1() and md5() which return the digest as
...
binary data. (Original patch by Michael Bretterklieber <mbretter@jawa.at>)
- Added test cases for sha1() and md5() based on the testvectors in RFC 1321
and RFC 3174.
@- Added new parameter to sha1() and md5() which return the digest as
@ binary data. (Michael Bretterklieber <mbretter@jawa.at>, Derick)
2003-02-18 20:31:19 +00:00
Moriyoshi Koizumi
89caaeb87c
Fixed bug #21708 (ucfirst() trouble again)
...
# this bug is related to bug #21689
2003-02-18 18:11:34 +00:00
Moriyoshi Koizumi
d4e9d48b18
Fixed bug #21689 (fgetcsv suppresses some characters before a separator)
...
The fix is suggested by Masahiro Nakayama <masa@sfc.wide.ad.jp>
# is* functions expect their argument to be an integer in range of 0-255
2003-02-18 15:15:22 +00:00
Wez Furlong
e52aac940f
Implement simple stream support in the ZE scanners.
2003-02-18 09:37:54 +00:00
Sara Golemon
73c78270b6
Introduce //filter target to php: wrapper to allow inline application of filters during fopen() style opperations
2003-02-18 06:10:14 +00:00
foobar
28f4cb18ec
nice() is part of libc, use AC_CHECK_FUNCS instead
2003-02-18 03:22:47 +00:00
Sara Golemon
6fe4ab41f0
Fix stream_filter_(ap|pre)pend to allow attaching on the read and/or write chains. Automagically decide what to do if noone tells us.
2003-02-18 02:53:24 +00:00
Wez Furlong
1e34a6bffc
Add basic test of read filters and read filter chain.
2003-02-18 01:24:41 +00:00
Ilia Alshanetsky
0ad5cac954
By popular demand nice() is renamed to proc_nice().
...
A better error message for proc_nice() failure.
2003-02-18 01:23:51 +00:00
Wez Furlong
32165a5546
Implement new filter API, stage 1.
...
This breaks user-space filters (for the time being), and those
weird convert.* filters in ext/standard/filters.c
The filters stack has been separated into one chain for read and one chain
for write.
The user-space stream_filter_append() type functions currently only operate
on the read chain. They need extending to work with the write chain too.
2003-02-18 01:22:21 +00:00
Ilia Alshanetsky
0fd1009fcc
Added nice() function, which allows changing of priority for the current
...
process.
2003-02-18 01:07:57 +00:00
Zeev Suraski
4934744b93
Win32 build improvements
2003-02-17 13:29:59 +00:00
Shane Caraveo
216d1d00a5
you know it's time to get away from the keyboard when you do this.
...
fix my last fix
2003-02-17 06:45:37 +00:00
Derick Rethans
738d4f401f
- Style polizei
2003-02-17 06:35:13 +00:00
foobar
7e9fb9f21f
- Cleaned this mess a bit:
...
. Centralized the functions sunrise/sunset to php_sunrise_sunset
to lessen duplicate code.
. Made wrapper function php_do_date_sunrise_sunset() to lessen
duplicate code.
. Coding style fixes.
. renamed sunfuncs.h -> php_sunfuncs.h
2003-02-17 06:28:07 +00:00
foobar
d3e006eafd
- These results were obviously got with TZ=GMT
...
# also prefixed the test results with the tested option
# so it's easier to see which one fails..
2003-02-17 06:23:22 +00:00
foobar
6b7a822cec
Assuming the results were created in system with Asia/Jerusalem as TZ
2003-02-17 05:51:03 +00:00
Shane Caraveo
eb6b7e80be
fix it the right way
2003-02-17 05:47:56 +00:00
foobar
1c89652590
override precision ini setting
2003-02-17 05:02:05 +00:00
Shane Caraveo
354a7d804b
If you pass NULL, you do not get a NULL value, make sure it is.
2003-02-17 03:26:16 +00:00
foobar
4e3d4e4329
- Let's be consistent with these..
2003-02-17 03:07:33 +00:00
Wez Furlong
f871a58783
Fix compile warning
2003-02-17 00:01:31 +00:00
Wez Furlong
63c95db648
Remove unused vars
2003-02-16 22:33:29 +00:00
Moshe Doron
ea8d11cc87
@ new idate() function.
...
@ new date_sunrise() function.
@ new date_sunset() function.
#since i have no premission updating the win32 project file, i'm sending patch on the list.
2003-02-16 22:28:01 +00:00
Wez Furlong
32c1eafe85
Remove bogus test.
...
Append mode always causes written data to go to the end of the file,
regardless of the current seek position.
2003-02-16 15:42:14 +00:00
Wez Furlong
7e92f636ef
Integrate Shanes patch that allows specifying the cwd and environment
...
for the child process created by proc_open().
2003-02-16 15:38:54 +00:00
Wez Furlong
0a18a9d744
A add much more useful select(2) implementation than is provided by
...
windows sockets. The winsock implementation will only work with sockets;
our implementation works with sockets and file descriptors.
By association, stream_select() will now operate correctly with files, pipes and sockets.
This change required linking against the winsock2 library. In terms of
compatibility, only older versions of windows 95 do not have winsock2
installed by default. It is available as a redistributable file, and is most likely installed by any OS patches (eg: Internet Explorer) applied by the user.
Also, add a win32 compatible pipe test when opening a stream from a pipe. This test will only work on NT, win2k and XP platforms. Without this test, interleaved fread() and select() calls would cause the read buffer to be clobbered. I will be working on a fix for this issue for win9x.
2003-02-16 03:48:49 +00:00
Wez Furlong
27e3d6477f
Add optional signal parameter to proc_terminate.
2003-02-15 17:33:11 +00:00
Wez Furlong
c3c24054e8
Add proc_terminate() function to forcibly kill off a process created
...
with proc_open().
2003-02-15 17:18:57 +00:00
Moriyoshi Koizumi
b069f35022
Fixed bug #22227
...
Added test case for bug #22227
2003-02-15 15:57:31 +00:00
Marcus Boerger
c34fde086b
a little bit slower but somewhat tricky and more flexible and it does not
...
allocate static buffers anymore
2003-02-14 19:43:06 +00:00
Moriyoshi Koizumi
9b49146dc1
Fixed a str_replace() bug similar to bug #22224
2003-02-14 18:59:50 +00:00
Moriyoshi Koizumi
b3a8349191
Fixed bug #22224 (implode changes object references in array)
...
Added test case for the bug
2003-02-14 18:42:36 +00:00
foobar
f9f4644a84
- Don't add libcrypt if the crypt() function is provided already.
...
(by libc, like in HP-UX)
2003-02-14 01:27:15 +00:00
Ilia Alshanetsky
2443adb8b5
Added test case for bug #22187 .
2003-02-13 19:07:20 +00:00
foobar
e6841d6c35
Added test for those different crypt() methods. Hopefully I got the results right.
2003-02-13 18:49:57 +00:00
Ilia Alshanetsky
7fffe4338a
Fixed bug #22207 (e notation in *printf would be missing a 0 when there is
...
no exponent).
Added a test case for the bug.
2003-02-13 17:25:31 +00:00
Ilia Alshanetsky
f8eba6ded2
Added 'x' mode for fopen() used on local files. This mode will create a new
...
file only if a file does not already exist (O_CREAT|O_EXCL).
2003-02-13 14:40:17 +00:00
Wez Furlong
95e7c2e9ed
Use FILE*-less implementation for php://(stdin|stdout|stderr)
2003-02-13 13:43:37 +00:00
Wez Furlong
1c3de808b9
Avoid problems with chunk_size and auto_detect_line_endings.
2003-02-13 13:38:20 +00:00
Wez Furlong
b81ea669a0
cli should be allowed to have the chroot() function.
2003-02-13 13:35:55 +00:00
foobar
a91a14ab16
ws fix
2003-02-13 07:02:53 +00:00
Ilia Alshanetsky
e1802d7228
Fixed bug #22048 (incorrect insertion of session id when tabs are used to
...
separate tag elements).
2003-02-12 14:56:13 +00:00
Ilia Alshanetsky
53f96c8b02
Added strpbrk(), which is essentially a wrapper around C's strpbrk function
...
that allows searching through a string for a character list.
2003-02-11 22:47:26 +00:00
Ilia Alshanetsky
53b7b0eb8c
Merged the flags for the file() function into a single flag.
2003-02-10 22:26:53 +00:00
Wez Furlong
eefe0f1bb0
ZTS fix
2003-02-09 23:11:23 +00:00