Help! zend guard loader does not work with php5.6.11

General discussion on Zend Guard / Optimizer

Help! zend guard loader does not work with php5.6.11

Postby qing450 on Tue Jul 28, 2015 8:51 am

error message:
Failed loading D:\php\ext\ZendLoader.dll
Failed loading D:\php\ext\php_opcache.dll
PHP 5.6.11 (cli) (built: Jul 9 2015 20:42:27)
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies
the following was added in php.ini:
[Zend]
zend_extension="D:\php\ext\ZendLoader.dll"
zend_extension="D:\php\ext\php_opcache.dll"
zend_loader.enable=1
qing450
 
Posts: 4
Joined: Tue Jul 28, 2015 8:43 am

Re: Help! zend guard loader does not work with php5.6.11

Postby zvika on Wed Jul 29, 2015 12:02 pm

Hi
The most common issue is trying to load NTS PHP modules on TS PHP
if your phpinfo() shows Thread Safety - enabled, it will never work.
Zvika Dror
Zend Support Team
User avatar
zvika
Zend Global Support
 
Posts: 966
Joined: Sun Dec 14, 2008 9:48 am

Re: Help! zend guard loader does not work with php5.6.11

Postby qing450 on Thu Jul 30, 2015 2:19 am

Thank you for your reply. However, my php is nts, I found that it is caused by windows version. my windows version is windwos 2008 R2 Enterprise X64, zend does not work . However, If I copy the PHP and zend guard loader which installed in windows 2008 R2 enterprise x64 to win7 x64, it do work. So I think system cause the error. But I don't know how to solve it. I need win 2008 R2 enterprise system.
qing450
 
Posts: 4
Joined: Tue Jul 28, 2015 8:43 am

Re: Help! zend guard loader does not work with php5.6.11

Postby zvika on Thu Jul 30, 2015 7:57 am

Hi

It may be a file access issue on the Windows server, which should be hardened in Enterprise version.
Check the DLLs permissions, try to load them from

Next, I would make sure it is updated with Windows update.
Then, I would re-install the VC runtime, maybe there is some breakage there.
Lastly, I would get an older PHP 5.6 NTS version from php.net, and try with a clean ini copied from one of the presets, adding the Guard and OPCache.
Zvika Dror
Zend Support Team
User avatar
zvika
Zend Global Support
 
Posts: 966
Joined: Sun Dec 14, 2008 9:48 am

Re: Help! zend guard loader does not work with php5.6.11

Postby qing450 on Fri Jul 31, 2015 8:32 am

thank you reply. However, my problem is still exsit. I use php5.5, the following is error message:

Failed loading d:\php\ext\ZendLoader.dll
PHP 5.5.27 (cli) (built: Jul 9 2015 12:14:30)
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2015 Zend Technologies
with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2015, by Zend Technologies.

Message show that opcache has been sucessful loaded, however, zendloader still cann't. the version of zendloader.dll is for php5.5, php is nts (x86). what shall I do next?
qing450
 
Posts: 4
Joined: Tue Jul 28, 2015 8:43 am

Re: Help! zend guard loader does not work with php5.6.11

Postby zvika on Sun Aug 02, 2015 9:44 am

Hi
You're starting to set me off course with changing PHP 5.6 to 5.5 (I really asked for an older 5.6 to use the same loader),
but perhaps you can do another test to see if the OS is up for it (I have Win2008r2Ent on hold but I need to install it from scratch to test - prefer to delay it a bit).

Please try to get the final package from this KB, extract on your Windows (2008 and 7) and see if PHP loads Guard Loader properly.
Howto:Setting-Up-Apache,-PHP-NTS-and-Guard-7-Loader-on-Windows

You need the runtime anyway, I don't see in your feedback if you ran a repair, or removed and reinstalled the VC runtime which is mentioned in the readme.txt (and the article).

If it does work - its your setup. Feel free to use my custom package, and you can just use the PHP without Apache of course, its a much shorter setup.
If it does not - its your OS, maybe checking the DLL with some dependency walker / looking for libraries will show what is missing / broken.

Let me know any result.
Zvika Dror
Zend Support Team
User avatar
zvika
Zend Global Support
 
Posts: 966
Joined: Sun Dec 14, 2008 9:48 am

Re: Help! zend guard loader does not work with php5.6.11

Postby qing450 on Mon Aug 03, 2015 9:09 am

Thank you very much. The problem has solved. the VC runtime caused the error. VC 2012 runtime does not meet the need. I installed vc 2015, then no errors.
qing450
 
Posts: 4
Joined: Tue Jul 28, 2015 8:43 am

Re: Help! zend guard loader does not work with php5.6.11

Postby zvika on Mon Aug 03, 2015 9:27 am

Thanks for the update - I'm glad you got it working.
Enjoy Zend products and services!
Zvika Dror
Zend Support Team
User avatar
zvika
Zend Global Support
 
Posts: 966
Joined: Sun Dec 14, 2008 9:48 am

Re: Help! zend guard loader does not work with php5.6.11

Postby cmm7230 on Wed Apr 13, 2016 7:52 pm

I had spend days trying all the options said above, but to no luck on Win Server 2008 R2 Enterprise with Service Pack 1 x64. My PHP was 5.6 x86 nts.
Atlast got the error in Event Viewer of Windows and searched with it and got the below solution:

- Download VC++ 2008 x86 file from microsoft dot com / en-us/download/ details.aspx?id=11895
- Installed it and restarted the webserver. It works..!!
cmm7230
 
Posts: 1
Joined: Wed Apr 13, 2016 7:47 pm

Re: Help! zend guard loader does not work with php5.6.11

Postby zvika on Thu Apr 14, 2016 1:53 pm

Hello
Thank you for reporting this. VC11 runtime (2012) is needed for PHP 5.6 from php.net:
http://windows.php.net/download/
Do you have any build of PHP running on your server, which is not from php.net?
Zvika Dror
Zend Support Team
User avatar
zvika
Zend Global Support
 
Posts: 966
Joined: Sun Dec 14, 2008 9:48 am


Return to Zend Guard / Optimizer

Who is online

Users browsing this forum: No registered users and 2 guests