pear / DB

http://pear.php.net/package/DB
9 stars 33 forks source link

Bug in DB/oci8.php ... oci_fetch_array called with wrong parameters #33

Open jotazuz opened 5 months ago

jotazuz commented 5 months ago

method fetchInfo (line 379 of oci8.php) doesn't work because it's calling oci_fetch_array with wrong parameters (is using the same parameters for the deprecated function OciFetchInto)

schengawegga commented 3 months ago

@jotazuz I will release the bugfix soon. Thank you for your hint. Otherwise i think i found another bug in the connection function at the DSN. Can you tell me, how do you call the connect function? Do you connect via an dsn-string or via the connection ds paramter-array, like $dsn['phptype'] = "oci8"; $dsn['hostspec'] = "localhost"; $dsn['database'] = "XEPDB1"; $dsn['port'] = 1521; $dsn['username'] = "SYSTEM"; $dsn['password'] = "MySystemPassword"; ?

schengawegga commented 3 months ago

@jotazuz did you read my last comment? can you give me a quick response, please?

jotazuz commented 3 months ago

@schengawegga sorry, didn't get your last post. I connect via dsn string, something like this:

oci8://user:pass@(DESCRIPTION = (CONNECT_TIMEOUT=1)(ADDRESS = (PROTOCOL = TCP)(HOST = xxxxxxx)(PORT = 11521))(CONNECT_DATA = (SERVER = DEDICATED)(SERVICE_NAME = xxxx)(FAILOVER_MODE = (TYPE = SELECT)(ME
THOD = BASIC)(RETRIES = 2)(DELAY = 2))))/database