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
Kai Schroeder
eb8bccee56
fix for #17928
2003-02-09 21:44:51 +00:00
Ilia Alshanetsky
f98ea4c46d
Added feature request #9173 (added stream_get_line(), this function will
...
read either the specified number of bytes or until the ending string is
found).
2003-02-09 20:43:05 +00:00
Ilia Alshanetsky
8b5bc3ecd3
Added feature request #17983 (optional parameter to mkdir() that makes
...
directory creation recursive).
Fixed prototype for file() function.
2003-02-09 20:35:54 +00:00
Ilia Alshanetsky
4eae41915f
Added feature request #14097 (option allowing file() command not to include
...
line endings in it's output. As well as another option, which allows blank
lines to be excluded from the output).
2003-02-09 20:05:13 +00:00
foobar
a09e1397c7
Fixed compile failures when ZLIB / PCRE are compiled as shared
...
extensions in same build.
2003-02-09 19:09:52 +00:00
foobar
7d46becbb2
Let this compile even if PCRE is compiled as shared in same build.
2003-02-09 18:47:21 +00:00
Kai Schroeder
e42339a6b4
shane added is_executable() for windows last night
2003-02-09 13:54:01 +00:00
Kai Schroeder
d1338ff914
reverting to version 1.5; shane added is_executable() for windows last night
2003-02-09 13:52:46 +00:00
Kai Schroeder
390799592d
newlines changed
2003-02-09 13:25:23 +00:00
Kai Schroeder
f93b09b2db
getopt() is currently not available on Windows
2003-02-09 13:23:50 +00:00
Kai Schroeder
11e81f89fd
there are no symlinks on Windows
2003-02-09 13:20:17 +00:00
Kai Schroeder
ea9101135f
is_executable() does not exist on Windows
2003-02-09 13:19:23 +00:00
Kai Schroeder
6fa2536252
die() to skip second message
2003-02-09 12:34:55 +00:00
Kai Schroeder
1e24498461
MSVC's mktime() does not examine the existence of a daylight-saving-time zone
2003-02-09 12:28:01 +00:00
Kai Schroeder
745bec1c48
Windows doesn't know timezone CET
2003-02-09 12:22:18 +00:00
Kai Schroeder
93d4e6e5ed
skip for Windows (does not support dates prior to midnight, January 1, 1970)
2003-02-09 12:21:47 +00:00
Kai Schroeder
d6567abbf4
Windows does not support dates prior to midnight, January 1, 1970
2003-02-09 12:20:54 +00:00
Kai Schroeder
8e14c4a89f
test for mktime()
2003-02-09 12:19:02 +00:00
Shane Caraveo
5048f8c60e
is_executable() now available on win32
...
stats can now get information provided by access()
2003-02-09 03:49:43 +00:00
foobar
b7a9ef8d80
style & ws fixes
2003-02-08 15:26:17 +00:00
Sara Golemon
3631b28f44
chunk_size should always be reduced to 1 while scanning response headers to avoid buffering the actual stream prior to any read calls.
2003-02-07 23:44:58 +00:00
Ilia Alshanetsky
67b19b08e3
Added str_split() function. This function can be used to break down a
...
string into an array.
2003-02-07 21:36:18 +00:00
Ilia Alshanetsky
b1a6778fe5
Added get_browser() function. This function can be used to fetch the headers
...
sent by the server when a request is made for a given URL.
2003-02-07 21:33:35 +00:00
foobar
20f9b6d02c
- Fixed bug #22088 (array_shift() leaves next index to be +1 too much)
2003-02-06 15:27:53 +00:00
foobar
073a80fbcc
fix the test
2003-02-06 15:22:41 +00:00
foobar
102f8cf4c1
Added testcase for bug #22088
2003-02-06 15:04:53 +00:00
Ilia Alshanetsky
f12a6b7663
Added array_walk_recursive() function that can apply array_walk recursively
...
to an array.
2003-02-05 17:56:08 +00:00
Zeev Suraski
3a1a209baf
Updates reflecting infrastructure changes
2003-02-04 13:12:48 +00:00
Ilia Alshanetsky
0d2368554a
Fixed bug #22017 (non descriptive error to appear when timestamp passed to
...
date() has value < 0. Win32 does not support timestamps prior to midnight
(00:00:00), January 1, 1970).
2003-02-03 22:48:26 +00:00
Ilia Alshanetsky
d89c38961b
Make putenv() return a proper error rather then NULL when invalid argument
...
is passed.
2003-02-03 21:48:36 +00:00
foobar
07a9729071
- Fixed bug: #21998 (array_pop() did not reset the current array position)
...
# This behaves now same as in PHP 4.2.3
2003-02-03 16:57:02 +00:00
foobar
7147949a4e
Correct description of the problem
2003-02-03 16:52:04 +00:00
foobar
be83a02b8c
This cause some warning/error in AIX
2003-02-03 13:08:08 +00:00
foobar
bb97dfaccb
Added test for bug #21998
2003-02-03 06:43:08 +00:00
Sebastian Bergmann
7ed0972683
Fix warning.
2003-02-02 18:50:42 +00:00
Zeev Suraski
53060ef869
Fix phpinfo() display of Zend extensions
2003-02-02 15:53:04 +00:00
Marcus Boerger
3e675c1cf4
avoid warnings
2003-02-01 23:38:29 +00:00
Marcus Boerger
27ccc66518
@Added XBM support for GetImageSize(). (helly)
2003-02-01 23:14:13 +00:00
Wez Furlong
84f83e8559
Don't assume that objects have class entries (in the ZE1 sense) when
...
determining the class name.
Additionally, don't assume that objects have a properties hash either.
2003-02-01 03:52:31 +00:00
Sascha Schumann
bea6ff5183
Unbreak $Id tag
2003-01-31 16:24:12 +00:00
Sara Golemon
65146ceb26
Unify str_replace and str_ireplace using INTERNAL_FUNCTION_PARAM_PASSTHRU -- reduce codebase/maintenance complexity
2003-01-30 20:09:19 +00:00
Sara Golemon
37ff98978b
Feature Request # 5919 - Addition of str_ireplace()
...
Also removed deprecated BM str replace menthod
Also rewrote php_str_to_str to use more processor/memory efficient method (ilia)
2003-01-30 05:00:41 +00:00