Fix: PHP stops at PEAR DB::connect() call.

Monday, December 01, 2008

I had this problem where the script abruptly stopped executing as soon as
the PEAR DB::connect() function was called. This was strange because there wasn't any error message displayed and all error reporting was set to On.

After looking at another project, I figured out that the problem was with where the DB package was located.

Previously I had put PEAR package in:
/PEAR/PEAR.php
And DB package in
/PEAR/DB/DB.php

I got the problem fixed after I put all the pear DB package within PEAR directory itself.
That is PEAR package in:
/PEAR/PEAR.php
And DB package in:
/PEAR/DB.php

Not sure why exactly this problem occurs, but apparently this change in directory of DB package solves this problem.

Read more...

Back to TOP