php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #64473 opcache not documented in php.ini patterns
Submitted: 2013-03-21 03:32 UTC Modified: 2013-03-21 17:06 UTC
From: hajo at csphere dot eu Assigned: ab (profile)
Status: Closed Package: opcache
PHP Version: 5.5.0 beta 1 OS: windows x86 and x64
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: hajo at csphere dot eu
New email:
PHP Version: OS:

 

 [2013-03-21 03:32 UTC] hajo at csphere dot eu
Description:
------------
the opcache extension is not present in php.ini dev and prod file. version affected is php 5.5.0 beta 1 windows build for x86 and x64 of all types. if the opcode extension should autoload its not loading and/or not present in the list of loaded extensions.

Expected result:
----------------
opcode working

Actual result:
--------------
opcode dll is present, but not activated

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-03-21 03:41 UTC] hajo at csphere dot eu
manually adding the following line of code produces the attached error:

extension=php_opcache.dll

Warning PHP Startup: Invalid library (maybe not a PHP library) 'php_opcache.dll'

same effect using x86 and x64 build

changed from doc problem to bug due to this
 [2013-03-21 04:02 UTC] hajo at csphere dot eu
updated php version tag
 [2013-03-21 04:02 UTC] hajo at csphere dot eu
-PHP Version: 5.5Git-2013-03-21 (Git) +PHP Version: 5.5.0 beta 1
 [2013-03-21 08:18 UTC] ab@php.net
Use zend_extension= instead of extension= .
 [2013-03-21 08:18 UTC] ab@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: ab
 [2013-03-21 13:00 UTC] hajo at csphere dot eu
-Status: Closed +Status: Assigned
 [2013-03-21 13:00 UTC] hajo at csphere dot eu
reopened to ask if opcache configuration details are going to be added to php.ini dev and prod patterns since that was my initial concern.
 [2013-03-21 14:36 UTC] dsp@php.net
They should be added BUT they the opcache should be deactivated by default.
 [2013-03-21 14:53 UTC] dsp@php.net
-Status: Assigned +Status: Closed
 [2013-03-21 14:53 UTC] dsp@php.net
The fix for this bug has been committed.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.

I added the ini files BUT it will be still be disabled by default.
 [2013-03-21 15:08 UTC] hajo at csphere dot eu
-Summary: opcache not loading +Summary: opcache not documented in php.ini patterns
 [2013-03-21 15:08 UTC] hajo at csphere dot eu
its ok that its still disabled by default, all i wanted are some documentation hints in php.ini patterns

thanks alot :)
 [2013-03-21 15:57 UTC] hajo at csphere dot eu
-Status: Closed +Status: Assigned
 [2013-03-21 15:57 UTC] hajo at csphere dot eu
this line, as provided by ab, works like a charm for x86 builds:

zend_extension = php_opcache.dll

nevertheless its not part of the commit done by dsp. did you just forget to add it or was it intended to not add it (even with a semicolon to have it not activated by default)?

in addition for x64 builds loading this zend extension crashes php on startup, but i might open a new bug ticket for that if the problem persists in a later beta.
 [2013-03-21 17:06 UTC] ab@php.net
-Status: Assigned +Status: Closed
 [2013-03-21 17:06 UTC] ab@php.net
Yes, please open another one for the x64 crash including the BT. This page can help with getting a useful BT https://bugs.php.net/bugs-generating-backtrace-win32.php . This ticket is done then, the opcache inclusion is being discussed right now on internals list.

Thanks
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sun Sep 15 12:01:26 2019 UTC