php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #64630 Opcache failed to start on PHP x64 build
Submitted: 2013-04-11 13:23 UTC Modified: 2013-04-25 12:54 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: alejosimon at gmail dot com Assigned: pajoye (profile)
Status: Closed Package: opcache
PHP Version: 5.5.0beta3 OS: Windows 7 Pro x64
Private report: No CVE-ID: None
 [2013-04-11 13:23 UTC] alejosimon at gmail dot com
Description:
------------
Simply, opcache.dll extesión not start in x64 compiled version of PHP.


Test script:
---------------
<?php

  echo "not necessary" ;

?>

Expected result:
----------------
A successful start.

Actual result:
--------------
Don't start.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-04-11 13:34 UTC] pajoye@php.net
do you use zend_extension to load it in your php.ini?
 [2013-04-11 13:34 UTC] pajoye@php.net
-Status: Open +Status: Feedback
 [2013-04-11 13:44 UTC] alejosimon at gmail dot com
-Status: Feedback +Status: Open
 [2013-04-11 13:44 UTC] alejosimon at gmail dot com
Yes! I do. ;-) look:

; http://php.net/extension-dir
extension_dir = "./ext"

[opCache]
zend_extension = php_opcache.dll
opcache.memory_consumption = 128
opcache.enable_cli = 1
 [2013-04-11 14:02 UTC] ab@php.net
opcache.enable_cli=1 is the trick to bring it down

>	php_opcache.dll!create_segments(unsigned __int64 requested_size, _zend_shared_segment * * * shared_segments_p, int * shared_segments_count, char * * error_in) Line 266	C
 	php_opcache.dll!zend_shared_alloc_try(const _handler_entry * he, int requested_size, _zend_shared_segment * * * shared_segments_p, int * shared_segments_count, char * * error_in) Line 130	C
 	php_opcache.dll!zend_shared_alloc_startup(int requested_size) Line 196	C
 	php_opcache.dll!accel_startup(_zend_extension * extension) Line 2458	C
 	php5_debug.dll!zend_extension_startup(_zend_extension * extension) Line 154	C
 	php5_debug.dll!zend_llist_apply_with_del(_zend_llist * l, int (void *) * func) Line 178	C
 	php5_debug.dll!zend_startup_extensions(...) Line 176	C
 	php5_debug.dll!php_module_startup(_sapi_module_struct * sf, _zend_module_entry * additional_modules, unsigned int num_additional_modules) Line 2207	C
 	php.exe!php_cli_startup(_sapi_module_struct * sapi_module) Line 417	C
 	php.exe!main(int argc, char * * argv) Line 1357	C
 	php.exe!__tmainCRTStartup() Line 536	C
 	php.exe!mainCRTStartup() Line 377	C
 [2013-04-11 14:06 UTC] alejosimon at gmail dot com
YES!!!!!!!

with "opcache.enable_cli=0" start ok!

... but no cache in cli mode? :(
 [2013-04-11 14:09 UTC] alejosimon at gmail dot com
SORRYYYYYY!!! NOT found with

"opcache.enable_cli=0" or set in "1"

we continue as before. :(
 [2013-04-11 14:27 UTC] ab@php.net
Of course with enable_cli=0 no cache in cli. Another try - do you have some process up (like apache) with loaded opcache while trying to start on cli?
 [2013-04-11 14:27 UTC] ab@php.net
-Status: Open +Status: Feedback
 [2013-04-11 14:45 UTC] alejosimon at gmail dot com
Failure in all scenarios .. cli, apache, cli-server, etc etc, but only x64 build 
... in the x86 works fine.
 [2013-04-11 14:45 UTC] alejosimon at gmail dot com
-Status: Feedback +Status: Open
 [2013-04-25 12:54 UTC] pajoye@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: pajoye
 [2013-04-25 12:54 UTC] pajoye@php.net
Thank you for your bug report. This issue has already been fixed
in the latest released version of PHP, which you can download at 
http://www.php.net/downloads.php

Fixed in b4 or latest pecl release (while we do not support x64 for < 5.5)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 07 21:01:27 2024 UTC