zendtech / ZendOptimizerPlus

Other
914 stars 142 forks source link

Compiled 7.0.3 Extension For PHP5.4 Does Not Load Under Windows #184

Closed kevingale closed 9 years ago

kevingale commented 10 years ago

Hi.

I am trying to use the pre-compiled opcode cache dll php_opcache-7.0.3-5.4-ts-vc9-x86.zip from http://windows.php.net/downloads/pecl/releases/opcache/7.0.3/.

I have modified my php.ini to load the extension but it does not appear in phpinfo().

If I return php on the command line I get this error: PHP Warning: PHP Startup: Invalid library (maybe not a PHP library) 'php_opcache.dll' in Unknown on line 0 PHP 5.4.26 (cli) (built: Mar 5 2014 21:51:52) Copyright (c) 1997-2014 The PHP Group Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies

Can anybody help?

Thanks. Kev.

x64architecture commented 10 years ago

@kevingale Change extension=php_opcache.dll to zend_extension=php_opcache.dll

View the Quick Install section here (specifically line 32)

kevingale commented 10 years ago

Hi.

I must admit I thought that was a typo in the documentation but that works perfectly - thanks.

Kev.