Mantis - Quercus
Viewing Issue Advanced Details
2144 major always 11-05-07 22:07 11-06-07 08:45
koreth  
ferg  
normal  
closed 3.1.4  
fixed  
none    
none 3.1.4  
0002144: mysql_connect() fails in Pro
<?php
if (mysql_connect("dbserver", "user", "password")) {
    print "connected";
} else {
    print "not connected";
}

This works in the open-source Quercus/Resin (latest code from Subversion), but when I install pro.jar from the 11/05 snapshot, I get an error:

/Users/sgrimm/www/html/test.php:2: Warning: A link to the server could not be established.
  url=jdbc:mysql://dbserver:3306/ [^]
  driver=com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource
  com.caucho.config.ConfigException: java.lang.ClassNotFoundException: jdbc:mysql://dbserver:3306/ [^] [mysql_connect]
not connected

In the debugger, I see that this exception is coming by way of the ProEnv class (didn't try to step through that since I don't have source.) Looks like maybe it's getting the URL and the driver class mixed up, though, judging by the exception message.

Notes
(0002451)
ferg   
11-06-07 08:45   
new snapshot available with the fix