Bug #73885 [Com]: Fatal Error Unable to write base address C:\windows\\ZendOPcache.MemoryBase@...
| From: | caaguado at xcentra dot com | Date: | Fri, 17 Feb 2017 11:28:11 +0000 |
| Subject: | Bug #73885 [Com]: Fatal Error Unable to write base address C:\windows\\ZendOPcache.MemoryBase@... | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-207426@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=73885&edit=1
ID: 73885
Comment by: caaguado at xcentra dot com
Reported by: caaguado at xcentra dot com
Summary: Fatal Error Unable to write base address
C:\windows\\ZendOPcache.MemoryBase@...
Status: Not a bug
Type: Bug
Package: opcache
Operating System: Windows 7 to 10
PHP Version: 7.1.0
Assigned To: ab
Block user comment: N
Private report: N
New Comment:
Hi again,
I'm glad to report that, indeed, the fault can be worked around by adding the following to new
entries to the beginning of Apache 2.4's configuration file:
SetEnv TEMP "C:\Users\<username>\AppData\Local\Temp"
SetEnv TMP "C:\Users\<username>\AppData\Local\Temp"
However, I now get a new crash on php7.dll when running phpMyAdmin 4.6.6 :-(
I will eventually report that new crash in a separate bug report.
Thanks, Carlos.
Previous Comments:
------------------------------------------------------------------------
[2017-02-12 21:09:23] ab@php.net
It is not a bug in PHP, please configure Apache to pass the tmp dir as it's documented on the
linked documentation page.
Thanks.
------------------------------------------------------------------------
[2017-02-12 20:37:03] caaguado at xcentra dot com
Hi, close the ticket, but this is a PHP 7.1 bug... and a very poor way of closing the bug report.
Thanks.
------------------------------------------------------------------------
[2017-02-12 19:34:48] ab@php.net
Closing, as it's clearly something about the configuration on the level upper to PHP.
Thanks.
------------------------------------------------------------------------
[2017-02-07 00:26:12] ab@php.net
Thanks for the further comment. Here's a quote from https://httpd.apache.org/docs/2.4/env.html
==============================
First, there are the environment variables controlled by the underlying operating system. These are
set before the server starts. They can be used in expansions in configuration files, and can
optionally be passed to CGI scripts and SSI using the PassEnv directive.
==============================
There is no PassEnv directive in your Apache config, this has hardly to do something with PHP.
Either this or explicitly SetEnv will set the CGI vars. I haven't worked with CGI for edges,
but specifically looked up this doc page for you :) Hopefully any similar tickets can be avoided if
this one is found. Apache won't propagate the system environment, it is the default
crossplatform behavior. An Apache distribution on Linux is pre configured and is integrated with the
OS, so it is easy. Under Windows, having the documentation at hand is often necessary to achieve
even simple things.
Thanks.
------------------------------------------------------------------------
[2017-02-06 21:04:36] caaguado at xcentra dot com
Sorry, but don't you think this is a bit too little to say about the problem? CGI or not, the
fact is that PHP 7.1 seems to not deal well with this environment propagation in Apache,
doesn't it?
Can you retrieve any recommended Apache configuration settings from the old PHP 5.5 bug report that
you mentioned, both for CGI and/or FastCGI, so I can try troubleshooting a bit more for you?
Thank you!
------------------------------------------------------------------------
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=73885
--
Edit this bug report at https://bugs.php.net/bug.php?id=73885&edit=1