]> granicus.if.org Git - php/log
php
22 years agoAdded ftp_ssl_connect() for FTP over SSL.
Stefan Esser [Thu, 3 Oct 2002 11:33:05 +0000 (11:33 +0000)]
Added ftp_ssl_connect() for FTP over SSL.

22 years agoGuys, please keep K&R.
Zeev Suraski [Thu, 3 Oct 2002 11:18:39 +0000 (11:18 +0000)]
Guys, please keep K&R.

22 years agoFix warnings.
Sebastian Bergmann [Thu, 3 Oct 2002 11:08:09 +0000 (11:08 +0000)]
Fix warnings.

22 years ago- Fix descriptions
Derick Rethans [Thu, 3 Oct 2002 11:00:13 +0000 (11:00 +0000)]
- Fix descriptions

22 years ago- Add highlight_string buffering test
Derick Rethans [Thu, 3 Oct 2002 10:47:47 +0000 (10:47 +0000)]
- Add highlight_string buffering test

22 years agotyping
Marcus Boerger [Thu, 3 Oct 2002 10:44:13 +0000 (10:44 +0000)]
typing

22 years ago- Add tests
Derick Rethans [Thu, 3 Oct 2002 10:43:43 +0000 (10:43 +0000)]
- Add tests

22 years agows fixes.
Andrey Hristov [Thu, 3 Oct 2002 10:42:57 +0000 (10:42 +0000)]
ws fixes.

22 years ago- Revert changed to implicit_flush behavior. The new behavior was not
Derick Rethans [Thu, 3 Oct 2002 10:35:33 +0000 (10:35 +0000)]
- Revert changed to implicit_flush behavior. The new behavior was not
  intended in the first place.

22 years agoAdded some info about new functions and changed functionality in old ones.
Andrey Hristov [Thu, 3 Oct 2002 10:25:21 +0000 (10:25 +0000)]
Added some info about new functions and changed functionality in old ones.

22 years agoShouldn't enable implicit_flush like this.
Yasuo Ohgaki [Thu, 3 Oct 2002 09:57:53 +0000 (09:57 +0000)]
Shouldn't enable implicit_flush like this.
Most problems are fixed. If you find internal function that does
not follow my comment, please fix it or let me know.

22 years agoFixed broken higlight_string()
Yasuo Ohgaki [Thu, 3 Oct 2002 09:19:31 +0000 (09:19 +0000)]
Fixed broken higlight_string()

22 years agorenamed ftp_async_* into ftp_nb_*
Stefan Esser [Thu, 3 Oct 2002 09:10:24 +0000 (09:10 +0000)]
renamed ftp_async_* into ftp_nb_*

22 years ago - Added wddx_serialize_type(). Allows users to cast values to WDDX types
Jan Lehnardt [Thu, 3 Oct 2002 08:56:10 +0000 (08:56 +0000)]
 - Added wddx_serialize_type(). Allows users to cast values to WDDX types
@- Added wddx_serialize_type(). Allows users to cast values to WDDX types (jan)

22 years agoPrevent unwanted fluhsing.
Yasuo Ohgaki [Thu, 3 Oct 2002 08:54:45 +0000 (08:54 +0000)]
Prevent unwanted fluhsing.

22 years agoAdded comment for php_output_set_status().
Yasuo Ohgaki [Thu, 3 Oct 2002 08:54:13 +0000 (08:54 +0000)]
Added comment for php_output_set_status().
Please use this function if you would like to prevent unwanted flush
by implicit_flush=On or ob_implicit_flush().

22 years agoPurge ini_set calls and replace through INI sections.
Sascha Schumann [Thu, 3 Oct 2002 08:07:21 +0000 (08:07 +0000)]
Purge ini_set calls and replace through INI sections.

22 years ago- Fix ZTS build
Andi Gutmans [Thu, 3 Oct 2002 07:23:50 +0000 (07:23 +0000)]
- Fix ZTS build

22 years agoUpdate test
Yasuo Ohgaki [Thu, 3 Oct 2002 07:19:27 +0000 (07:19 +0000)]
Update test

22 years agoAdded ob_flush_all() that flushes bufferred contents until it actually
Yasuo Ohgaki [Thu, 3 Oct 2002 07:17:14 +0000 (07:17 +0000)]
Added ob_flush_all() that flushes bufferred contents until it actually
sent/printed.
@ Added ob_flush_all() that flushes all buffers. (Yasuo)

22 years agomove gc_maxlifetime one up
Sascha Schumann [Thu, 3 Oct 2002 06:52:23 +0000 (06:52 +0000)]
move gc_maxlifetime one up

22 years agoAdd recommened entries, including disabling the session bug/feature
Sascha Schumann [Thu, 3 Oct 2002 06:51:38 +0000 (06:51 +0000)]
Add recommened entries, including disabling the session bug/feature

22 years agoAdd new session options
Sascha Schumann [Thu, 3 Oct 2002 06:49:33 +0000 (06:49 +0000)]
Add new session options

22 years agoMake the interpretation of gc_probability configurable by adding
Sascha Schumann [Thu, 3 Oct 2002 06:45:15 +0000 (06:45 +0000)]
Make the interpretation of gc_probability configurable by adding
session.gc_dividend. The probability of running gc on each request is then
gc_probability/gc_dividend.

22 years agoReenable E_WARNING and test session.bug_compat_warn in addition.
Sascha Schumann [Thu, 3 Oct 2002 06:41:25 +0000 (06:41 +0000)]
Reenable E_WARNING and test session.bug_compat_warn in addition.

22 years agosession_destroy resets the sid, so we need to set it again here
Sascha Schumann [Thu, 3 Oct 2002 06:33:19 +0000 (06:33 +0000)]
session_destroy resets the sid, so we need to set it again here

22 years agoVerify PHP 4.2 compatibility: global is used albeit register_globals=0
Sascha Schumann [Thu, 3 Oct 2002 06:32:45 +0000 (06:32 +0000)]
Verify PHP 4.2 compatibility: global is used albeit register_globals=0

22 years agoUse ZEND_SET_SYMBOL_WITH_LENGTH correctly (hopefully)
Sascha Schumann [Thu, 3 Oct 2002 06:29:58 +0000 (06:29 +0000)]
Use ZEND_SET_SYMBOL_WITH_LENGTH correctly (hopefully)

It strikes me as awkward that a Zend API user needs to take care of
doing the engine's reference counting.

This fixes a memory overrun in a testcase.  All ZEND_SET_* calls
should be correct now.

22 years ago(track_init) Use is_ref/refcount parameters of SET_SYMBOL macros
Sascha Schumann [Thu, 3 Oct 2002 05:53:45 +0000 (05:53 +0000)]
(track_init) Use is_ref/refcount parameters of SET_SYMBOL macros

(save_current_state) Prevent a possible deadlock which occurs when
the track vars are inaccessible

22 years agoVerify PHP 4.2 compatibility: unset($c) with enabled register_globals
Sascha Schumann [Thu, 3 Oct 2002 05:06:01 +0000 (05:06 +0000)]
Verify PHP 4.2 compatibility: unset($c) with enabled register_globals

22 years agoForgot 1 byte for \0
Yasuo Ohgaki [Thu, 3 Oct 2002 04:56:54 +0000 (04:56 +0000)]
Forgot 1 byte for \0

22 years agoSave memory
Yasuo Ohgaki [Thu, 3 Oct 2002 04:54:01 +0000 (04:54 +0000)]
Save memory

22 years agoAlign behaviour with 4.2 with regard to register_globals=1
Sascha Schumann [Thu, 3 Oct 2002 04:53:05 +0000 (04:53 +0000)]
Align behaviour with 4.2 with regard to register_globals=1

session_register("c");
unset($c);
$c = time();

If a user unsets a global session variable, it is not a reference
to a $_SESSION slot anymore.

During serialization, PHP 4.2 will not find the respective entry in
$_SESSION and fall back to the global sym table.

22 years agoAdded missing proto and foldings.
Yasuo Ohgaki [Thu, 3 Oct 2002 04:17:41 +0000 (04:17 +0000)]
Added missing proto and foldings.

22 years agoMove wrong output buffer usage check to ob_gzhandler init.
Yasuo Ohgaki [Thu, 3 Oct 2002 03:58:12 +0000 (03:58 +0000)]
Move wrong output buffer usage check to ob_gzhandler init.
Export some output buffer functions.

22 years agoNuke PS(vars), we keep the state of registered session variables now
Sascha Schumann [Thu, 3 Oct 2002 03:23:02 +0000 (03:23 +0000)]
Nuke PS(vars), we keep the state of registered session variables now
completely in PS(http_session_vars). This avoids bugs which are caused
by a lack of synchronization between the two hashes. We also don't need
to worry about prioritizing one of them.

Add session.bug_compat_42 and session.bug_compat_warn which are enabled
by default. The logic behind bug_compat_42:

IF bug_compat_42 is on, and
IF register_globals is off, and
IF any value of $_SESSION["key"] is NULL, and
IF there is a global variable $key, then
$_SESSION["key"] is set to $key.

The extension emits this warning once per script, unless told otherwise.

"Your script possibly relies on a session side-effect which existed until
PHP 4.2.3. Please be advised that the session extension does not consider
global variables as a source of data, unless register_globals is enabled.
You can disable this functionality and this warning by setting
session.bug_compat_42 or session.bug_compat_warn.

22 years agoMade some functions inline.
Yasuo Ohgaki [Thu, 3 Oct 2002 02:55:19 +0000 (02:55 +0000)]
Made some functions inline.
Added static for unexported functions.

22 years agoRename pg_data_seek() to pg_result_seek().
Yasuo Ohgaki [Thu, 3 Oct 2002 02:41:19 +0000 (02:41 +0000)]
Rename pg_data_seek() to pg_result_seek().
Give a correct credit for Marcus and Wez.

22 years agoRename pg_data_seek() to pg_result_seek().
Yasuo Ohgaki [Thu, 3 Oct 2002 02:32:09 +0000 (02:32 +0000)]
Rename pg_data_seek() to pg_result_seek().
Added mysql_result_seek() which is alias of mysql_data_seek().

22 years agoAdded ob_get_clean() and ob_get_flush().
Yasuo Ohgaki [Thu, 3 Oct 2002 01:36:44 +0000 (01:36 +0000)]
Added ob_get_clean() and  ob_get_flush().
Someone requested this feature before.
@ Added ob_get_clean() and og_get_flush(). (Yasuo)

22 years agoAdded missing TSRMLS_DC to php_apache_lookup_uri()
Ilia Alshanetsky [Thu, 3 Oct 2002 01:28:04 +0000 (01:28 +0000)]
Added missing TSRMLS_DC to php_apache_lookup_uri()

22 years agoChangeLog update
<changelog@php.net> [Thu, 3 Oct 2002 00:35:16 +0000 (00:35 +0000)]
ChangeLog update

22 years agoAdd more BeOS support...
David Reid [Wed, 2 Oct 2002 23:52:08 +0000 (23:52 +0000)]
Add more BeOS support...

22 years agoAdd some more BeOS support.
David Reid [Wed, 2 Oct 2002 23:48:58 +0000 (23:48 +0000)]
Add some more BeOS support.

22 years agosyntax to avoid error while reading data from file in ibase_blob_import
Daniela Mariaschi [Wed, 2 Oct 2002 23:05:06 +0000 (23:05 +0000)]
syntax to avoid error while reading data from file in ibase_blob_import

22 years agostylissimo
foobar [Wed, 2 Oct 2002 22:34:40 +0000 (22:34 +0000)]
stylissimo

22 years agounify these files to conform with the new files created by run-tests.php
foobar [Wed, 2 Oct 2002 22:31:37 +0000 (22:31 +0000)]
unify these files to conform with the new files created by run-tests.php

22 years agoFix harmless memory leaks and simplify track_vars_init.
Sascha Schumann [Wed, 2 Oct 2002 21:51:32 +0000 (21:51 +0000)]
Fix harmless memory leaks and simplify track_vars_init.

22 years agoNotes about additions to Apache 2 sapi.
Ilia Alshanetsky [Wed, 2 Oct 2002 21:34:01 +0000 (21:34 +0000)]
Notes about additions to Apache 2 sapi.

22 years ago* we're releasing 1.0 along with PHP 4.3, so this is 1.0RC1
Stig Bakken [Wed, 2 Oct 2002 21:33:35 +0000 (21:33 +0000)]
* we're releasing 1.0 along with PHP 4.3, so this is 1.0RC1

22 years ago* add support for http proxy authorization (thanks Arnaud)
Stig Bakken [Wed, 2 Oct 2002 21:27:25 +0000 (21:27 +0000)]
* add support for http proxy authorization (thanks Arnaud)

22 years agoAdded apache_response_headers(), apache_note(), apache_getenv() and
Ilia Alshanetsky [Wed, 2 Oct 2002 21:22:44 +0000 (21:22 +0000)]
Added apache_response_headers(), apache_note(), apache_getenv() and
apache_setenv() functions.
The getallheaders() is renamed to apache_request_headers() and an
getallheaders() is aliased to it.
Added a better error reporting mechanism to apache_lookup_uri() and virtual().

22 years agoMaking strrchr() binary safe.
Andrey Hristov [Wed, 2 Oct 2002 18:58:09 +0000 (18:58 +0000)]
Making strrchr() binary safe.
Test case added.

22 years agoMaking strstr() binary safe.
Andrey Hristov [Wed, 2 Oct 2002 18:41:55 +0000 (18:41 +0000)]
Making strstr() binary safe.

22 years agoWs fix. Forgot to add this in the previous commit.
Andrey Hristov [Wed, 2 Oct 2002 18:13:56 +0000 (18:13 +0000)]
Ws fix. Forgot to add this in the previous commit.

22 years agows fixes.
Andrey Hristov [Wed, 2 Oct 2002 17:56:04 +0000 (17:56 +0000)]
ws fixes.

22 years ago- Added CURLOPT_FTP_USE_EPSV option. (Patch by Alex Howansky
Derick Rethans [Wed, 2 Oct 2002 16:44:48 +0000 (16:44 +0000)]
- Added CURLOPT_FTP_USE_EPSV option. (Patch by Alex Howansky
  <alex@wankwood.com>)

22 years agoBetter...
Marcus Boerger [Wed, 2 Oct 2002 15:40:57 +0000 (15:40 +0000)]
Better...

22 years agoFix implicit_flush
Marcus Boerger [Wed, 2 Oct 2002 15:36:29 +0000 (15:36 +0000)]
Fix implicit_flush

22 years agoModified get_status(): Display chunk_size allways and size which is in
Marcus Boerger [Wed, 2 Oct 2002 15:10:11 +0000 (15:10 +0000)]
Modified get_status(): Display chunk_size allways and size which is in
most cases initial_size as well as block_size only when used.

22 years agoRevisted Wez patch: chunk_size 0 means cahce the whole output. So
Marcus Boerger [Wed, 2 Oct 2002 15:02:16 +0000 (15:02 +0000)]
Revisted Wez patch: chunk_size 0 means cahce the whole output. So
we must apply the default before calling php_enable_output_compression().
I have left the default setting in the rinit function even though i do think
it is not necessary.

22 years agoFix for SRM module (and maybe others). Header rows are now not HTML
Colin Viebrock [Wed, 2 Oct 2002 14:27:32 +0000 (14:27 +0000)]
Fix for SRM module (and maybe others).  Header rows are now not HTML
escaped, so make sure you do this yourself in the modules.

22 years agoAnother missing variable init
Marcus Boerger [Wed, 2 Oct 2002 13:25:38 +0000 (13:25 +0000)]
Another missing variable init
#Wez shouldn't "stream->filterhead->fops->flush()" affect return value also?

22 years agoMissing variable init
Marcus Boerger [Wed, 2 Oct 2002 13:18:01 +0000 (13:18 +0000)]
Missing variable init

22 years agofixes bugs #19156 and #19544
Harald Radi [Wed, 2 Oct 2002 12:53:51 +0000 (12:53 +0000)]
fixes bugs #19156 and #19544

22 years agoCheck for C99 conformance of snprintf.
Marcus Boerger [Wed, 2 Oct 2002 12:52:53 +0000 (12:52 +0000)]
Check for C99 conformance of snprintf.
#This way we force using internal version if a broken library is used.
#E.g. length parameter is broken, return value or default precision wrong.

22 years agoAnother Linux x86 system returns ELIMIT so we need to check errno as well
Sascha Schumann [Wed, 2 Oct 2002 08:32:26 +0000 (08:32 +0000)]
Another Linux x86 system returns ELIMIT so we need to check errno as well
before assuming that pread/pwrite work.

22 years agoReflect actual stance wrt cli/cgi
Sascha Schumann [Wed, 2 Oct 2002 08:14:47 +0000 (08:14 +0000)]
Reflect actual stance wrt cli/cgi

22 years agoFixed pg_escape_typea()
Yasuo Ohgaki [Wed, 2 Oct 2002 06:30:40 +0000 (06:30 +0000)]
Fixed pg_escape_typea()

22 years agoClean up a little.
Yasuo Ohgaki [Wed, 2 Oct 2002 06:22:52 +0000 (06:22 +0000)]
Clean up a little.

22 years agoThe pread/pwrite macros check for a bug in the Linux glibc now.
Sascha Schumann [Wed, 2 Oct 2002 06:05:16 +0000 (06:05 +0000)]
The pread/pwrite macros check for a bug in the Linux glibc now.
The bug causes the kernel not to return -1/EAGAIN. The new test case
has been borrowed from the Linux Test Project.

This also fixes a bug which apparently caused HAVE_PREAD/WRITE to be
defined even if the more complex checks failed (ac_cv_func_NAME=no
was set albeit with no difference).

22 years agoImprove test to show output bufferring bypass bug clearly.
Yasuo Ohgaki [Wed, 2 Oct 2002 05:29:06 +0000 (05:29 +0000)]
Improve test to show output bufferring bypass bug clearly.

22 years agoAdded pg_unescape_bytea(). Fixed pg_data_seek().
Yasuo Ohgaki [Wed, 2 Oct 2002 04:03:21 +0000 (04:03 +0000)]
Added pg_unescape_bytea(). Fixed pg_data_seek().
php_pgsql_unescape_bytea(PQunescapeBytea) is shamelessly stolen from PostgreSQL 7.3 :)

22 years agoAdd some example functions for mysql users.
Yasuo Ohgaki [Wed, 2 Oct 2002 03:32:27 +0000 (03:32 +0000)]
Add some example functions for mysql users.

22 years agopg_data_seek()
Yasuo Ohgaki [Wed, 2 Oct 2002 03:17:30 +0000 (03:17 +0000)]
pg_data_seek()

22 years agoAdded pg_data_seek().
Yasuo Ohgaki [Wed, 2 Oct 2002 03:16:35 +0000 (03:16 +0000)]
Added pg_data_seek().
pg_result_seek() woudl be better name, but there is mysql_data_seek()...

22 years agoAdded pg_ping()
Yasuo Ohgaki [Wed, 2 Oct 2002 02:41:21 +0000 (02:41 +0000)]
Added pg_ping()

22 years agoRename pg_metadata() to pg_meta_data() to confirm naming standard
Yasuo Ohgaki [Wed, 2 Oct 2002 02:11:27 +0000 (02:11 +0000)]
Rename pg_metadata() to pg_meta_data() to confirm naming standard

22 years ago- Run ext/* tests only for those modules that are actually compiled
foobar [Wed, 2 Oct 2002 01:52:25 +0000 (01:52 +0000)]
- Run ext/* tests only for those modules that are actually compiled
  into the php binary. (faster)
- Skip search of .phpt files if they are passed as parameters

22 years agoChangeLog update
<changelog@php.net> [Wed, 2 Oct 2002 00:33:32 +0000 (00:33 +0000)]
ChangeLog update

22 years agorepairing the chaos
Stefan Esser [Tue, 1 Oct 2002 21:53:25 +0000 (21:53 +0000)]
repairing the chaos

utime("filename", NULL) is not only valid but a MUST on linux if you are
not the owner...

22 years ago- Fix problem when crashing on illegal tokens in class name during class
Andi Gutmans [Tue, 1 Oct 2002 20:00:45 +0000 (20:00 +0000)]
- Fix problem when crashing on illegal tokens in class name during class
- definition.

22 years agoDisable pread/pwrite for now until we can clarify why it should be
Sascha Schumann [Tue, 1 Oct 2002 19:19:10 +0000 (19:19 +0000)]
Disable pread/pwrite for now until we can clarify why it should be
impossible to write a check for a broken OS feature.

22 years agoThe session extension ensures now that get_session_var can rely
Sascha Schumann [Tue, 1 Oct 2002 11:59:45 +0000 (11:59 +0000)]
The session extension ensures now that get_session_var can rely
on the state of $_SESSION/$HTTP_SESSION_VARS. It does not look up
symbols in the global symbol table anymore.

This was achieved by actually planting references between every
$_SESSION["x"] and $x, not only when restoring a session, but also
when registering a session variable (in a register_globals=1 context).

Upon registering a new variable, this memory leak continues to show
up, regardless of register_globals.

ext/session/session.c(272) :  Freeing 0x0818F01C (12 bytes), script=test

Obviously, the newly allocated empty zval is not properly freed.  If anyone
has any idea on how to fix that, please step forward.

22 years agoWS and added missing output.
Yasuo Ohgaki [Tue, 1 Oct 2002 11:18:31 +0000 (11:18 +0000)]
WS and added missing output.
It seems this bug is fixed in latest version at least.

22 years agoFix warnings
Zeev Suraski [Tue, 1 Oct 2002 10:16:40 +0000 (10:16 +0000)]
Fix warnings

22 years agoBug fix
Yasuo Ohgaki [Tue, 1 Oct 2002 10:04:04 +0000 (10:04 +0000)]
Bug fix

22 years agoFixed bug #17825. Double zval_ptr_dtor().
Yasuo Ohgaki [Tue, 1 Oct 2002 10:01:56 +0000 (10:01 +0000)]
Fixed bug #17825. Double zval_ptr_dtor().

22 years agoImplicit flush fix
Yasuo Ohgaki [Tue, 1 Oct 2002 02:54:30 +0000 (02:54 +0000)]
Implicit flush fix

22 years ago- Revert the removal of dlopen check here.
foobar [Tue, 1 Oct 2002 02:47:52 +0000 (02:47 +0000)]
- Revert the removal of dlopen check here.
# Left HAVE_LIBDL undefined for some reason

22 years agoFixed implicit flush.
Yasuo Ohgaki [Tue, 1 Oct 2002 02:43:33 +0000 (02:43 +0000)]
Fixed implicit flush.

22 years ago- Removed unnecessary dlopen checks. (this is done in Zend.m4 already)
foobar [Tue, 1 Oct 2002 01:47:09 +0000 (01:47 +0000)]
- Removed unnecessary dlopen checks. (this is done in Zend.m4 already)

22 years agosome typos fixed..
foobar [Tue, 1 Oct 2002 01:40:07 +0000 (01:40 +0000)]
some typos fixed..

22 years agoNEWS update
<changelog@php.net> [Tue, 1 Oct 2002 00:35:04 +0000 (00:35 +0000)]
NEWS update

22 years agoChangeLog update
<changelog@php.net> [Tue, 1 Oct 2002 00:34:05 +0000 (00:34 +0000)]
ChangeLog update

22 years agoUsers can shoot themselves by their own output handler always.
Yasuo Ohgaki [Mon, 30 Sep 2002 23:46:43 +0000 (23:46 +0000)]
Users can shoot themselves by their own output handler always.
Therefore, this check is overkill and it should be documented
limitation, IMO.

Anyway, a little optimization.

22 years agoUse the built in autoconf test for fnmatch. Simply using the
David Reid [Mon, 30 Sep 2002 23:31:13 +0000 (23:31 +0000)]
Use the built in autoconf test for fnmatch. Simply using the
AC_CHECK_FUNCS seems to give false positives on beos and reading
the comments on other systems as well.

22 years ago- No tabs :)
Derick Rethans [Mon, 30 Sep 2002 10:34:40 +0000 (10:34 +0000)]
- No tabs :)

22 years agoAdd header file required for pread/pwrite (on my system at least).
Wez Furlong [Mon, 30 Sep 2002 10:18:57 +0000 (10:18 +0000)]
Add header file required for pread/pwrite (on my system at least).

22 years agoFix infinite recursion bug when using zlib output compression.
Wez Furlong [Mon, 30 Sep 2002 10:18:06 +0000 (10:18 +0000)]
Fix infinite recursion bug when using zlib output compression.
Cause: the chunk size is taken from the zlib.output_compression setting,
which is 0 or 1.  This causes the block_size for output buffer to be set
to 0 (1 / 2) and thus causes infinite recursion in php_ob_allocate().
Solution: use a value of 0 for the chunk size which will use the default
sizes.  Also add a sanity check which will default the block_size to 1
if it ends up as 0.