php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #24297 Unable to RegQueryValueEx()
Submitted: 2003-06-23 09:22 UTC Modified: 2003-07-02 14:51 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: steven dot pereira at mattamycorp dot com Assigned:
Status: Not a bug Package: ODBC related
PHP Version: 4.3.2 OS: Win 2k
Private report: No CVE-ID: None
 [2003-06-23 09:22 UTC] steven dot pereira at mattamycorp dot com
Description:
------------
when I used the odbc_pconnect or odbc_connnect is my scripts, I seem to be getting this error:
GetRegValue(): Unable to RegQueryValueEx() The operation completed successfully.

Can anyone help?


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-06-23 21:26 UTC] sniper@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.



 [2003-06-24 07:30 UTC] steven dot pereira at mattamycorp dot com
Where ever I use odbc_pconnect, or odbc_connect I get this error 'GetRegValue(): Unable to RegQueryValueEx() The operation completed successfully'.  I've taken everthing out of the script, the only thing the script does is 
lnk#=odbc_connect('dbname','someuser','someuser');

I'm using a w2k machine, and using the cgi version 4.3.2.

Thanks,

Steven
 [2003-06-25 15:06 UTC] kalowsky@php.net
Works fine on my end.  Make sure you have a DSN defined and get rid of the lnk# 


 [2003-06-25 15:11 UTC] steven dot pereira at mattamycorp dot com
sorry, I might to say $lnk=odbc_pconnect.

The odbc_pconnect and DSN are working, I get my data and stuff, I just get that error message.

Any ideas.
 [2003-06-25 15:36 UTC] kalowsky@php.net
The following web page has the information you need. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sysinfo/base/regqueryvalueex.asp


I have no idea why you're using the Registry, but this isn't an ODBC bug as far as I can tell.  Marking as bogus as I cannot reproduce the behavior on my machine locally (W2k).  
 [2003-06-25 15:44 UTC] steven dot pereira at mattamycorp dot com
sorry, you said that I was using the Registry.  I don't understand.  I saw that artcile before I came here, and it didn't help me at all.  what do you mean using the registry.  Could it be something configured wrong.  I'm not trying to use the registry.  Like I said before, I just make a odbc_pconnect call and it comes back with that error message.
 [2003-07-02 12:38 UTC] steven dot pereira at mattamycorp dot com
can anybody help?
 [2003-07-02 14:51 UTC] sterling@php.net
don't reopen, its a bogus bug report.  If you want to help, contact php-general@lists.php.net, or contact Microsoft.
 [2004-08-06 23:26 UTC] alan dot wendle at stellarrad dot com
It's not bogus.  I'm getting the exact same error message.  The output from the PHP server has this message added onto the end:

GetRegValue(): Unable to RegQueryValueEx()The operation completed successfully.

I even turned off display_errors in the php.ini file.  This message comes up anyway.  There are no registry calls in my code.  It is apparently being called when the php engine connects to the ODBC data source.  Why does it ouput the error message to the browser window?
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 20:01:32 2024 UTC