php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #34197 Cannot Load dll's after configuring php.ini
Submitted: 2005-08-20 20:05 UTC Modified: 2005-08-20 22:25 UTC
From: inet2024 at hotmail dot com Assigned:
Status: Not a bug Package: OCI8 related
PHP Version: 5.0.4 OS: win2000 AS
Private report: No CVE-ID: None
 [2005-08-20 20:05 UTC] inet2024 at hotmail dot com
Description:
------------
Running: Oracle 10g, Win2k AS, IIS, php (4 or 5), ODBC
All are running fine. When I uncomment out any of the extension dll's in the php.ini file the webserver hangs. I have changed the extension_dir to "C:/PHP/EXT" which is where the dll's are installed. ODBC works with other apps - both user and system. 
It sounds more like a configuration problem, but maybe not. I have researched and found many instances of related problems, but none have a fix that works.

Reproduce code:
---------------
...

$db_db = "dbname";
$db_connoci = ocilogon("user", "password", $db_db);

...

Expected result:
----------------
Connection to oracle via php-oci8.dll

Actual result:
--------------
Webserver hangs 

or

Fatal error: Call to undefined function ocilogon() in c:\Inetpub\wwwroot\include\db.php on line 19

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-08-20 22:17 UTC] edink@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

Yeah, it's a configuration problem, you need to enable oci8 extension in your php.ini.
 [2005-08-20 22:25 UTC] inet2024 at hotmail dot com
Problem is, I cannot enable the oci8 dll in the ini file, as it hangs the webserver when you do so - even if the extension_dir is set to the directory containing the dll's. In fact it hangs the webserver if you uncomment ANY of the extensions in the ini file. So, if by changing the extension_dir to the correct directory, and uncommenting the correct dll, IT IS A BUG IN EITHER PHP OR AN INSTALLATION BUG OR A BUG IN YOUR CONFIGURATION.

I have visited the support site you quote, little or no use - the question is raised, but no response that I can find fixes the problem. Since this seems to be a common problem, perhaps you should fix the code, the installation or the config setup?
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 03 00:01:31 2024 UTC