Bug #81204 [Opn->Dup]: PHP 8 crashes with Access Violation on Apache restart

From: Date: Tue, 29 Jun 2021 07:24:52 +0000
Subject: Bug #81204 [Opn->Dup]: PHP 8 crashes with Access Violation on Apache restart
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-234681@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=81204&edit=1

 ID:                 81204
 Updated by:         nikic@php.net
 Reported by:        jeremy dot dunn at dhamma dot org
 Summary:            PHP 8 crashes with Access Violation on Apache
                     restart
-Status:             Open
+Status:             Duplicate
 Type:               Bug
 Package:            Apache2 related
 Operating System:   Windows Server 2012 R2
 PHP Version:        8.0.7
 Block user comment: N
 Private report:     N

 New Comment:

Thanks for checking! Closing this as a duplicate of bug #81068 then.


Previous Comments:
------------------------------------------------------------------------
[2021-06-28 15:08:05] jeremy dot dunn at dhamma dot org

> This looks like https://github.com/php/php-src/commit/99a208566adfa32bf3a759c8731755f5e2458fdd
> to me, which only made it into PHP 8.0.8.

Additional information:  on a different (non-production) server, I was running Apache httpd 2.4.47 +
PHP 8.0.6 (slightly older versions than reported in this ticket).  restarting apache in that
configuration did NOT cause PHP to crash

I just upgraded that server from apache 2.4.47 to 2.4.48, leaving PHP 8.0.6

the new combination DOES cause PHP crash on apache restart.  So the problem appears to be caused (at
least in part) by a change in apache/httpd

Then I upgraded the same machine to PHP 8.0.8RC1, and the problem is FIXED - PHP does not crash on
restart.  This appears to confirm that this bug is the same as #81068, and that the fix cited by
@nikic does fix the problem.

Thanks!

------------------------------------------------------------------------
[2021-06-28 14:27:38] nikic@php.net

This looks like https://github.com/php/php-src/commit/99a208566adfa32bf3a759c8731755f5e2458fdd
to me, which only made it into PHP 8.0.8.

------------------------------------------------------------------------
[2021-06-28 14:14:09] jeremy dot dunn at dhamma dot org

sorry, more information on the previous comment:

"PHP" resolves to the location I expect, as per previous comment
  C:\Users\jeremy>where php
  C:\Program Files\php\php.exe

"PHP" is definitely the correct version:

  C:\Users\jeremy>php --version
  PHP 8.0.7 (cli) (built: Jun  2 2021 00:41:03) ( ZTS Visual C++ 2019
  Copyright (c) The PHP Group
  Zend Engine v4.0.7, Copyright (c) Zend Technologies
    with Zend OPcache v8.0.7, Copyright (c), by Zend Technologies

------------------------------------------------------------------------
[2021-06-28 14:10:39] jeremy dot dunn at dhamma dot org

CMB commented:
> See <https://bugs.php.net/bug.php?id=81172#1624097564>.

that ticket was closed as "not a bug" due to incorrect / leftover PATH variable

I just double-checked the PATH on the machine from which this issue arose, and it points to the
CURRENT (8.0.7) version of PHP:

  C:\Program Files\php;

------------------------------------------------------------------------
[2021-06-28 13:13:35] cmb@php.net

See <https://bugs.php.net/bug.php?id=81172#1624097564>.

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


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

    https://bugs.php.net/bug.php?id=81204


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


Thread (7 messages)

« previous php.bugs (#234681) next »