Sebastian Bergmann
5ca078779a
Eliminate some TSRMLS_FETCH() calls. Tested with Win32 build of SAPI/CGI and SAPI/CLI on Win32.
2003-03-25 08:07:13 +00:00
Shane Caraveo
456b6cbeab
The environment should *never* be magic quoted.
2003-03-23 19:30:31 +00:00
Shane Caraveo
26296130ad
Fix PHPRC overriding other ini files. This is how PHPRC worked prior to
...
4.3.x, and is usefull for applications that execute PHP and want to
emulate CGI and define alternate INI files (ie. cannot use -c).
2003-03-22 18:54:35 +00:00
Wez Furlong
e451d88399
Fix for persistent stream shutdown under debug builds
2003-03-20 01:23:04 +00:00
foobar
88fe9c2d3c
Fixed bug #22775 (Fatal errors exit with status 0 with CGI/CLI)
2003-03-19 08:22:12 +00:00
Wez Furlong
7379f47518
Sanity check for when a stream is requested to be persistent but the wrapper
...
does not respect the flag.
2003-03-19 00:17:15 +00:00
Wez Furlong
86fb577d59
Implement persistent plain file streams.
...
Usage:
php_stream *stream = php_stream_fopen("/path/to/file", "r+b", NULL,
STREAM_OPEN_PERSISTENT | ENFORCE_SAFE_MODE | REPORT_ERRORS);
the filename and mode are combined to form the hash key for the persistent
list; they must be identical for this same stream to be returned again in the
next request.
Calling php_stream_close() on a persistent stream *will* close it, as is
usual with all persistent resources in PHP/ZE.
This is deliberately *not* exposed to user-space PHP at this time.
2003-03-18 23:37:54 +00:00
Wez Furlong
6a87651006
Q}
2003-03-18 22:26:02 +00:00
Marcus Boerger
4529fb344c
-turn html_errors on by default again
...
-disbale clickable error messages by docref_root default to ''
2003-03-18 22:21:54 +00:00
Marcus Boerger
3e621fac94
make phpinfo() depend on executed sapi
2003-03-18 20:52:52 +00:00
Wez Furlong
ce01fd9526
Avoid using FILE* where possible.
...
Tidy up handling of potential error situations for the php:// wrapper.
2003-03-18 16:40:29 +00:00
Marcus Boerger
63739c7db8
give sapi modules the possibility to overwrite default ini settings
2003-03-18 15:53:33 +00:00
Wez Furlong
267db80b21
avoid unsigned issues.
2003-03-18 15:15:10 +00:00
Wez Furlong
7c2ccb5f65
Fix for #22721 (poor file() performance on systems without mmap)
2003-03-18 14:35:01 +00:00
Stig Bakken
0e6fca4f22
* email address change
2003-03-18 12:06:09 +00:00
Ilia Alshanetsky
e15cc99415
Win32 build fix.
2003-03-17 22:25:55 +00:00
Ilia Alshanetsky
27a7eaf4e7
Fixed bug #22538 (failed stat on stdio/stdin/stderr streams).
2003-03-17 18:32:15 +00:00
Wez Furlong
cfd0466389
Fix for Bug #21310 , based on a patch by jflemer@php.net.
2003-03-17 13:40:45 +00:00
Marcus Boerger
aba27fc6ca
- disable html_errors per default as suggested by php.ini-<xxx>
...
- new error format that does not point to any documentation (if either
not html_errors or no docref_root given e.g.: production boxes and default)
- documentation update in php.ini-<xxx>
# hope everyone is happy now
# and why on earth was enabling html_errors default?
2003-03-16 20:47:56 +00:00
Marcus Boerger
f60e8941e7
fix Bug #21751 - the parameter was wrong when this code was introduced
2003-03-15 16:39:35 +00:00
Wez Furlong
16e705a547
64bit fixes
2003-03-15 13:29:56 +00:00
Stefan Esser
10fc5dd573
reverting half the patch (it is not that simple)
2003-03-12 12:00:22 +00:00
David Hill
1edf7f55e5
64 bit corrections to parameters to OnUpdateInt Bug #20994 (Dave)
2003-03-10 14:50:16 +00:00
Marcus Boerger
d0fbdef419
fix warnings - one left
2003-03-08 16:53:54 +00:00
Stefan Esser
4535ff1756
fix possible XSS in error messages
2003-03-08 15:20:12 +00:00
foobar
3c9155e0cb
Renamed OnUpdateInt -> OnUpdateLong to prevent further misunderstandings.
...
# Intentionally left out any 'alias' for it, this way 3rd party extension
# maintainers will really NOTICE the change.
2003-03-07 05:15:28 +00:00
David Hill
5c90216d2c
64-bit correction to variables passed to zend_parse_parameters
...
@64-bit correction to variables passed to zend_parse_parameters (Dave)
2003-03-06 23:07:28 +00:00
Stefan Esser
af4aa97d1e
Fixing functionicalls with variable number of parameters...
2003-03-06 20:31:20 +00:00
Ilia Alshanetsky
4e6997ddf9
Fixed bug #22550 (overflow protection for upload_max_filesize ini setting).
2003-03-05 17:00:09 +00:00
foobar
61668d86b2
ws & CS
2003-03-04 14:12:39 +00:00
Ilia Alshanetsky
fb4dab36f4
Compiler warning fix.
2003-03-03 19:57:18 +00:00
Ilia Alshanetsky
4705fef539
More compiler warnings fixed.
2003-03-03 19:46:16 +00:00
Ilia Alshanetsky
94302c72b3
Compiler warning fix.
2003-03-03 19:41:36 +00:00
Ilia Alshanetsky
66c05f7035
Fixed compiler warnings.
2003-03-03 19:37:09 +00:00
Harald Radi
3e52882d3b
adding disable_classes ini directive based on the
...
newly introduced zend_disable_class function
2003-03-03 01:27:22 +00:00
Zeev Suraski
1f63fba1b7
Fix old variable names
2003-03-02 15:41:12 +00:00
Zeev Suraski
622da33231
- Optimize $_REQUEST
...
- Fix phpinfo()
2003-03-02 13:35:01 +00:00
Zeev Suraski
4e55747a2b
Add JIT initialization for _SERVER and _ENV
...
(it's less important for the others, even though it should be fairly
easy now too)
2003-03-02 10:19:15 +00:00
Moriyoshi Koizumi
6716188356
Reverted my previous commit
2003-03-01 18:47:18 +00:00
Wez Furlong
c3e6bcd398
Ensure that all fields are initialized to NULL.
2003-03-01 17:27:23 +00:00
Moriyoshi Koizumi
3de8b87cba
Fixed build
2003-03-01 15:49:06 +00:00
Wez Furlong
242166d601
Don't shutdown() unix sockets.
...
It causes the server end to close down/break.
2003-03-01 15:22:21 +00:00
Wez Furlong
a3cf1ab8f6
Folding fixes
2003-03-01 15:20:42 +00:00
Wez Furlong
349ce76f96
Tidy up stupid signed/unsigned issues with win32 by introducing a php_socket_t typedef.
2003-02-28 21:03:36 +00:00
Rasmus Lerdorf
1ad304c2c5
MFB config-file-scan-dir crash fix
2003-02-28 20:48:38 +00:00
Wez Furlong
1b53a2d12e
New user-space functions:
...
. stream_socket_client() - similar to fsockopen(), but more powerful.
. stream_socket_server() - Creates a server socket.
. stream_socket_accept() - Accept a client connection.
. stream_socket_get_name() - Get local or remote name of socket.
Tidy up some leaks and debug printfs.
Move more streams functions into streamsfuncs.c and streamsfuncs.h.
2003-02-28 19:53:21 +00:00
foobar
08b5f6b2b9
- No need to include the ssl headers elsewhere but in ext/openssl
...
# ext/ftp doesn't use streams yet so it needs to include them.
2003-02-28 07:25:15 +00:00
Wez Furlong
cd98ed7b0a
Implement memory mapping for win32.
...
Could do with some rigorous testing; simple readfile() tests here appear to work.
2003-02-28 01:47:28 +00:00
Ilia Alshanetsky
e089944308
compiler warning fixed.
2003-02-28 00:08:00 +00:00
Wez Furlong
cfd8150b30
Add a generic meta data api for streams.
2003-02-27 19:10:24 +00:00