php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #71288 opcache.so failed to load
Submitted: 2016-01-05 15:46 UTC Modified: 2016-01-05 16:03 UTC
From: 191919 at gmail dot com Assigned:
Status: Closed Package: opcache
PHP Version: master-Git-2016-01-05 (Git) OS: OS X
Private report: No CVE-ID: None
 [2016-01-05 15:46 UTC] 191919 at gmail dot com
Description:
------------
opcache.so failed to load in git under OS X El Capitan 10.11.2.

I built it with Xcode 7.2 with `./configure --prefix=/opt/php7`. The build process was done without problems. I added

zend_extension=opcache.so

to /opt/php7/lib/php.in.

When running php -v:

$ /opt/php7/bin/php -v                                                              
Failed loading /opt/php7/lib/php/extensions/no-debug-non-zts-20151012/opcache.so:  dlopen(/opt/php7/lib/php/extensions/no-debug-non-zts-20151012/opcache.so, 9): Symbol not found: _zend_func_info_rid
  Referenced from: /opt/php7/lib/php/extensions/no-debug-non-zts-20151012/opcache.so
  Expected in: flat namespace
 in /opt/php7/lib/php/extensions/no-debug-non-zts-20151012/opcache.so
PHP 7.1.0-dev (cli) (built: Jan  5 2016 23:30:07) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.1.0-dev, Copyright (c) 1998-2016 Zend Technologies

I ran dyldinfo against opcache.so:

./dyldinfo -bind /opt/php7/lib/php/extensions/no-debug-non-zts-20151012/opcache.so         
bind information:
segment section          address        type    addend dylib            symbol
__DATA  __const          0x0002F990    pointer      0 flat-namespace   _OnUpdateBool
...
...
__DATA  __got            0x0002F0A8    pointer      0 flat-namespace   _zend_func_info_rid
...
...



Expected result:
----------------
opcache loads.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-01-05 16:03 UTC] 191919 at gmail dot com
-Status: Open +Status: Closed
 [2016-01-05 16:03 UTC] 191919 at gmail dot com
Don't know why: the problem was consistent until I deleted /opt/php7/lib/php/extensions/no-debug-non-zts-20151012/opcache.so then reran make install, but the md5 hashes of two opcache.so's were the same.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 14:01:32 2024 UTC