]> granicus.if.org Git - php/log
php
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.

22 years agoThose can be safely ignored.
Edin Kadribasic [Mon, 30 Sep 2002 09:48:54 +0000 (09:48 +0000)]
Those can be safely ignored.

22 years ago- Fix ZE2 build when overload is enabled
Derick Rethans [Mon, 30 Sep 2002 09:40:12 +0000 (09:40 +0000)]
- Fix ZE2 build when overload is enabled

22 years agoFixed typo.
Yasuo Ohgaki [Mon, 30 Sep 2002 09:35:04 +0000 (09:35 +0000)]
Fixed typo.
# Thanks to Andrey Hristov.

22 years ago- make_objrec_from_array() gets a second parameter to handle key/pairs of
Uwe Steinmann [Mon, 30 Sep 2002 09:27:56 +0000 (09:27 +0000)]
- make_objrec_from_array() gets a second parameter to handle key/pairs of
  the form key=value and key:value.
- Proper treatment of the attribute SQLStmt

22 years agoRemove space
Yasuo Ohgaki [Mon, 30 Sep 2002 09:15:23 +0000 (09:15 +0000)]
Remove space

22 years agoAdded pg_fetch_assoc(). Fixed proto. Added/fixed comments.
Yasuo Ohgaki [Mon, 30 Sep 2002 09:07:57 +0000 (09:07 +0000)]
Added pg_fetch_assoc(). Fixed proto. Added/fixed comments.
# It seems last attempt was failed. Try committing again.

22 years agoEven better.
Wez Furlong [Mon, 30 Sep 2002 09:07:10 +0000 (09:07 +0000)]
Even better.

22 years agoSlight grammar fix.
Wez Furlong [Mon, 30 Sep 2002 09:04:48 +0000 (09:04 +0000)]
Slight grammar fix.

22 years agoConsolidate some entries.
Yasuo Ohgaki [Mon, 30 Sep 2002 08:32:03 +0000 (08:32 +0000)]
Consolidate some entries.

22 years agoFixed my name :)
Yasuo Ohgaki [Mon, 30 Sep 2002 08:26:54 +0000 (08:26 +0000)]
Fixed my name :)

22 years agoAdded pg_fetch_assoc()
Yasuo Ohgaki [Mon, 30 Sep 2002 08:26:23 +0000 (08:26 +0000)]
Added pg_fetch_assoc()

22 years agoUse PGSQL_CONV_FORCE_NULL as it is supposed.
Yasuo Ohgaki [Mon, 30 Sep 2002 07:35:41 +0000 (07:35 +0000)]
Use PGSQL_CONV_FORCE_NULL as it is supposed.
PGSQL_CONV_FORCE_NULL inserts NULL to field instead of
NULL string for string type tuples.

22 years agoUse of PGSQL_CONV_INGORE_NOT_NULL as it is supposed. Change comment a little.
Yasuo Ohgaki [Mon, 30 Sep 2002 07:24:41 +0000 (07:24 +0000)]
Use of PGSQL_CONV_INGORE_NOT_NULL as it is supposed. Change comment a little.

22 years agofix gdImageCopyResampled() for non-constant alpha layer
Tim Toohey [Mon, 30 Sep 2002 07:23:34 +0000 (07:23 +0000)]
fix gdImageCopyResampled() for non-constant alpha layer

22 years ago- Rewording
Derick Rethans [Mon, 30 Sep 2002 05:20:17 +0000 (05:20 +0000)]
- Rewording

22 years agosync
Sascha Schumann [Mon, 30 Sep 2002 04:59:01 +0000 (04:59 +0000)]
sync

22 years agoFix my stupid mistake which broke <form> handling
Sascha Schumann [Mon, 30 Sep 2002 04:56:38 +0000 (04:56 +0000)]
Fix my stupid mistake which broke <form> handling

22 years agoApparently, Solaris 2.6's find is overwhelmed with more than 2 -names per
Sascha Schumann [Mon, 30 Sep 2002 04:42:11 +0000 (04:42 +0000)]
Apparently, Solaris 2.6's find is overwhelmed with more than 2 -names per
invocation (add some parantheses and it segfaults).  And thus, we split
the clean target up.

22 years agoFix TODO desc
Yasuo Ohgaki [Mon, 30 Sep 2002 04:15:39 +0000 (04:15 +0000)]
Fix TODO desc

22 years agoRemove unused def. Add TODO.
Yasuo Ohgaki [Mon, 30 Sep 2002 04:15:01 +0000 (04:15 +0000)]
Remove unused def. Add TODO.

22 years agoImprove error message. Fix proto.
Yasuo Ohgaki [Mon, 30 Sep 2002 03:51:54 +0000 (03:51 +0000)]
Improve error message. Fix proto.

22 years ago@ - Added getopt() for parsing command line options and arguments. (Jon)
Jon Parise [Mon, 30 Sep 2002 03:02:52 +0000 (03:02 +0000)]
@ - Added getopt() for parsing command line options and arguments. (Jon)

22 years agoFix thread safety issue
Jason Greene [Mon, 30 Sep 2002 02:09:42 +0000 (02:09 +0000)]
Fix thread safety issue

22 years agoAdded warning for CLI and CGI SAPI changes. Fixed wrong description for 4.2.0.
Yasuo Ohgaki [Mon, 30 Sep 2002 00:47:43 +0000 (00:47 +0000)]
Added warning for CLI and CGI SAPI changes. Fixed wrong description for 4.2.0.

22 years agoChangeLog update
<changelog@php.net> [Mon, 30 Sep 2002 00:34:59 +0000 (00:34 +0000)]
ChangeLog update