shish/shimmie2 — Issue #43: Silent program exit @ mysql _connect
Author: XievenLonger
Created: 2011-10-16 15:25:00+00:00
State: open

Hey guys,

I'm at my wits' end... I transfered my whole programming environment to another computer, and now shimmie2 isn't working anymore. He keeps showing me nothing than a blank screen when I go to index.php.
So, I enabled error displaying in the php.ini

```ruby
error_reporting = E_ALL & ~E_DEPRECATED

display_errors = On

display_startup_errors = On
```

(I hope this is correct.)
But he doesn't show me any error.
I managed to break down the error source on the native function "mysql_connect". It seems that the program stops at this function without any error or something.

lib\adodb\drivers\adodb-mysql.inc.php
function _connect
line 363

```ruby
if (ADODB_PHPVER >= 0x4300){
print "
ADODB_PHPVER >= 0x4300";
print "
" . $argHostname . " " . $argUsername . " " .
$argPassword . " " . $this->forceNewConnect . " " . $this->clientFlags;
$this->_connectionID = mysql_connect($argHostname,$argUsername,$argPassword,
$this->forceNewConnect,$this->clientFlags);
print "
mysql connected";
}
```

As you can see, I added some debug printing, to see what's happening.
"ADODB_PHPVER >= 0x4300" gets printed, than he also shows me the (correct) connection parameters, but the "mysql connected" message never gets printed.

As I said, I had shimmie2 running (not to say, I have the exact same version running on another computer), but this one wont work. (The same database is used btw.)

So, does anyone see the error right away or is able to tell me, how to find the error? mysql_error doesn't work, cause the program never reaches any code beyond mysql_connect...