go to bug id or search bugs for
I spent almost 2 day trying to figure out how to load the sybase extension under windows. I tried everything I could, but 14 of the extensions would not load under WinMe, Win98, Win2000, with any combination of apache, pws, iis. The extension_dir is just set all fine, and the rest of the extensions load and function well.
I only wanted to get some data from a sybase db. I could actually solve it with ODBC, but I still thought it's not the real way.
I discussed this problem on the local php mailing list, everyone knew it, noone knew why. I searched through the php manual and the rest of the web just to find a fraction of information that could be helpful either way, but there was no.
The extensions that made me 2 horribe days:
A sample message:
PHP Warning: Unable to load dynamic library 'c:\php\extensions\php_sybase_ct.dll'
My question is if it is possible to load these extensions some way, or should I give up trying, becouse they will never load.
Thank you a lot.
I wish you nice developing.
Add a Patch
Add a Pull Request
all of theese extensions depend on other DLLs
being installed on your system
like, for example, sybase_ct client DLLs
(this is the native sybase call interface, _not_ the ODBC stuff)
maybe we could improve the error message?
(moved to feature request)
Yes, a more detailed error message, or/and two more lines in the manual could have saved me some time. And maybe it would for others too.
so better documentation is needed for extensions that rely on external libraries.
The extensions are all (mostly) listed in a table at http://www.php.net/manual/en/install.windows.php#install.windows.extensions which also lists if the extension is dependent upon a specific library (another dll).
Most of the extension documentation also lists 'You need xxx to use this extension', or 'In order to use this extension you need to install xxx', etc. I think it is clearly documented in the manual. A possibility would be to improve the error message, perhaps 'php_xxx.dll: This extension requires xxx library installed', something simliar would be helpful.
Changing to feature request.
i completly agree
i also spend almost 2 days
for connecting to remote sybase server
couldnot load php_sybase_ct.dll
i know it requires other files like libct.dll but how to get them
i know its not php bug but atleast the ppl who have worked on this can reply
We are sorry, but we can not support PHP 4 related problems anymore.
Momentum is gathering for PHP 6, and we think supporting PHP 4 will
lead to a waste of resources which we want to put into getting PHP 6
This issue is reproductible under Win2003 Server - IIS6 - PHP 5.3.2. That would be great to update the status of this ticket for the latest PHP version.
There is no issue, read the install guide to learn how to install PHP, or use the installer.
Sorry for the misunderstanding. I was mentionning that a detailed error message is still missing when it's about missing external libraries like the one described for php_sybase_ct.dll with PHP 5.3.2 (the latest version as of today) and that would be useful to have such info
We can't provide this message as php does not have the hand at this stage.
At the end, I succeed to solve the php_sybase_ct.dll that couldn't be loaded letting you unable to connect to sybase databases via PHP.I just needed to reinstall PHP with an installer that includes php_sybase_ct.dll, so no need to copy it from somewhere else to the extensions directory. To be more clear I first installed this package php-5.3.2-nts-Win32-VC9-x86.msi which doesn't come with the dll and used instead php-5.3.2-nts-Win32-VC6-x86.msi which does from http://windows.php.net/download.
The following tool really helped me to find the solution : http://www.dependencywalker.com/, by telling me that php_sybase_ct.dll was missing a specific PHP dll which couldn't be found in the package I installed in the first stage.
I wish I found this solution somewhere but as many guys fell into this problem (sometimes since 2001!) and all suggestion/resolution where turning around a wrong direction PHP.ini, extensions folder directives malformatted... I find it important to share this point!