Sascha Schumann
66036eab10
use thread-safe functions unconditionally
2002-05-07 13:24:07 +00:00
Sascha Schumann
946fca9c91
Add thread-safety to some conversion functions and sync a bit with
...
APR.
2002-05-07 05:26:30 +00:00
Zeev Suraski
fe127f93de
We shouldn't force Content-length:, but much worse, it's wrong in many
...
cases (basically, unless you use output buffering to buffer all of your content,
it won't work; output buffering is used for lots of different things as a
functional interface, and such buffers have no relation to Content-type at
all).
2002-05-04 23:23:16 +00:00
Sascha Schumann
707b8b019e
Free string before overwriting it
2002-05-04 19:06:46 +00:00
Sascha Schumann
9743860d35
simplify handling of variables by maintaining two strings which
...
are simply appended instead of traversing the hash table on each
URL/form.
also fix an unconditional segfault in rshutdown due to efree'ing
a static char *.
remove remove_var, add reset_vars. move the function declarations
into the right header file.
2002-05-04 18:33:13 +00:00
Sascha Schumann
4fe391cb91
these are case sensitive
2002-05-04 17:42:58 +00:00
James Cox
fb3d9b72e9
touch.
2002-05-04 17:41:03 +00:00
James Cox
7e22424996
add $id:$ line
2002-05-04 17:39:05 +00:00
Sascha Schumann
c998176089
free_index is set but never used
2002-05-04 17:34:41 +00:00
Sascha Schumann
7e05237ed4
call_result is set but never used
2002-05-04 17:32:01 +00:00
Yasuo Ohgaki
ae828233fe
Forgot to dup strings.
2002-05-04 10:55:08 +00:00
Yasuo Ohgaki
b1b5e42251
Fixed reference to freed zval string value.
2002-05-04 09:46:44 +00:00
Yasuo Ohgaki
dfc48de0cb
Fixed crash when buffer is over written in ob callback. (Bug $ 12227)
...
Added check current output function check for Centent-Length header.
@ Fixed output buffer crash when buffer is over written in callback. (Yasuo)
2002-05-04 03:02:51 +00:00
Thies C. Arntzen
9712a4b3c8
@ - Added output_add_rewrite_var() and output_remove_rewrite_var() to inject
...
@ and remove variables from the URL-Rewriter. (thies)
i have also modified the session module to use this - so it doesn't
need to fiddle with the output-system any more
2002-05-03 08:00:41 +00:00
Yasuo Ohgaki
5b83e9294c
Change nest level to send Content-Length again. It seems this is the
...
best setting for now.
PHP will not send Content-Length always. It only sends when it is
possible to send. output_buffer=0 is supposed to disable chunked
output, but it seems it does not disable. It also behaves a litte
strange way. This should be addressed someday.
It is possible Content-Length header is not set. If it happens, try to
increase chunk size for now. (i.e. output_buffer=40960)
I included a little debug code for me and other develpers to play with,
when (NestLevel==1 && ObStatus==5), PHP sends Content-Length.
2002-05-02 13:55:05 +00:00
Sebastian Bergmann
738b47c13e
The Windows build can now be configures more comfortably, for instance in regard to built-in extensions.
2002-05-02 09:49:41 +00:00
Yasuo Ohgaki
1103311eee
Fixed header output. Only need to output header when it is actually sent to client.
2002-05-02 06:50:18 +00:00
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
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
Frank M. Kromann
46a7b0cf61
Killing compiler warning on Win32
2002-03-05 00:21:28 +00:00
Jon Parise
577210441b
Silence a warning under Solaris 8 (WorkShop Compilers 5.0 98/12/15 C 5.0).
2002-03-04 20:57:36 +00:00
Derick Rethans
9c5b4a6c25
- Some more speed (and more consistency)
...
#- I had some spare time Sascha :)
2002-03-04 19:08:17 +00:00
Sascha Schumann
b4d5aa5c50
Supply php_html_puts which escapes a whole string.. now fully works in ZTS
...
mode, too.
2002-03-04 18:46:55 +00:00
Jon Parise
57472aa318
Silence warning under Solaris 8 (WorkShop Compilers 5.0 98/12/15 C 5.0).
2002-03-04 10:58:00 +00:00
James Cox
0c78c87f34
Changing the Velocis extension to now be called Birdstep, due to a product/company change.
...
added aliases for Velocis to the birdstep functions.
# testing is both advised and encouraged!
@ The Velocis extension is no
2002-03-04 09:10:32 +00:00
James E. Flemer
6a6b5a6108
(php_checkuid) Added case for root directory when mode is
...
not CHECKUID_ALLOW_ONLY_DIR.
2002-03-03 21:12:49 +00:00
James E. Flemer
ecac9a7e9e
(php_checkuid) Added case for root directory when mode is
...
CHECKUID_ALLOW_ONLY_DIR.
2002-03-03 20:49:04 +00:00
Hartmut Holzgraefe
bff90c71c1
typo fix
2002-03-02 16:41:55 +00:00
Zeev Suraski
e9ec537aba
Fix version number
2002-03-02 14:33:25 +00:00
Edin Kadribasic
ab57683ea0
Added PHP_SAPI constant which contains the name of running SAPI.
...
@- Added PHP_SAPI constant which contains the name of running SAPI. (Edin)
2002-03-01 19:29:35 +00:00
Yasuo Ohgaki
46bb7e0031
Do explicit test againt to FAILURE.
...
# Thanks Rasmus.
2002-03-01 09:29:32 +00:00
Yasuo Ohgaki
82a8d372e5
Added ob_get_status() to get array of buffers and it's status.
...
(DO NOT document this function yet)
Fixed crash bug with ob_end_*() function. ob_end_*() will not delete
buffers that may not be deleted.
php_start_ob_buffer() and php_ob_set_internal_handler() takes parameter for
if the buffer created may be deleted or not.
Added 3rd parameter "bool erase" to ob_start(). If FALSE, buffer may not be
deleted until script finshes.
Changed ob_*() function that have void return type to bool. All ob_*()
functions return TRUE for success, FALSE for failure.
@ - Added ob_get_status() to get array of buffers and it's status. (Yasuo)
@ - Fixed crash bug with ob_end_*() function. ob_end_*() will not delete
@ buffers that may not be deleted. (Yasuo)
@ - Added 3rd parameter "bool erase" to ob_start(). If FALSE, buffer may not be
@ deleted until script finshes. (Yasuo)
@ - Changed ob_*() function that have void return type to bool. All ob_*()
@ functions return TRUE for success, FALSE for failure. (Yasuo)
2002-03-01 03:05:50 +00:00
Shane Caraveo
a9fcfb133c
turn on force redirect for windows
2002-03-01 00:16:58 +00:00
Edin Kadribasic
ab2564053f
Removed CWD from php_ini_search_path when using CLI SAPI.
2002-02-28 12:12:39 +00:00
Sebastian Bergmann
90613d2282
Maintain headers.
2002-02-28 08:29:35 +00:00
foobar
8439b0691d
Fixed minor typo.
2002-02-27 12:11:09 +00:00
Derick Rethans
a44b57424b
- Oops... wishful thinking here :)
2002-02-27 11:30:48 +00:00
Derick Rethans
5921ac0de3
- Update version number
2002-02-27 11:30:06 +00:00
Andi Gutmans
c456da514c
- Hopefully fix the shutdown_memory_manager() stuff. Part of my previous
...
- patch seems to have gotten lost
2002-02-26 19:38:41 +00:00
Sebastian Bergmann
1b32da412d
TSRM Cleanup.
2002-02-26 19:31:21 +00:00
Andi Gutmans
a306665717
- Pass shutdown_memory_manager the TSRMLS context.
2002-02-26 18:59:27 +00:00
Derick Rethans
86fa2d3937
- Let php_execute_script return 0 on failure and 1 on sucess, and change
...
SAPIs accordingly. (Andrei, Derick)
2002-02-14 20:16:08 +00:00
Sascha Schumann
1288783667
Irix defines AF_INET6, but lacks IPv6 support, including
...
struct sockaddr_in6.
2002-02-12 11:00:15 +00:00
Stig Venaas
9e420659ad
Added php_sockaddr_size() in network.c (and the header file). This is used
...
in ftp.c to make sure connect() and bind() is called with size argument
which is exactly the size of the relevant sockaddr_xx structure
2002-02-10 12:35:29 +00:00
Yasuo Ohgaki
88e3aa7af6
Legacy code removed.
...
This line incorrectly removes buffer.
This line was correct only when ouput.c does not support
nested output buffers. Fixed bug #15178
2002-02-07 02:50:28 +00:00
Yasuo Ohgaki
a3e676f64b
pval -> zval
...
Check number of parameters
2002-02-05 07:37:42 +00:00
Yasuo Ohgaki
0bf51b81bd
register_globals=off is defualt for 4.2.0
2002-02-05 06:31:53 +00:00
Sebastian Bergmann
3ff94ed265
Fix thread-safe build.
2002-02-02 05:43:55 +00:00
James E. Flemer
6aadae975c
Changed php.ini directive 'safe_mode_include_dir' to accept a
...
(semi)colon separated path, rather than a single directory.
Also moved checking of said path into a separate path for code
readability.
@- Changed php.ini directive 'safe_mode_include_dir' to accept a
@ (semi)colon separated path (like 'include_path') rather than
@ a single directory. (jflemer)
2002-02-01 20:04:14 +00:00
Edin Kadribasic
4972fac567
Ignore register_globals for $argc and $argv under CLI SAPI.
2002-01-31 00:05:07 +00:00
Derick Rethans
580a4701ba
- Fix for bug #15057 : getimagesize() crashes when offline (on MacOSX)
2002-01-21 07:54:56 +00:00
Edin Kadribasic
f5790b0a7c
Modified the build system to make certain extensions (pcntl, ncurses,
...
pcntl) only with cgi/cli sapi's. This was done by adding 3rd optional
parameter to PHP_EXTENSION macro which should be set to "cli" if
the extension only makes sense for that class of api's.
2002-01-20 02:30:18 +00:00
Yasuo Ohgaki
34cfada447
Make --enable-safe-mode useful
...
# It seems this option is broken for a long time.
@ Fix --enable-safe-mode. This configure option was not working.
2002-01-19 03:15:03 +00:00
Stefan Esser
3acaa30c1c
fix for bug #14776
2002-01-14 13:36:54 +00:00
Derick Rethans
645a94cd5e
- Make an E_NOTICE error type show 'Notice' instead of 'Warning'.
2002-01-10 16:00:08 +00:00
jim winstead
e68095972e
Move type-handling functions into ext/standard/type.c (which had
...
a few otherwise unused functions in it).
2002-01-09 23:47:46 +00:00
Stig Venaas
a6ec8d37e6
hostconnect now divides the timeout with no. of addresses. If a connection
...
attempt times out, it goes on to the next. Unless each timeout would be
<5s. Added php_any_addr() that fills out the any address for IPv6 and IPv4.
2002-01-06 22:45:43 +00:00
Edin Kadribasic
1788410a56
Added argc and argv in request_info needed for the new cli sapi.
...
Modified registering $argc and $argv to support cli sapi.
2002-01-06 13:58:05 +00:00
Stig Venaas
6e1878b0fc
Added some consts for arguments in network.c declarations. Moved
...
php_sockaddr_storage to php_network.h and added check for struct
sockaddr_storage
2002-01-06 11:54:19 +00:00
Jon Parise
2720dc3c05
Nuke unused variable warning (end_arr).
2002-01-04 22:57:36 +00:00
Alex Waugh
e320de1e2e
Undefine AF_UNIX under RISC OS
2001-12-23 00:46:13 +00:00
Stefan Esser
a06a627394
fixed: fix for my broken patch.
2001-12-16 23:21:52 +00:00
Zeev Suraski
8e5e7efc5b
Freeing that TLS is just too complicated. Since we're shutting
...
down anyway, remove it for now (it did not exist in 4.0.6)
2001-12-16 22:45:57 +00:00
Stefan Esser
99e72c9ae5
whitespace. - now i know how code should look like ...
2001-12-16 21:59:13 +00:00
Stefan Esser
4d2343d7af
whitespace.
2001-12-16 21:47:37 +00:00
Stefan Esser
8022bb9b40
fixed: WWW-Authenticate -> header_line got only freed when safe_mode was activ
...
fixed: WWW-Authenticate -> content of header_line was changed after it was freed
2001-12-16 21:40:20 +00:00
Stefan Esser
b29bcc8618
fixed: bufferoverflow in sapi_add_header_ex triggerable by header("WWW-Authenticate: Basic foobar");
2001-12-16 14:47:18 +00:00
Stefan Esser
dce6ba9e0f
fixed: php_ap_getword was unaware of quotes
...
filenames with ; in it could not get uploaded
fixed: php_ap_getword_conf sometimes returned a static
string that crashs php when freed
(f.e. uploading the file "crash; name= ;"
crashed php)
fixed: magic_quotes was disabled while filling
variables with user supplied input
fixed: memoryleak (some strings did not get freed)
fixed: assuming that adress of "" is always the same
may fail on some compilers
2001-12-16 13:34:52 +00:00
Stefan Esser
58a5b6bfda
fixed some minor bugs and reordered some code to fix array uploads.
2001-12-13 18:12:58 +00:00
Sebastian Bergmann
38933514e1
Update headers.
2001-12-11 15:32:16 +00:00
Sebastian Bergmann
ae9de3ed37
Enable ext/overload by default on Win32, too.
2001-12-10 17:14:42 +00:00
Zeev Suraski
56986a4ab8
Remove redundant include
2001-12-05 13:46:36 +00:00
foobar
2605bd4b30
Store the read bytes so that some sapi modules know how much to read.
2001-12-05 00:44:17 +00:00
Derick Rethans
1f14640b3e
- Added ob_get_level, which returns the nesting level of the output buffering
...
mechanism. (patch by Yasuo Ohgaki <yasuo_ohgaki@yahoo.com>)
@- Added ob_get_level, which returns the nesting level of the output buffering
@ mechanism. (Yasuo, Derick)
2001-12-03 07:43:53 +00:00
Bernd Roemer
99639f5812
Allow unserializer_callback_func to be turned off.
2001-12-02 17:31:11 +00:00
Derick Rethans
9190271cef
- Added ob_flush and ob_clean functions, which do not end the buffer like
...
ob_end_flush and ob_end_clean do.
@- Added ob_flush and ob_clean functions, which flush and clean an
@ output buffer without destroying the buffer. (Derick)
2001-11-30 10:48:38 +00:00
Derick Rethans
06cdf297a8
- Adding a callback mechanism to the unserializer. (patch by Bernd
...
Roemer <berndr@bonn.edu>)
#- An explainatory e-mail will be send to php-dev
2001-11-26 21:04:21 +00:00
Sterling Hughes
b91a66699c
Z_TYPE(filehandle)?? ok.. whatever... ;)
2001-11-26 18:57:44 +00:00
foobar
18f7a8ca61
Added missing CVS Id tag.
2001-11-24 23:38:08 +00:00
foobar
6083eb1030
- Handle more error types when uploading files.
2001-11-24 18:23:35 +00:00
Zeev Suraski
ee111cf9c8
whitespace
2001-11-24 16:07:05 +00:00
Zeev Suraski
a25ccbec2e
whitespace
2001-11-24 16:05:22 +00:00
Zeev Suraski
312a226707
Fix set_time_limit() to affect only the current request (fix bug #13711 )
2001-11-19 14:59:38 +00:00
foobar
1e5e73e0ae
- Nuked some memleaks
...
- Changed the error to be set always. Otherwise the index for error
wouldn't be correct in case of uploading multiple files within array.
( <input type="file" name="test[]"> )
2001-11-16 03:34:26 +00:00
foobar
37dec69a7c
No use of populating the hash if there is no file saved.
2001-11-16 01:06:48 +00:00
foobar
ae82e1ccf2
In case of submitting form without any files selected don't set
...
the tmp_name.
2001-11-15 15:37:02 +00:00
foobar
b893e59095
Make the filesize 0 when upload fails. And changed the error messages to be different from each other.
2001-11-11 01:51:17 +00:00
foobar
7d479f4abb
Fix for bug: #14008 . Still needs some minor changes but should give idea about this.
2001-11-11 00:45:31 +00:00
Alex Waugh
bc26250413
Included header files needed by RISC OS
2001-11-04 12:35:49 +00:00
Derick Rethans
2830e45fe7
- Applied patch by Yasuo Ohgaki <yasuo_ohgaki@yahoo.com>
2001-11-01 10:57:49 +00:00
foobar
d6adcc98b5
After discussing with Rasmus, this line should be enough. Speak up if it is not.
2001-10-29 19:12:43 +00:00
foobar
3be12d1d9b
- Added myself to authors.
...
- Modified the clause about Apache to say what exactly was borrowed.
Should there be the Apache license included in this file?
2001-10-29 18:58:15 +00:00
Zeev Suraski
66a2690700
Fix pointer mess
2001-10-29 01:18:10 +00:00
foobar
44b68122c2
@- Fixed HTTP file upload support to handle big files better. (Jani)
...
# There are some minor memleaks still..I tried to eliminate them but
# without luck. I'd be glad if someone could check this code out.
# Also, this uses the Apache libapreq. So there might be need to add some
# license thingie there too?
2001-10-27 05:26:24 +00:00
Rasmus Lerdorf
db75202426
Let's suppress this warning if always_populate is enabled
2001-10-24 20:10:30 +00:00
Rasmus Lerdorf
42ec547950
Ok, now actually make it work - maybe...
2001-10-23 20:48:30 +00:00
Rasmus Lerdorf
71d341e2c0
@- $HTTP_RAW_POST_DATA was not populated on a missing content-type even when
...
@ always_populate_raw_post_data was on - fixed. (Rasmus)
$HTTP_RAW_POST_DATA was not populated on a missing content-type even when
always_populate_raw_post_data was on - fixed. (Rasmus)
2001-10-23 19:34:29 +00:00
Rasmus Lerdorf
8064e685be
Check if PCRE support is compiled in and only use the pcre functions if
...
it is. Otherwise just set the realm to the safe mode user id if it isn't.
2001-10-21 17:41:15 +00:00
Rasmus Lerdorf
02e25f0a1e
# Butt-ugly looking code here, but I need regular expressions to do this.
...
Re-instated safe-mode realm mangling as it was in php 2 and 3 albeit
in a somewhat more robust way.
@ Re-instated safe-mode realm mangling (Rasmus)
2001-10-20 22:01:56 +00:00
Harald Radi
67e663efbf
rename com module entry
2001-10-17 12:50:44 +00:00
Sebastian Bergmann
cb37652ca5
Bump version.
2001-10-15 20:18:02 +00:00
Stig Bakken
d7acbbe2c3
* set PHP_EXTENSION_DIR to c:\php4 and change the default
...
PHP_INCLUDE_PATH to c:\php4\pear
2001-10-15 08:29:00 +00:00
Stig Bakken
8d86cc6efe
* fix Windows default include path
2001-10-15 05:47:07 +00:00
Derick Rethans
a0bbfb590c
- <br> -> <br />
2001-10-06 20:13:39 +00:00
Jeroen van Wolffelaar
c033288573
Back-substitute for Z_* macro's. If it breaks some extension (the script isn't optimal, it parses for example var->zval.value incorrect) please let me know.
2001-09-25 21:58:48 +00:00
Daniel Beulshausen
e014d58e46
nuke VARIANT module
2001-09-25 17:08:02 +00:00
Andi Gutmans
315c894da8
- Commit fix for bug #11998 by Ralf Bolte <r.bolte@gmx.net>
2001-09-23 19:17:44 +00:00
Sterling Hughes
bcb426a207
Merge in qsort changes
2001-09-17 21:02:53 +00:00
Derick Rethans
78747bd2df
- Don't wrap lines... this is annoying while coding.
2001-09-09 13:29:31 +00:00
foobar
8d8e26577d
Cleanup.
2001-09-07 00:58:23 +00:00
foobar
b54ce06e96
Removed unused lines.
2001-09-05 01:03:50 +00:00
Rasmus Lerdorf
00ef03186e
This is a list of char *'s, not zvals (caught by Nick - see bug #13107 )
2001-09-03 18:58:00 +00:00
foobar
e46decaa32
First step for chunkifying the HTTP uploads.
2001-09-03 02:31:56 +00:00
Zeev Suraski
9e8a2e5ba9
Update API number
2001-09-01 14:55:29 +00:00
Zeev Suraski
357dfd5f14
Support multiple chunked output buffering layers
2001-08-31 15:56:48 +00:00
Zeev Suraski
5c1c22764a
Fix double freeing
2001-08-31 15:16:15 +00:00
Zeev Suraski
6bba521dd3
API update
2001-08-31 14:34:40 +00:00
Sebastian Bergmann
452c41ec9e
HEAD has been 4.0.8-dev for some time now, so name it accordingly.
2001-08-30 15:33:43 +00:00
Zeev Suraski
ab48027b3e
Fix unclean shutdown value
2001-08-30 13:38:33 +00:00
Zeev Suraski
b8763a6f8c
Get rid of TRANS_SID - it's always possible to use it now.
2001-08-25 16:09:23 +00:00
Zeev Suraski
13ff183225
Move the trans-sid mechanism to use the output buffering mechanism.
...
Advantages:
- Would work with the output buffering mechanism in general, and with
output compression in particular
- Should yield better performance (untested as of yet)
2001-08-25 15:57:42 +00:00
Wez Furlong
08073a5c60
TSRMLS fix
2001-08-25 09:20:18 +00:00
foobar
a3b9652564
This is not needed anymore.
2001-08-22 10:26:02 +00:00
Sterling Hughes
15b1e4ba9c
Fix XtOffsetOf compile problems if someone has already defined it.
2001-08-18 02:08:29 +00:00
Thies C. Arntzen
3510482971
move php_shutdown_config further down
2001-08-16 09:40:05 +00:00
Daniel Beulshausen
0dab84d065
fix SAPI_POST_* exports
2001-08-15 18:01:48 +00:00
Zeev Suraski
2cf25894a8
improve typedef definition
2001-08-14 22:57:09 +00:00
Zeev Suraski
e077c6bc28
Make it possible to enable chunked output buffering without providing
...
an output handling function
2001-08-11 22:55:00 +00:00
Zeev Suraski
a2dd66257f
Move the macro wrappers from the compatibility header to php.h
2001-08-11 01:13:31 +00:00
Jeroen van Wolffelaar
6da0268c2a
Possible fix 12360. If it doesn't help, it doesn't hurt, AFAIK...
2001-08-10 20:18:42 +00:00
Zeev Suraski
2969852fb3
Optimize macro usage...
2001-08-10 14:10:31 +00:00
Zeev Suraski
f7b2b02032
Centralize macros
2001-08-10 12:48:06 +00:00
Zeev Suraski
e786d4d9e2
Let's not introduce more mess to maintain.
2001-08-10 12:27:33 +00:00
Rasmus Lerdorf
05db76df86
Sablot extension cleanup - it compiles again now
2001-08-10 09:48:48 +00:00
Zeev Suraski
f47962c7c0
Implement import_request_variables()
2001-08-08 20:05:37 +00:00
Zeev Suraski
c31ba75577
Put it in the wrong case...
2001-08-08 19:15:38 +00:00
Zeev Suraski
6fdf6b4c82
- Fix precedence of the variables order in $_FORM
...
- Rename $_FORM to $_REQUEST for now
2001-08-08 18:26:03 +00:00
Zeev Suraski
5eb9495b1b
- Implement $_FORM
...
- Update phpinfo()
- Update NEWS
2001-08-08 17:16:20 +00:00
Zeev Suraski
7f4453f4c1
- Implement new short names - $_GET, $_POST, $_COOKIE, $_SERVER, $_ENV and $_FILES
...
- Use the Zend Engine infrastructure - make these variables available in
all functions
2001-08-08 16:36:04 +00:00
foobar
001df0d028
Yet another TSRM fix.
2001-08-07 20:13:54 +00:00
Sascha Schumann
23b9300fd1
more tsrm cleanup
2001-08-06 03:50:52 +00:00
Sascha Schumann
b349df6364
some more eliminate-fetches-or-escalate-them-at-least
2001-08-05 16:21:33 +00:00
Sascha Schumann
373b3e101e
more tsrm cleanup -- output.c is not doing any fetches anymore
2001-08-05 15:55:43 +00:00
Sascha Schumann
8aef193056
more tsrm cleanup
2001-08-05 15:29:47 +00:00
Sascha Schumann
aafdfe82cb
further tsrm cleanup
2001-08-05 14:36:51 +00:00
Zeev Suraski
1159c84ab7
- TSRMLS_FETCH work
...
- whitespace fixes
2001-08-05 01:43:02 +00:00
Zeev Suraski
2ec440078a
Get rid of a couple of bogus persist_alloc()'s, and some cleanup
2001-08-03 07:15:14 +00:00
foobar
0ccc2fd9ef
kill warning and make this build again.
2001-08-01 00:31:19 +00:00
Zeev Suraski
15cb7ca021
Fix some warnings
2001-07-31 23:32:24 +00:00
Zeev Suraski
b1de7fc900
More TSRMLS_FETCH annihilation. Enough for today...
2001-07-31 07:09:49 +00:00
Zeev Suraski
bc42c37513
More TSRMLS_FETCH work. Got it under 400 now.
2001-07-31 06:28:05 +00:00
Zeev Suraski
aa1772ca72
More TSRMLS_FETCH annihilation
2001-07-31 05:44:11 +00:00
Zeev Suraski
d76cf1da18
More TSRMLS_FETCH work
2001-07-31 04:53:54 +00:00
Thies C. Arntzen
6627bab38d
name-protect new expat function
2001-07-30 15:10:15 +00:00
Zeev Suraski
c43806f415
Zend compatibility patch
2001-07-30 08:24:42 +00:00
Zeev Suraski
797a079a95
More TSRMLS_FETCH work, and a bit of cleanup
2001-07-30 06:18:13 +00:00
Zeev Suraski
1c25b8dd53
Avoid TSRMLS_FETCH()'s, and clean up a bit of stale extern's and layout on the way
2001-07-30 01:56:43 +00:00
Rui Hirokawa
a787dc2c4d
changed for input encoding conversion in win32.
2001-07-29 22:15:41 +00:00
Zeev Suraski
d87cc976e1
Redesigned thread safety mechanism - nua nua
2001-07-28 11:36:37 +00:00
Sascha Schumann
30892690b3
Remove superfluous returns
2001-07-28 00:44:19 +00:00
Zeev Suraski
fe6f8712a4
- Get rid of ELS_*(), and use TSRMLS_*() instead.
...
- Move to the new ts_allocate_id() API
This patch is *bound* to break some files, as I must have had typos somewhere.
If you use any uncommon extension, please try to build it...
2001-07-27 10:16:41 +00:00
Andrei Zmievski
e308a157bf
Remove references to global startup functions.
2001-07-24 23:50:43 +00:00
Zeev Suraski
536a53356d
Get rid of the redundant global startup code
2001-07-24 20:30:37 +00:00
Sascha Schumann
076f4f5136
Unbreak various tests and transparent session id rewriting for now. This
...
has been tested extensively. Most SAPI modules (Apache 1.x, 2.0, thttpd,
AOLserver, CGI, TUX, Caudium, Roxen, NSAPI, Phttpd, Pi3web, Servlet)
call php_request_shutdown() right after php_execute_script (or
equivalent functionality), so that output is possible under an
overwhelmingly number of web-servers.
2001-07-23 14:05:26 +00:00
Daniel Beulshausen
c60a6a5bd9
fix date('T')
2001-07-22 13:16:15 +00:00
Andi Gutmans
7ce1846761
- Shouldn't be needed anymore
2001-07-21 15:13:19 +00:00
Andi Gutmans
4715403906
- Fix __FILE__ in the main script in CGI/command line mode.
2001-07-21 15:11:30 +00:00
Zeev Suraski
336004f4bc
Improved bailout mechanism, supports nested bailouts a-la try..catch
...
Note: You may *not* return directly from a catch block
2001-07-21 14:27:56 +00:00
Zeev Suraski
ef9504cafc
Fix UNIX build
2001-07-20 15:06:51 +00:00
Zeev Suraski
6f297a370a
Fix Windows build
2001-07-20 14:40:30 +00:00
Zeev Suraski
13ac04b8e5
Avoid getting bailouts on text output during shutdown. Text output is now
...
'officially' disabled during shutdown (this doesn't change the Apache module
behavior, but may change behavior of other server modules, in which it was
possible to emit output during shutdown; I think it's a good step towards
consistency, though)
2001-07-20 13:59:00 +00:00
Rasmus Lerdorf
9bc97ac865
Add always_populate_raw_post_data ini directive and default it to 0 to
...
maintain current behaviour. If this is turned on then $HTTP_RAW_POST_DATA
is always populated with a copy of the raw post data.
@ - Add config option (always_populate_raw_post_data) which when enabled
@ will always populate $HTTP_RAW_POST_DATA regardless of the post mime
@ type (Rasmus)
2001-07-17 16:46:07 +00:00
Zeev Suraski
a9915bf69a
Another layout fix
2001-07-16 20:43:18 +00:00
Zeev Suraski
b6064e5d3e
Fix layout
...
Guys - when submitting patches - please make sure you're not breaking
the layout of the code! It's not less important than the patch
itself.
2001-07-16 20:42:49 +00:00
Zeev Suraski
ba1249dc8e
Fix the crash Joey found
2001-07-16 13:48:07 +00:00
Zeev Suraski
407fd77c20
Generalize
2001-07-16 13:31:55 +00:00
Rasmus Lerdorf
721c562e2a
Fix a couple of build warnings
2001-07-16 04:31:13 +00:00
Zeev Suraski
d1ac05a850
Fix warning
2001-07-15 19:14:25 +00:00
Zeev Suraski
ab7f5ee038
Fix a crash with the new check-in-cwd code. It will now work only
...
with files which are included in runtime, and not files which are opened at startup (e.g., php.ini)
2001-07-15 12:24:06 +00:00
Zeev Suraski
54d6837b4b
2nd bug in the same line
2001-07-15 12:22:11 +00:00
Zeev Suraski
c77ed81803
remove bogus &
2001-07-15 12:02:58 +00:00
Zeev Suraski
ee19afea96
Make bailouts valid at request_startup
2001-07-15 11:53:18 +00:00
James E. Flemer
771e3e498f
o Fixed Bug #12121 : chdir and safe_mode
...
- [ main/safe_mode.h ] added new checkuid mode:
CHECKUID_ALLOW_ONLY_FILE: skips directory check if file check
fails
- [ ext/standard/dir.c ] changed php_checkuid() to use
CHECKUID_ALLOW_ONLY_FILE instead of CHECKUID_ALLOW_ONLY_DIR
- [ main/safe_mode.c ] added code for new checkuid mode
o Fixed Bug #12119 : safe mode owner check can be bypassed with symlink
- [ main/safe_mode.c ] use VCWD_REALPATH to resolve destination
of symlink before trimming filename
o New Feature: safe_mode_include_dir (php.ini directive)
- Allows bypassing UID/GID checks when including files
from the directory in safe_mode_include_dir and its
subdirectories. (safe_mode must be on, directory must
also be in include_path or full path must be used when
including)
o Fixed Feature: safe_mode_gid (php.ini directive)
- Correctly check (and report) UID/GID bits on directories
o Changed include() fall back to scripts cwd implementation
- CWD added to the (local) search path in php_fopen_with_path()
instead of seperate case. [ main/fopen_wrappers.c ]
2001-07-13 18:21:21 +00:00
Sascha Schumann
3dd33fdede
Fix xmlrpc_error:number handling
2001-07-13 16:08:39 +00:00
Zeev Suraski
66c8b08efa
Remove unreferenced variable
2001-07-11 17:10:13 +00:00
Thies C. Arntzen
5676e5ad05
use ZVAL_* macros
2001-07-11 15:27:37 +00:00
Andi Gutmans
2d9c29a31a
- Nuke fprintf()
2001-07-10 20:40:56 +00:00
Andi Gutmans
4b54140a35
- Commit patch which checks for an include file in the calling scripts'
...
current working directory if everything else fails (include_path).
- Right now this also effects things like opening php.ini. It'll now always
check in the current working directory for php.ini. I think this doesn't
screw up todays behavior.
2001-07-10 20:38:39 +00:00
Zeev Suraski
fa684c5bd4
Whitespace
2001-07-10 18:49:47 +00:00
Sascha Schumann
a2ce3c7068
Allow errors to be returned as XMLRPC fault packets.
...
Submitted by: Matt Allen <matt@investigationmarketplace.com>
2001-07-10 15:59:33 +00:00
Rasmus Lerdorf
89a73df39c
Fix Windows build (I think)
2001-07-09 18:57:19 +00:00
Rasmus Lerdorf
934e10c7dc
Add getmygid() and safe_mode_gid ini directive to allow safe mode to do
...
a gid check instead of a uid check.
@ - Add getmygid() and safe_mode_gid ini directive to allow safe mode to do
@ a gid check instead of a uid check. (James E. Flemer, Rasmus)
2001-07-09 17:36:04 +00:00
Daniel Beulshausen
fb30f1b067
enable get*by* networking functions + remove comments
2001-07-06 09:53:39 +00:00
Sascha Schumann
ef13ab5750
Improve url scanner speed (up to 40% for large chunks of data)
...
and handle some corner cases better. The scanner has been changed
to the format as proposed in "RE2C - A More Versatile Scanner Generator"
by Cowan et al.
2001-07-04 15:30:21 +00:00
Zeev Suraski
551f1831a7
Fix a major thread safety bug in the output mechanism
...
@- Fixed a major memory corruption bug in the thread safe version (Zeev)
2001-07-02 18:17:10 +00:00
Zeev Suraski
f35b85b4c1
Fix bug #11678
2001-06-26 18:30:31 +00:00
Zeev Suraski
a13252b601
- Fix leak in case of a syntax error
...
- Be more verbose in lint mode
2001-06-21 13:47:26 +00:00
Zeev Suraski
167dcb00be
Remove redundant code from lint mode, it should now do only what it needs to do
...
and not anything else, and should no longer leak.
2001-06-21 09:24:53 +00:00
foobar
b0ed727aee
Fix one problem with Opera browsers. Tested with IE,NS,Opera.
...
There can be also a \t before the 'filename=' part.
2001-06-19 16:54:30 +00:00
Sebastian Bergmann
e4f109b69f
Finish phpinfo() HTML 4.01 tweaking.
2001-06-19 15:21:28 +00:00
Rasmus Lerdorf
81e2cf03ac
Fix folding and clean up some extensions
2001-06-06 13:06:12 +00:00
Jason Greene
9e5b0de828
Add the capibility to to allow ap_php_(v)snprintf to replace (v)snprintf
...
if the platform has a broken (v)snprintf, or in my case, if a library included
by a module redifines snprintf incorrectly.
2001-06-05 16:35:56 +00:00
Rasmus Lerdorf
25c3a3a39d
vim-6 does folding - clean up a bunch of missing folding tags plus
...
some misguided RINIT and RSHUTDOWN calls in a few fringe extensions
2001-06-05 13:12:10 +00:00
Andrei Zmievski
171c425641
A little clean, merge two if statements.
2001-06-01 15:01:29 +00:00
Sterling Hughes
39e282254b
place nice with other libraries.
2001-05-30 05:00:39 +00:00
Andrei Zmievski
daefeb59d5
Kill warning.
2001-05-29 20:32:57 +00:00
Andi Gutmans
4ddb24366f
- Fix problem of output initialization
2001-05-23 16:52:45 +00:00
foobar
726bd849c0
oops..
2001-05-23 03:40:52 +00:00
foobar
1567b0dfe0
fixed bug: #10960
2001-05-23 00:33:47 +00:00
Andi Gutmans
177934732b
- Start nuking not needed GINIT
2001-05-22 19:19:04 +00:00
Andi Gutmans
98c2329b0b
- Fix name of function.
2001-05-21 17:48:49 +00:00
Sascha Schumann
e2eaf6342e
Add support for systems where p{read|write} take a off64_t without
...
being properly prototyped.
2001-05-20 23:39:09 +00:00
Sascha Schumann
ff5a9de31d
Support for IRIX-style asctime_r/ctime_r.
2001-05-20 21:29:55 +00:00
Sebastian Bergmann
6b206a66a4
MS VisualStudio .NET 7.0 has M_PI_4 in math.h
2001-05-17 09:55:03 +00:00
Harald Radi
06c7c52b58
changed php_typedef_VARIANT.h to php_VARIANT.h
2001-05-13 16:51:59 +00:00
Andi Gutmans
cbc07d4eb0
- Fix bug. The INI system expects a string for default INI values.
...
PR:
Submitted by:
Reviewed by:
Obtained from:
2001-05-12 20:11:01 +00:00
Sascha Schumann
fab8bd40d1
These functions have been changed to macros.
2001-05-12 10:28:39 +00:00
Thies C. Arntzen
25003ea668
4.0.6 is tagged, HEAD is now 4.0.7-dev
2001-05-11 18:03:42 +00:00
Thies C. Arntzen
cd2f057f1a
bump bundled expat to 1.95.1
...
win32 project _needs_ updating and i don't have windows
2001-05-11 17:57:37 +00:00
foobar
128df6ead7
Fixed: http://www.php.net/bugs.php?id=10733&edit=1
2001-05-08 20:11:46 +00:00
Zeev Suraski
ff11c36dc5
Avoid crashing if somehow, output is sent in a new thread tha had no requests
2001-05-07 22:00:13 +00:00
foobar
d8ab8ea544
Fixed bug: #7227 . Now the correct strings (if set) are shown.
2001-05-06 15:22:22 +00:00
foobar
9d1817ed7f
Fix bug: #10323 . Every value outputted is now escaped.
2001-05-06 15:20:56 +00:00
Wez Furlong
77e7035421
Fixed Andi's build problem.
2001-05-05 22:36:26 +00:00
Wez Furlong
3ffb8e3800
Nuke buffering from php_streams, move connect_nonb() from fsock.c to network.c
...
and rename to php_connect_nonb().
Use php_connect_nonb() instead of connect() in php_hostconnect() -> timeouts
should now work in php_hostconnect().
sock streams abstraction now uses php_sockbuf as the "abstract" pointer.
2001-05-05 18:36:22 +00:00
foobar
bf417a3b72
Now the file uploads 'work' also on Lynx. This patch was submitted
...
by Andreas Pistoor <andreas@erestor.f2s.com> and I have tested it a
quite long time now and didn't notive any problems. Bug: #9930
2001-05-02 01:18:53 +00:00
foobar
d0dac28cc2
Fix bug #10563
2001-05-01 23:22:55 +00:00
Andi Gutmans
ab9a7a5f5f
- Remove C++ comment
2001-05-01 16:33:09 +00:00
Andi Gutmans
d04562e845
- Fix snprintf() to work with nan and inf properly
2001-05-01 16:29:52 +00:00
Rui Hirokawa
09197a4531
renamed jstring to mbstring.
2001-05-01 01:52:55 +00:00
Daniel Beulshausen
0a121f855c
make pgsql build under win32 again
2001-04-30 14:23:41 +00:00
Rui Hirokawa
e2e2d432fd
added japanse http input (POST/GET/Cookie) handler. It is nessceary to add input encoding conversion functionality for ext/jstring.
2001-04-30 13:27:53 +00:00
Andi Gutmans
4c823e8a89
- Change macros from V_ to VCWD_ because of AIX name clash
2001-04-30 12:45:02 +00:00
Andi Gutmans
02b9292ff2
- Update to work with latest Zend
...
PR:
Submitted by:
Reviewed by:
Obtained from:
2001-04-29 12:58:50 +00:00
Daniel Beulshausen
1b279d3477
get rid of MS's _popen/_pclose
2001-04-27 16:41:53 +00:00
Sascha Schumann
453b4c7362
Make old readdir_r code compatible with HPUX and Solaris.
2001-04-27 11:14:48 +00:00
Stig Bakken
073fa0ee73
* define PEAR_EXTENSION_DIR as well
2001-04-25 21:46:40 +00:00
Frank M. Kromann
0be5cca176
Fix build on WIn32
...
Should the new directorys be static?
2001-04-23 17:33:22 +00:00
Stig Bakken
2cf1b8d345
* expanded the following constants and made them available in PHP:
...
DEFAULT_INCLUDE_PATH
PEAR_INSTALL_DIR
PHP_EXTENSION_DIR
PHP_BINDIR
PHP_LIBDIR
PHP_DATADIR
PHP_SYSCONFDIR
PHP_LOCALSTATEDIR
PHP_CONFIG_FILE_PATH
* no longer generating pear/PEAR.php
* fixed some tests
* some more installer work
2001-04-22 01:09:14 +00:00
Andi Gutmans
a6f90ec7c6
- Get rid of warning.
2001-04-21 11:40:04 +00:00
Wez Furlong
5dbb3a7708
Added files for PHP streams
2001-04-17 17:03:18 +00:00
Stig Bakken
0b2641efa6
@Added -C command-line option to avoid chdir to the script's directory (Stig)
2001-04-16 23:20:47 +00:00
Sascha Schumann
466c226415
Revert mega patch.
...
This patch has at least the following deficiences:
- the CGI is built using objects from another SAPI module.
This usually results in unsatisfied symbol references.
- the CGI makefile is not created properly
- building CGI cannot be disabled
2001-04-09 15:47:19 +00:00
Stig Bakken
a4877d7afd
* CGI version is always installed!
...
* replaced --disable-pear with --with-pear=DIR (or --without-pear),
is backwards compatible
* use --datadir, --libdir and --sysconfdir configure options to determine
where PEAR files, shared extensions and php.ini goes
* simplified the extension version directory name
2001-04-08 22:30:17 +00:00
foobar
349b2bebe3
fixed typo in CVS id
2001-04-06 01:50:40 +00:00
foobar
d9b309fdfa
This branch is 4.0.6-dev..
2001-04-04 20:52:44 +00:00
foobar
c34d2b91da
Added new configuration directives:
...
arg_separator.input and arg_separator.output
2001-04-04 20:46:26 +00:00
foobar
460293fbdc
Cookies use ; as argument separator.
...
# And also the first step for the possible configure option
2001-04-04 00:37:06 +00:00
Anil Madhavapeddy
d26ec12ba2
Free the correct output buffer, to avoid a segfault on a HEAD request
...
when using output buffering with a custom handler (patch by zeev@)
2001-04-02 16:45:27 +00:00
Zeev Suraski
b865380edb
Fix headers handling with output buffering
2001-03-31 22:53:19 +00:00
André Langhorst
7d50e21a4b
fix typo
2001-03-28 20:08:49 +00:00
André Langhorst
339ac67ce3
fix proto
2001-03-28 19:41:38 +00:00
foobar
8c97f5c04d
Fix the arg_separator behaviour. Only & or ; is allowed as separators so no need to use the ini setting here.
2001-03-27 11:34:51 +00:00
foobar
e76703ae6a
Fix possible crash if content-type is not set.
2001-03-18 08:00:10 +00:00
Zeev Suraski
d3572f74bb
These functions are not necessary - that's what sapi_register_post_entry()
...
and sapi_unregister_post_entry() are for...
Also, please maintain K&R code layout, it's very messy to have different
styles intermixed in the same codebase, and especially in the same files!
2001-03-18 02:32:04 +00:00
Zeev Suraski
9db5589161
Recode delayed loading in a much simpler way (switched back to php_ini.c 1.49)
2001-03-17 23:35:32 +00:00
Zeev Suraski
34b2fc4a6c
Fix the output buffering bug Andre found
2001-03-17 03:03:50 +00:00
Daniel Beulshausen
a37a9db454
fix bug in php_gmtime_r
2001-03-13 11:09:37 +00:00
foobar
6795032cb8
HAVE_BINDLIB --> HAVE_LIBBIND
2001-03-11 03:49:21 +00:00
Frank M. Kromann
4578c9af93
Removing a compiler warning
2001-03-07 16:33:13 +00:00
Zeev Suraski
9a04f870ab
Fix freeing of buffers
2001-03-06 19:38:33 +00:00