Zeev Suraski
5af649efbd
Revert to the old php_ini.c, and reimplement the binary-path searching.
...
Should now also work under UNIX (CLI/CGI)
2002-05-11 03:41:17 +00:00
foobar
773da954f8
ws fix
2002-05-09 19:58:39 +00:00
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.
2002-05-08 12:33:44 +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
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
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
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
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
7990d742e5
Improve behaviour of the stream casting operation.
...
Improve interaction with fopencookie.
2002-03-19 23:29:37 +00:00
Wez Furlong
14a3911866
fix for bug #16168
2002-03-19 17:49:02 +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
Zeev Suraski
73e79322ba
Fix the build and all of the outstanding VC++ warnings
2002-03-18 08:05:28 +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
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
28d6981152
more *'s
2002-03-16 01:58:13 +00:00
Wez Furlong
0f65280cb5
New PHP streams...
2002-03-15 21:03:08 +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
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
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
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
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
Yasuo Ohgaki
0bf51b81bd
register_globals=off is defualt for 4.2.0
2002-02-05 06:31:53 +00:00
Edin Kadribasic
4972fac567
Ignore register_globals for $argc and $argv under CLI SAPI.
2002-01-31 00:05:07 +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
Derick Rethans
645a94cd5e
- Make an E_NOTICE error type show 'Notice' instead of 'Warning'.
2002-01-10 16:00:08 +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
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
Sebastian Bergmann
38933514e1
Update headers.
2001-12-11 15:32:16 +00:00
Bernd Roemer
99639f5812
Allow unserializer_callback_func to be turned off.
2001-12-02 17:31:11 +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
Zeev Suraski
312a226707
Fix set_time_limit() to affect only the current request (fix bug #13711 )
2001-11-19 14:59:38 +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
Derick Rethans
78747bd2df
- Don't wrap lines... this is annoying while coding.
2001-09-09 13:29:31 +00:00
Zeev Suraski
6bba521dd3
API update
2001-08-31 14:34:40 +00:00
Zeev Suraski
ab48027b3e
Fix unclean shutdown value
2001-08-30 13:38:33 +00:00
Thies C. Arntzen
3510482971
move php_shutdown_config further down
2001-08-16 09:40:05 +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
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
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
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
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
d76cf1da18
More TSRMLS_FETCH work
2001-07-31 04:53:54 +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
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
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
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
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
d1ac05a850
Fix warning
2001-07-15 19:14:25 +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
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
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
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
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
Rasmus Lerdorf
81e2cf03ac
Fix folding and clean up some extensions
2001-06-06 13:06:12 +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
foobar
128df6ead7
Fixed: http://www.php.net/bugs.php?id=10733&edit=1
2001-05-08 20:11:46 +00:00
foobar
d8ab8ea544
Fixed bug: #7227 . Now the correct strings (if set) are shown.
2001-05-06 15:22:22 +00:00
Daniel Beulshausen
0a121f855c
make pgsql build under win32 again
2001-04-30 14:23:41 +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
Stig Bakken
073fa0ee73
* define PEAR_EXTENSION_DIR as well
2001-04-25 21:46:40 +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
foobar
c34d2b91da
Added new configuration directives:
...
arg_separator.input and arg_separator.output
2001-04-04 20:46:26 +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
Frank M. Kromann
4578c9af93
Removing a compiler warning
2001-03-07 16:33:13 +00:00
Zeev Suraski
c64fe7fbe1
Fix non-thread safe mode
2001-03-04 01:45:19 +00:00
Andi Gutmans
eb6ba01d1c
- Fix copyright notices with 2001
2001-02-26 06:11:02 +00:00
Sascha Schumann
c2fb53bed7
Finish fopen-wrappers rename.
2001-02-23 22:07:16 +00:00
Andi Gutmans
9a28132876
- Fix indentation and remove comment.
2001-02-22 11:30:53 +00:00
Shane Caraveo
09c7116f6e
zend_compile_file returns a NULL on error, check for that before
...
calling destroy_op_array unless we like crashes :-)
2001-02-21 20:50:49 +00:00