Bug #17002 Updated: Unable to load php_oci8.dll ONLY in command line mode

From: Date: Sun, 05 May 2002 16:09:29 +0000
Subject: Bug #17002 Updated: Unable to load php_oci8.dll ONLY in command line mode
References: 1  Groups: php.bugs php.doc 
Request: Send a blank email to php-bugs+get-6959@lists.php.net to get a copy of this message
ID: 17002 Updated by: sander@php.net Reported By: dong_peng@sd163.net -Status: Bogus +Status: Open -Bug Type: OCI8 related +Bug Type: Documentation problem Operating System: Win98 PHP Version: 4.2.0 New Comment: Hm... it seems to me a good idea to note somewhere in the manual that PHP (or Windows) searches for DLL's in %PATH% and %SYSTEM%. Reopening as a documentation problem. Previous Comments: ------------------------------------------------------------------------ [2002-05-05 12:04:48] dong_peng@sd163.net Of course, it is NOT a bug of php. ------------------------------------------------------------------------ [2002-05-05 12:01:11] dong_peng@sd163.net After failed many times, I happened to find the cause. I think it maybe helpful for many people who reported or asked the same question that I have seen on www.php.net . It is the PATH has not been correctly set. When loading php_oci8.dll, this DLL file search for the other DLL file "oci.dll" in current directory, PATH environment and %SYSTEM%(on Windows). If oci.dll can not be found, the OS will tell you "Unable to load dynamic library : php_oci8.dll". If you installed Oracle RDBMS on your system, then the file "oci.dll" is in Oralce Home directory. So you must include "Oracle Home Directory " in PATH environment, on my computer it is "D:\Oracle\ora81\Bin". Perhaps, the same problem on different platform can be solved in same way, try it. I am lucky to find the cause in almost ten days, I hope people will not be worried about this problem any longer. Dong Peng Lanzhou Railway Universiy China 2002-5-6 00:06 ------------------------------------------------------------------------ [2002-05-04 05:15:29] mfischer@php.net The bug system is not the appropriate forum for asking support questions. For a list of a range of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php ------------------------------------------------------------------------ [2002-05-04 05:00:24] dong_peng@sd163.net Unable to load php_oci8.dll ONLY in command line mode I have just installed php 4.2.0 for win32 on my computer. I found the same bug as php (4.1.2). There is nothing wrong when I use php in ISAPI mode, and I can connect to Oracle 8i(8.1.7 Personal Edition) successfully and manipulate data too. but when I use php in command line mode to process some task which can only run once, the system show a message box with the text below : 'Unable to load dynamic library "c:\php420\extensions\php_oci8.dll". ' The extension file "php_oci8.dll" does exist in the above directory, and can work correctly in ISAPI mode. So I considered that there is a bug in "php.exe" on loading dynamic library. Is it? Please help me. Dong Peng 2002-5-4 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=17002&edit=1

« previous php.bugs (#6959) next »