diff options
author | Adam Harvey <aharvey@php.net> | 2012-12-10 22:12:09 +0800 |
---|---|---|
committer | Adam Harvey <aharvey@php.net> | 2012-12-10 22:12:09 +0800 |
commit | b7091aaf0137d97cf4aa4a402ec50b3946d369c0 (patch) | |
tree | 52618e911add69133e2f2eff4c976e9fe9ecd999 /ext/mysql/tests/mysql_field_len.phpt | |
parent | c007ba4740e90a7a73bc8c6350804670e4b49cc1 (diff) | |
download | php-git-b7091aaf0137d97cf4aa4a402ec50b3946d369c0.tar.gz |
Deprecate ext/mysql.
Per https://wiki.php.net/rfc/mysql_deprecation, connecting to a MySQL database
via ext/mysql now generates an E_DEPRECATED error. This commit includes the
minimal EXPECTF updates required for the test suite to pass: it may be
preferable to refactor some of the tests to suppress deprecation errors in
situations where no other error is expected from mysql_[p]connect(), but I'm
not enough of a MySQL expert to want to get my hands that dirty in a long
standing test suite.
Diffstat (limited to 'ext/mysql/tests/mysql_field_len.phpt')
-rw-r--r-- | ext/mysql/tests/mysql_field_len.phpt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/mysql/tests/mysql_field_len.phpt b/ext/mysql/tests/mysql_field_len.phpt index a740c62439..119d352164 100644 --- a/ext/mysql/tests/mysql_field_len.phpt +++ b/ext/mysql/tests/mysql_field_len.phpt @@ -47,6 +47,8 @@ print "done!"; require_once("clean_table.inc"); ?> --EXPECTF-- +Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in %s on line %d + Warning: mysql_field_len() expects exactly 2 parameters, 1 given in %s on line %d Warning: mysql_field_len(): Field -1 is invalid for MySQL result index %d in %s on line %d |