DLL don't work with Zend Server.

31 views
Skip to first unread message

Cesar Bagatoli

unread,
Sep 24, 2009, 4:22:15 PM9/24/09
to SQL Anywhere Web Development
Hi, I've installed the Zend Server with PHP 5.3.0, but when I try to
use the "php-5.3.0_sqlanywhere.dll" file the PHP can't load the
library. I tryed with SqlAnywhere 10 library too, but don't work too.

What is wrong?
Thank you.

Mohammed Abouzour

unread,
Sep 24, 2009, 4:38:28 PM9/24/09
to sql-anywhere-w...@googlegroups.com
Is your Zend Server using Apache or IIS? And what version?
Can you post the exact error message that you are getting?
Can you post the full SA version number?
 
--
Mohammed

Zote

unread,
Sep 25, 2009, 10:11:06 AM9/25/09
to SQL Anywhere Web Development
Same problem here!

Zend server 4.0 running on windows vista x32 using IIS.
PHP version 5.3.0
SA 11.0.1.2308

PHP Log: PHP Warning: PHP Startup: Unable to load dynamic library 'C:
\Program Files\Zend\ZendServer\lib\phpext\php_sqlanywhere.dll' - The
specified module could not be found.
in Unknown on line 0

--
Zote

Cesar Bagatoli

unread,
Sep 25, 2009, 10:24:00 AM9/25/09
to SQL Anywhere Web Development
Apache Version 2.2.12.
PHP 5.3.0
SA 11.0.1.2308

PHP Log: PHP Warning: PHP Startup: Unable to load dynamic library
'C:
\Program Files\Zend\ZendServer\lib\phpext\php_sqlanywhere.dll' - The
specified module could not be found.
in Unknown on line 0

I can see that the version of PHP library on SA is Thread Safety
Enabled, and the PHP 5.3 on Zend Server the Thread Safety is disabled.



On Sep 24, 5:38 pm, Mohammed Abouzour <abouz...@gmail.com> wrote:

Mohammed Abouzour

unread,
Sep 28, 2009, 5:32:59 PM9/28/09
to sql-anywhere-w...@googlegroups.com
Cesar, you have hit the nail on the head.
 
There are two problems:
1) The problem has to do with the thread safetly of the SA PHP extension. The ZenServer is expecting
an nts version (thread safety disabled) but the SA PHP extensions provided on our web site was built
with thread safety enabled.
 
2) The SA PHP extension was built with VC9; however, ZendServer was built with VC8 and as such expects
to have VC8 built modules.
 
I will see if we can address those two issues.
 
--
Mohammed

Zote

unread,
Sep 29, 2009, 7:46:49 AM9/29/09
to SQL Anywhere Web Development
Mohammed,

Do you have a work-around?

Regards
Zote

Cesar Bagatoli

unread,
Sep 29, 2009, 7:51:47 AM9/29/09
to SQL Anywhere Web Development
Thank you for helping me, I'll waiting your answer.

philM

unread,
Sep 29, 2009, 10:08:36 AM9/29/09
to SQL Anywhere Web Development
The only "work-around" would be to build it yourself. The source code
is available from http://www.sybase.com/detail?id=1019698

It is not trivial to build it on Windows because you need Visual
Studio and the PHP sources set up, but it can be done. Generally, you
would follow the build instructions for PHP and just shimmy our module
into it (enabling it during the configure phase). If you're
adventurous and knowledgeable enough to try that, we should be able to
answer any specific questions you have.

However, it's probably easier to wait until Mohammed can work out a
proper solution. It is unfortunate that PHP modules are so tightly
bound to version and thread safety such that you need a different
binary for each combination.

Cheers,
Phil

Zote

unread,
Sep 29, 2009, 1:45:51 PM9/29/09
to SQL Anywhere Web Development
Thank you Phil. I'll wait for Mohammed path.

Cheers,
Zote

On Sep 29, 11:08 am, philM <philip.mitch...@gmail.com> wrote:
> The only "work-around" would be to build it yourself.  The source code
> is available fromhttp://www.sybase.com/detail?id=1019698

Mohammed Abouzour

unread,
Oct 6, 2009, 5:12:22 PM10/6/09
to sql-anywhere-w...@googlegroups.com
Here is a VC8 built version of the SA driver. You should be able to use this driver with the ZendServer.
 
This driver will be available for download soon from the web site.
 
--
Mohammed

php-5.3.0_sqlanywhere_nts.dll

Cesar Bagatoli

unread,
Oct 7, 2009, 7:50:21 AM10/7/09
to SQL Anywhere Web Development
Thanks Mohammed, I did some testing here and it worked.
>  php-5.3.0_sqlanywhere_nts.dll
> 189KViewDownload
Reply all
Reply to author
Forward
0 new messages