Author: uwendel
Date: 2007-03-14 12:57:45 +0100 (Wed, 14 Mar 2007)
New Revision: 131
Modified:
trunk/ext/mysqli/tests/mysqli_kill.phpt
Log:
Error message is server version specific. Check only for non-empty string.
Modified: trunk/ext/mysqli/tests/mysqli_kill.phpt
===================================================================
--- trunk/ext/mysqli/tests/mysqli_kill.phpt 2007-03-14 11:13:29 UTC (rev 130)
+++ trunk/ext/mysqli/tests/mysqli_kill.phpt 2007-03-14 11:57:45 UTC (rev 131)
@@ -32,7 +32,9 @@
if ($res = mysqli_query($link, "SELECT id FROM test LIMIT 1"))
pintf("[006] Expecting boolean/false, got %s/%s\n", gettype($res), $res);
- var_dump(mysqli_error($link));
+ var_dump($error = mysqli_error($link));
+ if (!is_string($error) || ('' === $error))
+ printf("[007] Expecting string/any non empty, got %s/%s\n", gettype($error),
$error);
var_dump($res);
var_dump($link);
@@ -40,7 +42,7 @@
print "done!";
?>
--EXPECTF--
-string(26) "MySQL server has gone away"
+string(%d) "%s"
bool(false)
object(mysqli)#%d (0) {
}
| Thread |
|---|
| • PHP mysqlnd svn commit: r131 - trunk/ext/mysqli/tests | uwendel | 14 Mar |