Sebastian Bergmann
ae6b6359d7
Add HAVE_MBSTR_RU support for Win32.
24 years ago
Wez Furlong
50f7427e69
Protect C code with extern "C"
24 years ago
Sander Roobol
751cd67cc0
get_cfg_var("get_file_path") didn't work correctly when an alternative
php.ini _file_ was specified using -c
24 years ago
Edin Kadribasic
544694255a
Added glob() support for windows.
24 years ago
Zeev Suraski
2260e1742d
- Centralize html_puts() again
- Revolutionize phpinfo()'s speed
24 years ago
Zeev Suraski
2369533bf9
Remove redundant code (thanks to Jani for pointing that out)
24 years ago
Sascha Schumann
f866bdc368
Simplify even more
24 years ago
Sascha Schumann
5c4ae13670
Simplify white space handling in php_html_puts.
If we encounter a ' ', we will look for the next non-' ' and set p
accordingly.
24 years ago
Sascha Schumann
a769454d79
reenable php_html_puts
24 years ago
Rasmus Lerdorf
63e6666216
MTH - thought the code was slightly different in HEAD because of the
streams stuff, but it is exactly the same bug.
@ Safe-mode fix related to the safe_mode_include_dir feature (Rasmus)
24 years ago
Zeev Suraski
b9fd10786b
Use portable #define
24 years ago
Zeev Suraski
bf97148978
Centralize html_puts() logic - php_html_puts() remains as an API wrapper
24 years ago
Zeev Suraski
77f41212f6
Removing HTMLization of ' ' wasn't ok, it didn't deal with series of spaces
properly. Turn series of spaces into 's.
24 years ago
Zeev Suraski
19b7861d70
0 byte file uploads are valid, avoid choking on them
24 years ago
Zeev Suraski
5af649efbd
Revert to the old php_ini.c, and reimplement the binary-path searching.
Should now also work under UNIX (CLI/CGI)
24 years ago
Edin Kadribasic
ffce791942
Added MD5 support for crypt() on Windows.
24 years ago
foobar
c241dc5c8b
ws fix
24 years ago
Preston L. Bannister
3c8c01b475
Compute directory for temporary files once and use same directory for all subsequent calls.
24 years ago
Preston L. Bannister
0c7cfcda4f
Detect when running under IIS and default force_redirect to zero. This This means an explicit php.ini setting is no longer required.
(NO extraneous whitespace changes this time (sigh)).
24 years ago
Preston L. Bannister
6de4f3a459
Add check for php.ini in same directory as php.exe (or equivalent executable that loaded php4ts.dll). Check is done before looking in the Windows directory. This allows distinct php.ini files when different applications using PHP are installed on the same system. Should be backwards compatible.
Note that checking for in CWD php.ini may be a security risk(?), and can now be made compile-time configurable by removing a single #define.
(This time with tabs for leading indent).
24 years ago
foobar
42c82bb40d
Revert the last patches.
24 years ago
foobar
773da954f8
ws fix
24 years ago
Preston L. Bannister
fb0c506592
Add check for php.ini in same directory as php.exe (or equivalent executable that loaded php4ts.dll). Check is done before looks in the Windows directory.
This allows distinct php.ini files when different applications using PHP are installed on the same system. Should be backwards compatible.
Note that checking for php.ini in CWD may be a security risk(?), and can now be made compile-time configurable by removing a single #define.
24 years ago
Preston L. Bannister
2d22fc3316
Compute directory for temporary files once and use same directory for all subsequent calls.
24 years ago
Rui Hirokawa
f30b722f14
Added conversion support from script character encoding to internal character encoding. This feature is very useful for japanese who uses Shift_JIS encoding because some of characters in Shift_JIS are including '0x5c' and it causes some troubles on Zend parser. This patch is made by Masaki Fujimoto.
24 years ago
Yasuo Ohgaki
2b5beee5ad
Added estrdup() needed.
Fixed typo.
24 years ago
Sascha Schumann
50f68406cb
Due to the thread-safety changes and lots of other stuff, the
current tree is not backwards compatible anymore. Bump API no.
24 years ago
Frank M. Kromann
7c80fc1d9e
Fixing win32 build.
24 years ago
Sascha Schumann
66036eab10
use thread-safe functions unconditionally
24 years ago
Sascha Schumann
946fca9c91
Add thread-safety to some conversion functions and sync a bit with
APR.
24 years ago
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).
24 years ago
Sascha Schumann
707b8b019e
Free string before overwriting it
24 years ago
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.
24 years ago
Sascha Schumann
4fe391cb91
these are case sensitive
24 years ago
James Cox
fb3d9b72e9
touch.
24 years ago
James Cox
7e22424996
add $id:$ line
24 years ago
Sascha Schumann
c998176089
free_index is set but never used
24 years ago
Sascha Schumann
7e05237ed4
call_result is set but never used
24 years ago
Yasuo Ohgaki
ae828233fe
Forgot to dup strings.
24 years ago
Yasuo Ohgaki
b1b5e42251
Fixed reference to freed zval string value.
24 years ago
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)
24 years ago
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
24 years ago
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.
24 years ago
Sebastian Bergmann
738b47c13e
The Windows build can now be configures more comfortably, for instance in regard to built-in extensions.
24 years ago
Yasuo Ohgaki
1103311eee
Fixed header output. Only need to output header when it is actually sent to client.
24 years ago
Yasuo Ohgaki
8ee815ec91
Check buffer status
24 years ago
Yasuo Ohgaki
f61b795a8f
Make Content-Type output always correct.
# Flushing buffer is needed to be fixed properly anyway...
24 years ago
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.
24 years ago
Sebastian Bergmann
71872d8ec3
Add missing #define's.
24 years ago
Wez Furlong
b0ed189159
Remove debug code that should not have been committed.
# I must apologize for the quality of my commits tonight...
24 years ago