diff options
| author | Johannes Schlüter <johannes@php.net> | 2009-03-25 10:27:22 +0000 |
|---|---|---|
| committer | Johannes Schlüter <johannes@php.net> | 2009-03-25 10:27:22 +0000 |
| commit | 3a76cc254f89dab1b2eb3bf7a3d917bd99c2f1f9 (patch) | |
| tree | fd4bb4a30e95957ad0510adae3a8fcbf364cf01a /ext/mysql/tests | |
| parent | 52a14bd8b7178dc5c7f31431709a0975d62840a4 (diff) | |
| download | php-git-3a76cc254f89dab1b2eb3bf7a3d917bd99c2f1f9.tar.gz | |
mysql_db_query() is always deprecated
Diffstat (limited to 'ext/mysql/tests')
| -rw-r--r-- | ext/mysql/tests/mysql_db_query.phpt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/mysql/tests/mysql_db_query.phpt b/ext/mysql/tests/mysql_db_query.phpt index be7f87ac21..8adf481711 100644 --- a/ext/mysql/tests/mysql_db_query.phpt +++ b/ext/mysql/tests/mysql_db_query.phpt @@ -25,7 +25,7 @@ if (NULL !== ($tmp = @mysql_db_query($link))) printf("[003] Expecting NULL/NULL, got %s/%s\n", gettype($tmp), $tmp); require('table.inc'); -if (!$res = mysql_db_query($db, 'SELECT id, label FROM test ORDER BY id LIMIT 1', $link)) +if (!$res = @mysql_db_query($db, 'SELECT id, label FROM test ORDER BY id LIMIT 1', $link)) printf("[004] [%d] %s\n", mysql_errno($link), mysql_error($link)); $row = mysql_fetch_assoc($res); @@ -40,7 +40,7 @@ if (ini_get('unicode.semantics') && !is_unicode($row['label'])) { mysql_free_result($res); -if (!$res = mysql_db_query($db, 'SELECT id, label FROM test ORDER BY id LIMIT 1')) +if (!$res = @mysql_db_query($db, 'SELECT id, label FROM test ORDER BY id LIMIT 1')) printf("[007] [%d] %s\n", mysql_errno(), mysql_error()); $row = mysql_fetch_assoc($res); @@ -58,4 +58,4 @@ mysql_close($link); print "done!\n"; ?> --EXPECTF-- -done!
\ No newline at end of file +done! |
