1
0
mirror of https://github.com/php/php-src.git synced 2026-04-28 02:33:17 +02:00
Commit Graph

192 Commits

Author SHA1 Message Date
Ulf Wendel 1ad1a2a0af MFH - Fixing tests - messages/warnings can vary by version 2009-05-29 13:37:08 +00:00
Ulf Wendel 775cc0ca20 MFH - Updating test to reflect API changes. 2009-05-29 13:23:01 +00:00
Ulf Wendel 13d92e6957 MFH - Skip test for libmysql. The MySQL C-API does not support it, mysqlnd does... 2009-05-29 13:12:39 +00:00
Ulf Wendel f3f1256332 MFH - 1) The wording of a message can differ by version and by libmysql vs. mysqlnd. 2) %i is better than %s 2009-05-29 13:02:43 +00:00
Ulf Wendel 6252b5ca20 MFH - Behaviour is undefined with libmysql, accept whatever libmysql may return. With mysqlnd you get the defined value of -1 to indicate 'no value'. 2009-05-29 12:55:55 +00:00
Ulf Wendel 3f17909a60 MFH - 'Fixing' test to reflect a libmysql vs. mysqlnd difference. With libmysql it is not defined what mysql_stmt_store_result() shall return when one tries to store the (non-existing) result set of a failed SQL statement, http://dev.mysql.com/doc/refman/6.0/en/mysql-stmt-store-result.html . mysqlnd will detect the SQL failure and return false. libmysql will return true. If you want libmysql to change, file a bug report at MySQL... I don't think there is a good way to work around this in the extension itself. 2009-05-29 11:59:26 +00:00
Ulf Wendel 2445a242ec MFH - Another detail where mysqlnd is superior than libmysql. The mysql_info() from libmysql does not support SELECT: http://dev.mysql.com/doc/refman/6.0/en/mysql-info.html . mysqlnd does support it. Libmysql feature request filed http://bugs.mysql.com/bug.php?id=45189 2009-05-29 11:01:06 +00:00
Ulf Wendel a027a64d73 MFH: Weaker test - libmysql/server error messages can differ by version 2009-05-29 10:34:23 +00:00
Ulf Wendel 396f5803e8 MFH - Weaker test: functions are only available if HAVE_EMBEDDED_MYSQLI is set. There is probably no proper way to check this condition in the user land. 2009-05-29 10:25:49 +00:00
Ulf Wendel 19bdbc49c3 MFH - Skip when using libmysql. Likely a regression bug - http://bugs.mysql.com/bug.php?id=45184 2009-05-29 10:15:50 +00:00
Andrey Hristov a3aaa2398d MFH:The option has changed the name, hence we change the test 2009-05-29 08:58:32 +00:00
Ulf Wendel 19194ff51b MFH - Asynchronous queries are mysqlnd only. If you want them with libmysql, ping JimW who works on Connector/C. 2009-05-28 18:57:34 +00:00
Ulf Wendel 2eccc6f2bf MFH - Andrey needs to have a look at this one. The bug report itself is bogus. However, the bug report shows a result set and that is wrong. 2009-05-28 18:28:08 +00:00
Andrey Hristov fe55da71bb MFH:
Forgot to commit this one, of the ANSI_QUOTES fame
2009-05-28 18:10:40 +00:00
Andrey Hristov cabce152f9 MFH:Fix again the tests for ANSI_QUOTES 2009-05-28 18:00:28 +00:00
Andrey Hristov 804f6138a6 MFH:Fix a valgrind warning as well as more trace log information 2009-05-28 17:49:29 +00:00
Ulf Wendel 4645f51360 MFH - I had accidently removed Andrey's path to work with ANSI QUOTES... fixing what I broke (part 1) 2009-05-28 15:49:14 +00:00
Ulf Wendel 7926037318 MFH - what a wonderful word. After the change in HEAD its easy to do a merge. The merge removes all UEXPECTF sections from the old days. Yes, there have been UEXPECTFs in 5_3. I hope PHP 6 won't change again over time... :-) 2009-05-28 14:33:43 +00:00
Andrey Hristov 90a8a7f857 MFH:Fix a test, UNSIGNED is expected 2009-05-28 10:16:41 +00:00
Andrey Hristov 04d8609e9f MFH: Fix failures when the server is running with ANSI_QUOTES 2009-05-28 09:58:36 +00:00
Andrey Hristov 07fc51d559 MFH: Fix tests when the server is running with ANSI_QUOTES 2009-05-27 18:18:58 +00:00
Ulf Wendel 6cf02c738b Crappy anonymous MySQL user account... trying to make the test more portable. 2009-05-27 17:54:30 +00:00
Ulf Wendel 774f562375 The test is bogus as long as there is no (proper) way to detect from the PHP userland if persistent connections do a change user or not. If they do is controlled by define at the moment. 2009-05-27 17:52:32 +00:00
Ulf Wendel b3645db1ce Testing a little further into the direction of a possible mysqlnd vs. libmysql compatibility break or a libmysql bug. It is not clearly stated in the MySQL C-API documentation what excactly happens on stmt_reset(). 2009-05-27 17:50:09 +00:00
Ulf Wendel a39d92c144 Trying to get test failures down by fixing tests. 2009-05-27 17:46:14 +00:00
Johannes Schlüter 074b084852 MFH: export mysql_refresh
[DOC] This makes mysql_refresh() as described in
      http://dev.mysql.com/doc/refman/6.0/en/mysql-refresh.html
      available as mysqli_Refresh() and mysqli->refresh()
      MYSQLI_REFRESH_BACKUP_LOG is only available when linking libmysql 6.0
      or mysqlnd
2009-01-22 21:01:58 +00:00
Johannes Schlüter e4a348d782 MFH: Fix #47050 mysqli_poll() modifies improper variables 2009-01-12 14:04:32 +00:00
Johannes Schlüter 74cfc5f3d7 MFH Fix #45940 MySQLI OO does not populate connect_error property on failed
connect
2009-01-12 12:56:01 +00:00
Johannes Schlüter 1e3e6cdf29 MFH: Proper ctor usage (Fix #46044) 2009-01-07 16:32:08 +00:00
Andrey Hristov 825034cea5 MFH:
Asynchronous queries for mysqli, when mysqlnd is enabled.
Includes 4 tests for mysqli_poll
2008-11-18 17:02:18 +00:00
Johannes Schlüter 04d9bbe65e MFH: Fix #46285 (lastInsertId() returns "0" when a deferenced PDOStatement is
executed)
2008-10-27 17:21:22 +00:00
Andrey Hristov 34ca27a191 MFH: Fix an issue with mysqli.default_port not being used 2008-10-27 14:34:35 +00:00
Andrey Hristov bf20aa12c7 MFH:Fix for bug#46019 MySQLi::init() leaks memory 2008-09-19 11:38:46 +00:00
Antony Dovgal 46ab8303e1 fix test 2008-09-18 08:40:02 +00:00
Antony Dovgal f10dd24e79 cleanup garbage 2008-08-26 11:06:09 +00:00
Antony Dovgal 838ac5fdaa fix typo 2008-08-26 10:59:10 +00:00
Andrey Hristov 7833cf9f10 MFH: Fixed bug#45019 Segmentation fault with SELECT ? and UNION 2008-07-25 12:46:03 +00:00
Andrey Hristov f728ceae94 MFH: Added test file 2008-07-24 14:17:47 +00:00
Andrey Hristov 24e7d03e48 MFH: Fixed bug#44897 - failed to prepare statement
After a PS "CALL()" we have at least one result set. If the SP does also some, then
     we need to clean the wire more fool-proof.
2008-07-23 14:07:38 +00:00
Dmitry Stogov 833a2295d1 Support for closures 2008-07-17 09:53:42 +00:00
Antony Dovgal 4a71b17693 more fixed tests 2008-07-13 21:43:12 +00:00
Andrey Hristov f4e659d2af Update ext/mysql's and ext/mysqli's tests
Add mysqli_stmt_more_result()/mysqli_stmt_next_result(), but only in
mysqlnd builds as libmysql doesn't support this feature.
2008-04-24 14:22:19 +00:00
Andrey Hristov 5abe8c8d01 Small updates & a fix for
Bug #43832 mysqi_get_charset() doesn't expose charset comment
2008-03-25 18:27:17 +00:00
Andrey Hristov 85cd8525c9 Small fix and a test case to prove it's right 2008-03-20 15:29:14 +00:00
Andrey Hristov 6867385d75 - Don't modify the variables which are passed for parameter binding.
We need to clone them, if there will be a transformation (convert_to_xxx)
  which will change the origin
  (bug#44390 bind_param / bind_result and Object member variables)
- Make mysqlnd more compatible to libmysql, in this case if the execute of
  a statement fails set the state of the statement back to PREPARED
- A test case to check the case of a failing statement.
2008-03-20 14:03:30 +00:00
Andrey Hristov caf3e9c3f1 Fixed a bunch of bugs reported in
Bug #44352 mysqli_connect_error() false negative for host errors
From now on the mysqli object doesn't have that magic properties, like
error, which were readable but not visible through isset(), property_exists()
and var_dump(). All other ext/mysqli classes were fixed too.
Now it will be easier to debug mysqli based applications.
2008-03-18 16:57:31 +00:00
Andrey Hristov ff8a310468 Fix a problem with $mysqi->connect() not working with default values.
Fix a leak, bug#39457
2008-03-08 14:55:52 +00:00
Andrey Hristov 702bc3b345 Fix test. Now passes. 2008-02-20 18:27:53 +00:00
Andrey Hristov 4ade01852c Fix a failing test 2008-02-19 17:21:50 +00:00
Andrey Hristov ff23e5c875 Fix test 2008-02-19 15:36:38 +00:00