ID:               15209
 Comment by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 Status:           Verified
 Bug Type:         Scripting Engine problem
 Operating System: RH Linux 7.2
 PHP Version:      4.3.0-dev
 New Comment:

I copy my mail sent to the dev list here too, to make it more
noticable:

I know there was some hot discussion about this topic but I really need
to
get
this bug fixed. Even I'll make a patch with my zero knowledge of c if
no one
would like to make it, but please try to find a reasonable sollution
that
fits (almost) everyone's need.

I thought of one. I think a new function with the name
register_apache_shutdown_function (or somethink like this) might be
good.
It's name would say that it only works in apache, it could be
documented
that
it's the *only* function that closes the connection before the
registered
functions are handled. Or maybe a parameter could tell if the
connection
should be closed before the first registered function is started.

I'll hope there's some way to solve this problem, because it's not easy
to
tell every customer to use our patch (or use 4.0.6) before they are
staring
to use our programs that rely on this forgotten feature.
Thanks,
Arpi


Previous Comments:
------------------------------------------------------------------------

[2002-12-11 08:30:38] [EMAIL PROTECTED]

Changing to 'Verified', since there is some disagreement on how this
function should operate.

------------------------------------------------------------------------

[2002-10-12 10:21:46] [EMAIL PROTECTED]

Marking as critical since this worked at some point.
And there was also posting by [EMAIL PROTECTED] with a possible
fix on [EMAIL PROTECTED]



------------------------------------------------------------------------

[2002-10-04 07:44:12] [EMAIL PROTECTED]

I grabbed a snapshot today (php4-200210040300).  I jtate's script, and
still got the erroneous (IMO) behavior.  My connection to the server
did not close until the shutdown function completed.  

Looking at the suspect section of sapi_apache.c, I do not see any
changes.  Not that I expected to see my patch verbatim, but I would
expect something in that vicinity to change.

------------------------------------------------------------------------

[2002-10-02 10:33:06] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip



------------------------------------------------------------------------

[2002-10-02 09:35:00] [EMAIL PROTECTED]

Is this really a dupe of 14251?  Maybe they involve some of the same
code, but these are really two different issues.  14251 involves the
fact that the shutdown function code gets a different working
directory.  15209 concerns whether the shutdown function runs before or
after the HTTP connection is closed.

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/15209

-- 
Edit this bug report at http://bugs.php.net/?id=15209&edit=1

Reply via email to