# opcache windows x64

- Thread: https://externals.io/message/67070
- Original archive: https://news-web.php.net/php.internals/67070
- Started by Pierre Joye on 2013-04-12T12:31:38+00:00
- Messages: 5
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #67070 — Pierre Joye — 2013-04-12T12:31:38+00:00

URL: https://externals.io/message/67070#67070

hi Dmitry,

Is there any reason for:

http://lxr.php.net/xref/PHP_5_5/ext/opcache/shared_alloc_win32.c#260

Is it a mistake as it Should PROCESSOR_ARCHITECTURE_AMD64 or
PROCESSOR_ARCHITECTURE_INTEL? Or is x64 actually not supported? If
yes, what are the reasons?

Thanks!

Cheers,
--
Pierre

@pierrejoye

---

## #67074 — Jan Ehrhardt — 2013-04-12T18:28:19+00:00

URL: https://externals.io/message/67070#67074 · In reply to: #67070

Pierre Joye in php.internals (Fri, 12 Apr 2013 14:31:38 +0200):
>Is there any reason for:
>http://lxr.php.net/xref/PHP_5_5/ext/opcache/shared_alloc_win32.c#260
>
>Is it a mistake as it Should PROCESSOR_ARCHITECTURE_AMD64 or
>PROCESSOR_ARCHITECTURE_INTEL? Or is x64 actually not supported? If
>yes, what are the reasons?

x64 php_opcache.dll crashes:
http://www.apachelounge.com/viewtopic.php?t=5277
https://github.com/zend-dev/ZendOptimizerPlus/issues/88

Jan

---

## #67080 — Pierre Joye — 2013-04-13T07:56:51+00:00

URL: https://externals.io/message/67070#67080 · In reply to: #67074

> Pierre Joye in php.internals (Fri, 12 Apr 2013 14:31:38 +0200):
> > […]
>
> x64 php_opcache.dll crashes:
> http://www.apachelounge.com/viewtopic.php?t=5277
> https://github.com/zend-dev/ZendOptimizerPlus/issues/88

Yes, why I asked that. I've to change the code slightly, most likely
seeing if we can get rid of fixed address, does not bring a lot on
Windows as there is no such thing like fixed address in this case,
windows can move them around anyway (transparent to the caller).

Cheers,
--
Pierre

@pierrejoye

---

## #67101 — Pierre Joye — 2013-04-20T21:33:05+00:00

URL: https://externals.io/message/67070#67101 · In reply to: #67074

hi Jan,


> Pierre Joye in php.internals (Fri, 12 Apr 2013 14:31:38 +0200):
> > […]
>
> x64 php_opcache.dll crashes:
> http://www.apachelounge.com/viewtopic.php?t=5277
> https://github.com/zend-dev/ZendOptimizerPlus/issues/88

Please try:

https://github.com/pierrejoye/ZendOptimizerPlus/commit/8b518a9cbf7f0264f0f7d8ee5c3b8c56908a6625

Works for us, still not the ideal fix but it fixes this immediate problem.


--
Pierre

@pierrejoye

---

## #67103 — Jan Ehrhardt — 2013-04-21T15:43:23+00:00

URL: https://externals.io/message/67070#67103 · In reply to: #67101

Hi Pierre,

Pierre Joye in php.internals (Sat, 20 Apr 2013 23:33:05 +0200):
>Please try:
>
>https://github.com/pierrejoye/ZendOptimizerPlus/commit/8b518a9cbf7f0264f0f7d8ee5c3b8c56908a6625
>
>Works for us, still not the ideal fix but it fixes this immediate problem.

Compiles OK under VC9 for PHP 5.4 (NTS & ZTS). Does not crash. I did not
test it thoroughly, but at first sight it looks OK.

https://dl.dropboxusercontent.com/u/8954372/php-5.4.14-nts-Win32-VC9-x64.zip
https://dl.dropboxusercontent.com/u/8954372/php-5.4.14-Win32-VC9-x64.zip

Jan
