Wez Furlong
c1bdf163ed
Add comment about thread-safety of gethostbyname on win32.
...
Set the correct path to the win32 config.h file in the .dsp file.
2003-02-21 14:06:55 +00:00
Rasmus Lerdorf
d08a0e99c8
An input filter might not simply strip stuff, it might also turn things
...
into entities or use some other mechanism which causes the filtered data
to be longer than the original data. Ergo, pass in the address of the
buffer instead so the filter is free to reallocate it.
2003-02-20 22:21:49 +00:00
Rasmus Lerdorf
7429c2dc3f
Input Filter support. See README.input_filter for details.
...
@- Input Filter support added. See README.input_filter. (Rasmus)
2003-02-19 19:41:09 +00:00
foobar
0458bb5e2b
MFB
2003-02-19 18:45:51 +00:00
Harald Radi
53d70b2c14
prevent xdebug from crashing
2003-02-19 16:17:15 +00:00
foobar
7e3b50896c
ws/style fixes
2003-02-19 09:38:11 +00:00
foobar
ec11fe04e9
Fix the possible conflicts with other libs (like libc-client)
2003-02-19 09:25:16 +00:00
foobar
8e3f23e3c0
ws fixes + missing $Id$ tags, headers added
2003-02-19 08:40:19 +00:00
Wez Furlong
4c4d77d23e
Fix incorrect TSRMLS_CC usage.
...
Fix com_create_guid()
2003-02-18 19:03:44 +00:00
Wez Furlong
e52aac940f
Implement simple stream support in the ZE scanners.
2003-02-18 09:37:54 +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
952d5f548e
TSRMLS!
2003-02-18 01:39:26 +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
Zeev Suraski
4934744b93
Win32 build improvements
2003-02-17 13:29:59 +00:00
Wez Furlong
6e296c5cbb
Move some of the streams header into supplementary files
...
# Just when you thought you had learned your way around the streams code;
# I like to keep you all on your toes!
2003-02-17 00:20:38 +00:00
Wez Furlong
2cc68ad7ad
Move streams files around a bit, to ease maintenance.
...
I will update the win32 .dsp in a moment.
2003-02-16 22:19:28 +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
foobar
3a94aeae72
- Fix unsetting of open_basedir, safe_mode_exec_dir and user_dir with
...
"php_admin_value <ini option> none"
- Fixes bug #22220
2003-02-15 20:22:19 +00:00
Moriyoshi Koizumi
22517ce0de
Fixed bug #22234
2003-02-15 19:56:12 +00:00
Wez Furlong
f98f27ffa9
MFB: Fix for bug #22199
2003-02-13 21:08:04 +00:00
Ilia Alshanetsky
f9669f6c49
Modified fix for bug #22187 so that it does not affect handling of numbers
...
represented in scientific notation.
2003-02-13 19:02:34 +00:00
Wez Furlong
cddcaf737f
Another IS_SLASH fix.
2003-02-13 17:36:35 +00:00
Wez Furlong
cd7d762b79
A probable cure for many getcwd/relative include related problems for win32.
2003-02-13 17:20:20 +00:00
Ilia Alshanetsky
586672fd16
PAD() macro didn't increase the buffer size resulting in loss of the
...
padding.
2003-02-13 17:17:03 +00:00
Ilia Alshanetsky
343b92e66e
Fixed a typo.
2003-02-13 16:22:03 +00:00
Ilia Alshanetsky
c28753de76
Simplified the mode validation code & added support for read+write mode to
...
'x' mode.
2003-02-13 15:09:39 +00:00
Wez Furlong
2953892df3
Clarify error message.
2003-02-13 14:52:54 +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
77b98f8615
Potential fixes for #21809 and #22099 .
2003-02-13 14:35:47 +00:00
Wez Furlong
35878992d8
Moving away from ANSI stdio for plain files.
2003-02-13 13:40:34 +00:00
Wez Furlong
068c90bd1d
Whitespace-fix these goto labels.
2003-02-13 11:12:56 +00:00
Wez Furlong
b2b3596257
Fix for Bug #21815 (fpassthru ignored buffered data but then complained anyway)
2003-02-13 01:17:45 +00:00
Ilia Alshanetsky
f924aaf647
Fixed bug #22187 (spprintf function did not handle floats correctly).
2003-02-12 20:41:53 +00:00
Sascha Schumann
0cb1ff3bda
- trims +100 lines of code from spprintf.c
...
- introduces an overflow detection in STR_TO_DEC
- eliminates dead code (e.g. assert(foo); if (foo) {..})
- removes unused macros from the original code
- simplifies code (e.g. cc was completely dropped)
- improves run-time performance
The max_len feature is never used in our code base.
Nevertheless, cpu cycles were spent on each string
operation to check the current length against max_len which
is quite inefficient. Thus, I've moved the check to
vspprintf where it is applied only once per call.
2003-02-12 19:38:10 +00:00
Stefan Esser
a0873a8f7d
size matters not.
2003-02-11 21:44:02 +00:00
Stefan Esser
d2c550e991
8 + 20 + 1 + 1 = 30
...
There was no Bufferoverflow on 64bit systems.
And the "fix" broke the header code on systems with old style snprintf.
2003-02-11 21:41:32 +00:00
Marcus Boerger
e92f8f64e3
speed up
2003-02-11 20:30:37 +00:00
Moriyoshi Koizumi
6d95ea199d
Fixed possible snprintf problem
...
# besides snprintf returns int value, not uint / size_t...
2003-02-10 20:18:08 +00:00
Moriyoshi Koizumi
9450b1e4b0
Fixed possible buffer overflow in 64bit systems
2003-02-10 20:11:10 +00:00
Moriyoshi Koizumi
9d5811c1f0
Jani happification
2003-02-10 19:45:34 +00:00
Moriyoshi Koizumi
21f766b7a4
Fixed zlib.output_compression so it can work even if zlib extension is built as shared
2003-02-10 19:04:44 +00:00
Sascha Schumann
ba32a619ae
use SUCCESS/FAILURE instead of 0/-1
2003-02-09 21:15:55 +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
foobar
a09e1397c7
Fixed compile failures when ZLIB / PCRE are compiled as shared
...
extensions in same build.
2003-02-09 19:09:52 +00:00
Ilia Alshanetsky
a592f3cc56
Added missing definitions.
2003-02-07 22:49:21 +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
Zeev Suraski
021d1b684b
Fixlet
2003-02-07 09:39:39 +00:00
Hartmut Holzgraefe
2546f09b08
proto-fix
2003-02-03 23:36:19 +00:00
foobar
173b9493e2
Fixed bug: #22011 (-n must ignore all ini files)
2003-02-03 12:25:28 +00:00
Ilia Alshanetsky
ccf8365baa
Fixed bug #22021 .
2003-02-02 23:09:24 +00:00