hey all,

i have installed php-5.3.6, apache2 and oracle instant client 11.1. i have configured php with pdo_oci successfully.

issue: the problem is that the db connect I am able to connect to database a: using the same user, but when i change my connection credentials to connect to database b. i get an error in the apache logs

error:

glibc detected free(): invalid pointer: 0x0977e57c ***
[Sat Jan 23 06:39:26 2012] [notice] child pid 6917 exit signal Aborted (
6)

note: i am able to login with both the credentials using toad to the database which to me shows the database username and password is correct

please please help

i am have tried my best to get a solution

thanks in advance

regards tolb

    There's a bug in something you're using - there's no way you should be able to cause an invalid free() by writing PHP.

    My first suspicions fall pdo_oci extension; after all, it's documented as "Use at your own risk". If you can put together a test case that reliably reproduces it, you'd be best submitting a bug report.

    Assuming you don't want to wait around for a fix, you could use the [man]OCI8[/man] extension instead. Obviously it means not using PDO, but your database communication code is all in one place so that it can be swapped with something else, right?

    Alternatively: to change the database, close the connection to the current database and open an new one to the other database.

      Write a Reply...