Marcus Boerger
318dc3e527
-added temporary streams
...
-added stream debug code
#should be used from php_stream_make_seekable
2002-03-17 23:50:31 +00:00
Wez Furlong
d2d8762267
Streams now make more use of the memory manager, so tracking down
...
leaking streams should be easier.
# I hate these big commits
2002-03-17 22:50:59 +00:00
Stefan Esser
0d3a45299d
SAFE_MODE restriction error message fixed if the file doesn't exist
2002-03-17 21:00:44 +00:00
foobar
fdc07402b5
- This is not used anymore.
2002-03-17 15:17:46 +00:00
Wez Furlong
12a0092376
Fix for php_stream_gets when the implementation does not support it
...
natively (Thanks Marcus).
Implement php_stream_make_seekable() and add STREAM_MUST_SEEK as an
option to php_stream_open_wrapper().
See README.STREAMS for usage.
2002-03-17 14:21:01 +00:00
Wez Furlong
effa6e8daa
tidy up the headers (streams related)
2002-03-17 13:29:44 +00:00
Wez Furlong
436e339bc7
Fix for Bug #16121 : make unix socket names binary safe.
...
# Could be applied to 4.2 branch, but I don't have a working copy, and
# I don't think it's amazingly critical.
2002-03-17 13:19:27 +00:00
Marcus Boerger
34cb24fcf7
-fix bug with wrappers
2002-03-17 12:06:41 +00:00
Marcus Boerger
8c3535e15a
-added memory streams
...
@added memory streams (marcus)
2002-03-16 20:11:06 +00:00
Marcus Boerger
bfe7a9acaf
-copy_stream_to_stream returns size if maxlen == PHP_STREAM_COPY_ALL
...
#had to commit myself to do the rest...
2002-03-16 20:05:08 +00:00
Wez Furlong
b28e19c004
fix ftell/fseek in stdio streams
2002-03-16 18:52:03 +00:00
Andi Gutmans
a18000f163
- Indentation fix.
...
Never do:
if (expr) {
}
else
It should be:
if (expr) {
} else {
2002-03-16 18:16:55 +00:00
Wez Furlong
1fdd2a7ddd
add HAVE_PHP_STREAM macro for extensions to test which fileio functions to use
2002-03-16 17:54:11 +00:00
Wez Furlong
0447327118
Implement get_file_contents() as discussed (briefly!) by myself, Derick
...
and Sterling on php-dev some months ago.
It returns the file contents as a string, and uses mmap if possible.
2002-03-16 16:06:18 +00:00
Wez Furlong
bed04279c3
Hopefully fix resource usage so that we have no leaks and don't segfault.
2002-03-16 14:39:51 +00:00
Wez Furlong
6beb1e37a8
work around apache segfault for the moment
2002-03-16 13:50:17 +00:00
Wez Furlong
30647934a4
Tweak the API to be more consistent.
...
Update docs.
2002-03-16 13:48:57 +00:00
Wez Furlong
12f893d142
fsock.c did it this way, so it must be OK...
2002-03-16 12:07:27 +00:00
Wez Furlong
a411b0e97b
bring back ptrdiff_t
2002-03-16 11:58:38 +00:00
Wez Furlong
31ed1707a1
Hopefully fix probs with apache.
2002-03-16 11:24:12 +00:00
Wez Furlong
29cb19ad18
some minor docu-in-header changes
2002-03-16 03:50:17 +00:00
Yasuo Ohgaki
31fe5e46cb
Quick fix build error when ptrdiff_t is not defined in types.h or sys/types.h
2002-03-16 03:37:11 +00:00
Yasuo Ohgaki
2d08c867c8
ZTS build fix
2002-03-16 03:33:48 +00:00
Yasuo Ohgaki
115a0be944
ZTS build fix
2002-03-16 03:30:19 +00:00
Wez Furlong
636829345e
Allow php_stream_copy_to_stream to do nothing when used with code
...
that calculates a max length of zero. (Thanks again Marcus).
2002-03-16 02:48:35 +00:00
Wez Furlong
7da30fa08c
some tweaks for seek/read used in image.c (thanks Marcus)
2002-03-16 02:39:39 +00:00
Wez Furlong
52982c422e
This should help with some build problems/warnings under win32.
...
Someone still needs to add the streams.c file to the MSVC
project/workspace though (there are so many that I don't really know
what I am doing :-).
2002-03-16 02:33:00 +00:00
Wez Furlong
28d6981152
more *'s
2002-03-16 01:58:13 +00:00
Andi Gutmans
8dfe4961c4
- More whitespace. I really can't do the other files though...
2002-03-16 00:13:46 +00:00
Andi Gutmans
f1e0b83277
- Change one strncpy() to strlcpy().
...
- Big indentation patch. I don't have strength to do all of the changed
- files but here's a good example. Please try and keep to the coding
- standards even if you think they suck :)
- Things to keep in mind:
- void *foo and not void * foo;
- if() { and not if()<TAB>{
- } else { and not {\nelse
-
- The streams stuff looks very cool though! :)
2002-03-16 00:05:47 +00:00
Wez Furlong
0f65280cb5
New PHP streams...
2002-03-15 21:03:08 +00:00
jim winstead
12bc95432a
don't redefine NDEBUG if it is already defined. yeesh.
2002-03-15 17:10:38 +00:00
Andi Gutmans
f7ec2505ca
- Revert assert fix until it becomes clear what was wrong with my previous
...
- fix. I don't see any warnings when building with VC++ English.
2002-03-15 10:49:31 +00:00
Yasuo Ohgaki
23917d0e0c
Avoid warnings under VC.
...
# If you know how assert() should be used under VC, please fix it.
2002-03-15 06:36:56 +00:00
Stefan Esser
cf4a292c5d
fixed a typo within checkuid
2002-03-14 16:48:18 +00:00
Andi Gutmans
bb7f0a919a
- Define HAVE_ASSERT_H under Windows. There was a macro redefinition before
...
- this.
2002-03-14 15:13:08 +00:00
Zeev Suraski
d3256ecf00
Good suggestion, but I'm not sure we want to start receiving bug
...
reports with that version
2002-03-14 14:15:26 +00:00
Sterling Hughes
6489b9c316
update version
2002-03-14 14:00:04 +00:00
Zeev Suraski
fb837bddaf
Childish, are we?
2002-03-14 13:42:58 +00:00
foobar
186651bd06
- Fixed version
2002-03-14 13:39:36 +00:00
Zeev Suraski
075dc0ccc6
Fix version number
2002-03-14 13:27:43 +00:00
Yasuo Ohgaki
cbc1cd802c
Include/enable assert.h/assert() when it is available
2002-03-14 02:17:23 +00:00
foobar
aba912e66f
- Fixed bug: #16047 , #15865 , and propably a few more..
2002-03-14 01:45:02 +00:00
Frank M. Kromann
e96dd60412
Changed to PHP_CONFIG_FILE_PATH use the environment variable SystemRoot
2002-03-12 18:08:52 +00:00
Stefan Esser
2872bce78a
Fix: Now returns correct Content-Type with Opera 6.01
2002-03-10 11:03:04 +00:00
foobar
f30a9f1c86
- Commented out the space escaping. Works now as it did before.
2002-03-09 00:24:02 +00:00
foobar
f57fe2a8df
- Fixed the phpinfo() tables not to blow up when using very long
...
configure line.
2002-03-07 22:18:09 +00:00
Frank M. Kromann
e58fbab4d1
Revert uppercase directory name to lower case.
2002-03-07 20:00:08 +00:00
Frank M. Kromann
ea0de609a6
Enabling crypt() on Win32
2002-03-07 19:46:23 +00:00
Derick Rethans
d1db2071fc
- Bump version numbers on HEAD
2002-03-06 22:26:02 +00:00