Mantis - Quercus
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
2128 | major | always | 10-29-07 20:04 | 10-30-07 12:13 | |
|
|||||
Reporter: | koreth | Platform: | |||
Assigned To: | ferg | OS: | |||
Priority: | normal | OS Version: | |||
Status: | closed | Product Version: | 3.1.4 | ||
Product Build: | Resolution: | fixed | |||
Projection: | none | ||||
ETA: | none | Fixed in Version: | 3.1.4 | ||
|
|||||
Summary: | 0002128: mysql_query() doesn't report connection loss to application | ||||
Description: |
Configure a MySQL server to disconnect after 15 seconds of idle time. Then: <?php $conn = mysql_connect('mysql_host', 'user', 'password'); if ($conn) print "connected\n"; else print "connect error\n"; $ret = mysql_query("select 1"); if ($ret) print "query ok\n"; else print "query error\n"; sleep(20); // so the db breaks the connection $ret = mysql_query("select 1"); if ($ret) print "query ok\n"; else print "query error\n"; Vanilla PHP prints: connected query ok query error Quercus prints: connected query ok query ok In other words, the error condition (which is definitely detected; a couple hundred lines of exception stack traces spew into the log) is not reported back to the client. |
||||
Steps To Reproduce: | |||||
Additional Information: | |||||
Relationships | |||||
Attached Files: |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|