Yasuo Ohgaki
8ee815ec91
Check buffer status
2002-05-02 04:04:59 +00:00
Yasuo Ohgaki
f61b795a8f
Make Content-Type output always correct.
...
# Flushing buffer is needed to be fixed properly anyway...
2002-05-02 01:58:12 +00:00
Yasuo Ohgaki
43df0c78c0
Move Content-Length: header handling from zlib.c to output.c
...
When output buffer is enabled and header can be sent, Content-Length:
header is added always from now on.
2002-05-02 01:12:01 +00:00
Sebastian Bergmann
71872d8ec3
Add missing #define's.
2002-04-30 14:36:02 +00:00
Wez Furlong
b0ed189159
Remove debug code that should not have been committed.
...
# I must apologize for the quality of my commits tonight...
2002-04-30 00:22:44 +00:00
Wez Furlong
0989e7bb41
Remove this; it should not have been commited
2002-04-30 00:20:34 +00:00
Wez Furlong
479aa767f5
revert...
2002-04-30 00:17:48 +00:00
Wez Furlong
37411dd674
Implement context option setting API.
...
Add/amend debugging code for sockets.
Add a flag that will help the http wrapper optimize itself when
it is not being used for include/require.
2002-04-30 00:16:00 +00:00
Sebastian Bergmann
cd43b26095
Enable bundled build of ext/ctype and ext/mbstring on Win32.
2002-04-28 17:50:09 +00:00
Harald Radi
7e1a13131a
already defined in zend_config.win32.h
2002-04-25 09:01:35 +00:00
Stanislav Malyshev
68e5f549c0
Init output_start_* to avoid "output started at ZZZZZ" messages
...
(which may result when output started while zend is neither compiling nor
executing - e.g., when file upload fails).
2002-04-24 16:53:07 +00:00
foobar
ae2e36a4e5
Changed the error for 'no upload' to E_NOTICE so that it doesn't
...
pollute the logs too much.
@- Fixed possible crash bug in HTTP uploads. (Patch: Lucas Schroeder)
2002-04-23 00:14:08 +00:00
Wez Furlong
928bae9cf8
Make scheme part decoding rfc2396 compliant.
...
Change zlib:// and bzip2:// to compress.zlib:// and compress.bzip2://
Tidy up old socket/network code/comments.
2002-04-19 10:06:41 +00:00
Yasuo Ohgaki
e17161443a
Avoid defining/using S_ISDIR macro.
2002-04-19 05:48:22 +00:00
Sebastian Bergmann
a312b1f2ab
Allow for PCRE to be disabled.
2002-04-18 17:56:53 +00:00
Sebastian Bergmann
ecf95deb6a
Conditionally include mbstring.h.
2002-04-18 16:39:30 +00:00
Sebastian Bergmann
05a2de0d6a
Add HAVE_CALENDAR, HAVE_COM, HAVE_SESSION and HAVE_TOKENIZER to enable/disable these extensions, respectively. It is now possible to build PHP on Win32 with just ext/standard and ext/pcre. The latter is needed by the former, because at least the aggregation functions use PCRE.
2002-04-18 16:34:13 +00:00
Sebastian Bergmann
1d275db13b
Some cleanup for the Win32 build configuration.
2002-04-18 11:58:08 +00:00
Sebastian Bergmann
548421ff9a
Whitespace fixes.
2002-04-17 18:14:03 +00:00
Sebastian Bergmann
81599ef561
Only include php_bcmath.h when WITH_BCMATH=true.
2002-04-17 18:11:53 +00:00
Sebastian Bergmann
958c68a17c
Give HAVE_MYSQL meaning on Win32.
2002-04-17 18:10:35 +00:00
Sebastian Bergmann
08a4924344
Give HAVE_UODBC meaning on Win32.
2002-04-17 17:57:40 +00:00
Sebastian Bergmann
4a9c2f43f4
Give HAVE_LIBEXPAT and HAVE_WDDX meaning on Win32.
2002-04-17 17:51:30 +00:00
Sebastian Bergmann
d2809b9fca
Give HAVE_FTP meaning on Win32.
2002-04-17 17:38:03 +00:00
Sebastian Bergmann
a16213f5fd
Remove bogus includes.
2002-04-17 17:33:14 +00:00
Sebastian Bergmann
c2dd85ce15
Patch by Marcus Börger.
2002-04-17 17:25:18 +00:00
Sebastian Bergmann
90f32a7d9c
SPACEs->TAB.
2002-04-17 05:21:04 +00:00
Sebastian Bergmann
6d42121bf3
Forgot adding phpext_tokenizer_ptr.
2002-04-17 05:16:42 +00:00
Sebastian Bergmann
2fc2f74ad1
Enable ext/tokenizer by default on Win32, too. Since there is no HAVE_TOKENIZER flag, it cannot be turned off in config.w32.h.
2002-04-17 04:44:02 +00:00
Wez Furlong
b10b24d50c
Always initialize wrappers, regardless of PG(allow_url_fopen).
...
Add is_url field to wrapper structure; the stream wrapper openers
will disallow opening is is_url && !PG(allow_url_fopen).
Add infrastructure for stat($url) and opendir($url).
Tidy up/centralize code that locates and instantiates wrappers for the
various operations.
Implement opendir for plain files.
Make the PHP opendir and dir functions use the streams implementations.
Add modelines for syntax highlighting the pear scripts in vim
2002-04-16 22:14:27 +00:00
Marcus Boerger
7bb4b5bd76
fix cli/cgi -c <path>|<file>
...
#hope this fixes it really (works for me)
2002-04-16 19:08:02 +00:00
Frank M. Kromann
643fb6dcdf
Adding PHPAPI needed for exif on Win32
2002-04-15 22:22:53 +00:00
Wez Furlong
ca6b88ef46
should not be there
2002-04-15 20:12:29 +00:00
Wez Furlong
50cf12ce4c
Some minor tweaks and debugging for sockets.
2002-04-15 20:11:12 +00:00
Yasuo Ohgaki
3381fe4394
Fix cli/cgi -c option
...
# I must be sleeping
2002-04-13 14:12:17 +00:00
Wez Furlong
e2f00a130f
fix segfault
2002-04-12 18:17:19 +00:00
Yasuo Ohgaki
439b56842f
CGI/CLI take file and dir for -c option by this.
...
@ Both 'file' and 'path to php.ini' is allowed for "-c" cli/cgi option. (Yasuo)
2002-04-12 00:20:29 +00:00
Wez Furlong
ccbf1b84ee
sync with PHP_MAJOR_VERSION changes to configure.in
2002-04-11 15:50:32 +00:00
Wez Furlong
4adb1e58eb
Fix declarations (Thanks Sebastian)
2002-04-11 12:13:17 +00:00
Marcus Boerger
e76b401f32
fix build (hopefully for BSD, too)
2002-04-11 07:28:24 +00:00
Wez Furlong
e1d0a14790
Implement stream context and status notification system.
...
Bump the BC for zlib notice to a warning
# See my RFC to php-dev a few days ago
2002-04-10 22:42:32 +00:00
Marcus Boerger
4e1a645ab0
fix a warnig and an error (found by Sebastioan)
2002-04-10 13:02:53 +00:00
Marcus Boerger
bd9cf79efb
new ini setting log_errors_max_len
...
@-New ini setting log_errors_max_len controls maximum length for error
@ messages. Set it to 0 for infinite. Default is 1024 (old behaviour) (Marcus)
2002-04-10 01:27:44 +00:00
Marcus Boerger
3e70f373ce
make (v)spprintf available
2002-04-10 01:13:18 +00:00
Marcus Boerger
c664a0a202
introducing spprintf and vspprintf
...
#mail follows
2002-04-10 01:09:22 +00:00
Marcus Boerger
d3e97520d9
-preface for new vpprintf
...
#reordered and renamed some functions and removed some static
2002-04-10 01:07:49 +00:00
foobar
14a6bc6d69
upload_max_filesize can only be set in php.ini
2002-04-08 07:58:47 +00:00
Marcus Boerger
ddc6437e32
new feature ignoring repeated error messages (defaults to old behaviour)
...
@You can now disable logging of repeated error messages with two new ini settings ignore_repeated_errors, ignore_repeated_source. @(Marcus)
2002-04-06 18:49:59 +00:00
Wez Furlong
62538caa86
Added BC support for old style zlib: wrapper.
...
Added notice when a requested wrapper is not found.
# This BC thing was giving me nightmares.
# It took me 10 minutes to realize I hadn't compiled in zlib support also.
2002-04-06 17:29:39 +00:00
Wez Furlong
a0f165a5cb
main/streams.c
2002-04-02 16:46:33 +00:00
foobar
bccfe80480
Prevent crashing with some bogus POSTs.
2002-04-01 23:02:16 +00:00
foobar
f43ca8d2bc
Fixed a bug with file_uploads=off -> normal post variables not set.
2002-03-30 02:58:19 +00:00
Yasuo Ohgaki
266ba32b3c
Fix ZE2 build.
2002-03-29 01:19:02 +00:00
Wez Furlong
2539cbc74c
Phase 3 of OO wrapper cleanup
...
# What was phase 2?
2002-03-28 00:49:00 +00:00
Wez Furlong
5ee65bd8f5
Phase 1 of wrapper OO cleanup.
...
# Collecting underpants
2002-03-24 18:05:49 +00:00
Marcus Boerger
4df6833a79
-defined php_stream_temp_new() for standard temp streams
2002-03-23 17:51:20 +00:00
Hartmut Holzgraefe
10811cd0d8
getting rid of the warn_not_available alias
2002-03-22 01:10:31 +00:00
Markus Fischer
1d75089d8b
*** empty log message ***
2002-03-21 22:35:02 +00:00
foobar
9ef9a18d2c
The changes to build system and the streams stuff alone are big enough
...
reason to make next release 4.3.0
2002-03-21 20:55:55 +00:00
Marcus Boerger
661fd669ec
-missing efree in close
2002-03-21 20:37:04 +00:00
Wez Furlong
06f6e47e4c
Require that wrappers use <protocol>://<path> to avoid
...
ambiguities when filenames have ':' characters.
This slightly breaks BC with the old style zlib: wrapper.
2002-03-21 17:02:50 +00:00
Marcus Boerger
f2ae5b70d9
#uups commit on wrong file
2002-03-21 12:55:37 +00:00
Marcus Boerger
a598e0b73f
-fix missing efree
2002-03-21 12:45:32 +00:00
Wez Furlong
a662f012bb
Convert the gzfile related functions into aliases for their equivalents
...
in ext/standard/file.c, so a gzopen()ed file pointer can be used in
fread, fseek etc.
Improved behaviour of zlib stream.
Moved passthru code into streams.c
# I'm not happy about BG(mmap_file)
Nuked gzgetss_state as no longer needed.
2002-03-21 01:11:52 +00:00
Harald Radi
f64628eb7d
fixed signed/unsigned comparison warnings
2002-03-20 19:13:03 +00:00
Wez Furlong
3dbde95896
Make state parameter of php_strip_tags passed by reference.
...
Move state tracking to stream structure.
2002-03-20 14:38:13 +00:00
Wez Furlong
659a071e3d
Streams are all tracked as resources now.
...
Add some logic that will help track down leaks
when debug is enabled.
2002-03-20 14:21:30 +00:00
Wez Furlong
7990d742e5
Improve behaviour of the stream casting operation.
...
Improve interaction with fopencookie.
2002-03-19 23:29:37 +00:00
Zeev Suraski
a9411a6da2
Possibly fix a crash - Marcus, please take a look at it...
2002-03-19 19:16:20 +00:00
Zeev Suraski
dcb44bf512
- Fix whitespace (guys, please try to stick with the php4 tree style as far
...
as indentation/newlines go, and also as far as using {} even on if's
that have single statements)
- Fix Windows build
2002-03-19 19:15:40 +00:00
Wez Furlong
14a3911866
fix for bug #16168
2002-03-19 17:49:02 +00:00
Wez Furlong
b92f2da5fa
make buffer length warnings more verbose
2002-03-19 16:56:53 +00:00
Wez Furlong
32a4f35580
register some constants for user streams
2002-03-19 14:35:55 +00:00
Wez Furlong
6d55f16974
correct copy/paste typo
2002-03-19 13:46:32 +00:00
Wez Furlong
6d431f1caf
avoid possible buffer overruns when write returns a value larger than the buffer
2002-03-19 13:44:38 +00:00
Wez Furlong
b808af8601
Make file_get_wrapper_data return the underlying PHP object for
...
user-space streams.
2002-03-19 13:42:25 +00:00
Wez Furlong
06712a508a
Implement user-space streams.
...
There's probably room for improvement,
docs will following some time this week.
2002-03-19 03:51:01 +00:00
Wez Furlong
67231e25e4
make feof more useful on network streams
2002-03-19 03:49:03 +00:00
Frank M. Kromann
ce24409e86
Adding HAVE_SHUTDOWN on win32. Needed for the sockets extension to compile
2002-03-18 21:09:23 +00:00
Wez Furlong
33906e934a
Fix for bug #10001 : a timeout event prevents further reads.
...
The Bug DB has a patch that should be applied to fsock.c on the
4.2 branch.
2002-03-18 20:13:50 +00:00
Zeev Suraski
16c9da0eed
Fix build under Release_TS
...
Maybe separating TSRMLS away wasn't such a good idea (sorry Wez :)
2002-03-18 19:47:50 +00:00
Wez Furlong
48e902bacd
Fix for bugs #16148 , #11199 , #10092 :
...
fread from socket will never free memory.
This patch should also be applied to php_sockread_internal in
fsock.c in the 4.2 branch.
2002-03-18 19:42:19 +00:00
Wez Furlong
c978602a0b
fix non-TS build...
2002-03-18 19:13:11 +00:00
Wez Furlong
021bf6f01f
Shouldn't have made it into my last commit.
2002-03-18 18:57:25 +00:00
Wez Furlong
c9d5e13738
TSRMLS related work on streams, as discussed with Zeev.
...
# Should be the last "broad" commit for a while
# Don't forget to make clean ; make
2002-03-18 18:54:32 +00:00
Wez Furlong
966784bcde
fix TSRM build
2002-03-18 11:46:21 +00:00
Wez Furlong
dd9a3c94a8
tidyup use of STREAMS_DC macros
2002-03-18 11:18:07 +00:00
Zeev Suraski
8cb649d06d
Make Sebastian happy
2002-03-18 09:12:31 +00:00
Sascha Schumann
68d2592f52
Rename HAVE_PHP_STREAM to PHP_HAVE_STREAMS, because
...
1.) a PHP-specific symbol should be in the php namespace, and
2.) there are multiple streams and the old configure parameter was plural, too.
2002-03-18 08:29:17 +00:00
Zeev Suraski
73e79322ba
Fix the build and all of the outstanding VC++ warnings
2002-03-18 08:05:28 +00:00
Marcus Boerger
f83c6cc0a9
-temp streams are now clean (Thanks to Wez)
2002-03-18 04:57:06 +00:00
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