Commit Graph

589 Commits

Author SHA1 Message Date
Ulf Wendel
e92bf65c4c Fixing tests - messages/warnings can vary by version 2009-05-29 13:36:54 +00:00
Ulf Wendel
b592b26ff2 Updating test to reflect API changes. 2009-05-29 13:22:47 +00:00
Ulf Wendel
ce638000ae Skip test for libmysql. The MySQL C-API does not support it, mysqlnd does... 2009-05-29 13:12:24 +00:00
Andrey Hristov
1683d46dc9 Add support for mysql_stmt_store_result() from libmysql 6.0.8+ and 5.4.x 2009-05-29 13:09:22 +00:00
Ulf Wendel
d8d9ef2c62 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:30 +00:00
Ulf Wendel
0653a585d1 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:39 +00:00
Ulf Wendel
3da36d58dc '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:09 +00:00
Ulf Wendel
b59d4f6ffc 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:00:53 +00:00
Ulf Wendel
64c8da2ff0 Weaker test - libmysql/server error messages can differ by version 2009-05-29 10:34:07 +00:00
Ulf Wendel
12c301e7ec 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:37 +00:00
Ulf Wendel
05fdee2c65 Skip when using libmysql. Likely a regression bug - http://bugs.mysql.com/bug.php?id=45184 2009-05-29 10:15:32 +00:00
Andrey Hristov
6b21010022 The option has changed the name, hence we change the test 2009-05-29 08:58:10 +00:00
Kalle Sommer Nielsen
d1c04314c5 MFB: This should be in HEAD regradless of uint8_t is available or not 2009-05-28 19:40:37 +00:00
Ulf Wendel
8116eeb124 Asynchronous queries are mysqlnd only. If you want them with libmysql, ping JimW who works on Connector/C. 2009-05-28 18:57:14 +00:00
Ulf Wendel
db3f0aa99e 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:27:44 +00:00
Andrey Hristov
7b5dcc895a Forgot to commit this one, of the ANSI_QUOTES fame 2009-05-28 18:10:12 +00:00
Andrey Hristov
42495ccdde Fix again the tests for ANSI_QUOTES 2009-05-28 18:00:08 +00:00
Andrey Hristov
86aa4e8035 Fix a valgrind warning as well as more trace log information 2009-05-28 17:49:00 +00:00
Ulf Wendel
f9fb575cd7 I had accidently removed Andrey's path to work with ANSI QUOTES... fixing what I broke (part 1) 2009-05-28 15:47:08 +00:00
Ulf Wendel
85cb084fc5 1) Changing EXPECT[F] sections to work with PHP 5.3 and PHP 6. 2) Merging a couple of fixes I applied to PHP 5.3 only yesterday. The changes should make it a little easier to do MFH and follow the rules in the future as we will soon have identical tests for PHP 5_3 and HEAD. 2009-05-28 14:11:41 +00:00
Ulf Wendel
ff1535fe73 Fixing test (its OK in 5_3 and needs to be fixed in HEAD) 2009-05-28 13:55:46 +00:00
Andrey Hristov
7d2383061c Fix a test, UNSIGNED is expected 2009-05-28 10:16:18 +00:00
Andrey Hristov
2caa76ae62 Fix failures when the server is running with ANSI_QUOTES 2009-05-28 09:57:54 +00:00
Andrey Hristov
0168fc5dda Less warnings by usage of proper modifier 2009-05-27 20:04:49 +00:00
Andrey Hristov
0ebb041393 because we use int64_t we need corresponding printf modifiers. the type
can be different on 32 and 64 bit, thus we can't use ld and lld but
C helps us with inttypes.h and PRId64 and PRIu64 modifiers (without the %)
2009-05-27 19:56:47 +00:00
Andrey Hristov
e3456c0460 Fix tests when the server is running with ANSI_QUOTES 2009-05-27 18:13:56 +00:00
Andrey Hristov
8124e94d22 Additional revert 2009-05-27 15:04:55 +00:00
Andrey Hristov
77373e8694 Revert previous patch to something that make sense and works in error cases 2009-05-27 14:16:00 +00:00
Kalle Sommer Nielsen
b3e899e7ca Fix compiler warnings in ext/mysql, ext/mysqli and ext/pdo_mysql 2009-05-20 08:29:23 +00:00
Pierre Joye
eb18af31f9 - fix TS build 2009-04-06 11:07:39 +00:00
Felipe Pena
04c90a0f51 - Removed:
- UG(unicode) checks
- Changed:
     - ZEND_STR_TYPE -> IS_UNICODE
     - convert_to_text -> convert_to_unicode
2009-03-27 19:28:26 +00:00
Marcus Boerger
d4f5b3f0a9 - This is PHP 6 - if this ... ever gets out 2009-03-10 23:40:06 +00:00
Johannes Schlüter
6e24169120 - Fix mysqli pconnects to properly reset connection status by default 2009-01-27 15:35:22 +00:00
Johannes Schlüter
00fc56bd92 Fix tests 2009-01-22 21:56:46 +00:00
Johannes Schlüter
d15503bfcc - Export mysql_refresh to mysqli (mysqli_refresh(), $mysqli->refresh()) 2009-01-22 20:57:32 +00:00
Johannes Schlüter
9177d73c08 Fix #47050 mysqli_poll() modifies improper variables 2009-01-12 14:01:47 +00:00
Johannes Schlüter
66c17bcca4 - Fix #45940 MySQLI OO does not populate connect_error property on failed
connect
2009-01-12 12:54:17 +00:00
Johannes Schlüter
3bc6285560 Fix #46653 mysqlnd: can't extend mysqli 2009-01-09 14:28:31 +00:00
Johannes Schlüter
c7e001a736 Proper ctor usage (Fix #46044) 2009-01-07 16:29:42 +00:00
Felipe Pena
2632316e80 - Removed UEXPECT(F)
- Unicodified some tests
2009-01-06 00:56:04 +00:00
Sebastian Bergmann
7f4dc8702a Bump copyright year, 3 of 3. 2008-12-31 11:12:40 +00:00
Ilia Alshanetsky
992033a41c MFB: Fixed bug #46887 (Invalid calls to php_error_docref()) 2008-12-18 20:04:26 +00:00
Johannes Schlüter
1275a176e9 Change to zend_parse_parameters 2008-11-28 20:36:48 +00:00
Dmitry Stogov
e5454b359a Fixed bug #46409 (__invoke method called outside of object context when using array_map) 2008-11-27 19:02:45 +00:00
Etienne Kneuss
8251921307 Fix #46241 (stacked error_handlers, error_handling in general) 2008-11-19 01:59:07 +00:00
Andrey Hristov
983f575f22 Asynchronous queries for mysqli, when mysqlnd is enabled.
Includes 4 tests for mysqli_poll
2008-11-18 16:54:38 +00:00
Felipe Pena
43791516db - Added 'static' into ZEND_BEGIN_ARG_INFO_EX macro (again!) 2008-11-17 11:26:25 +00:00
Andrey Hristov
68d9aac6d2 Remove unneeded cast 2008-11-10 20:04:56 +00:00
Ilia Alshanetsky
e767480c8f Fixed compiler warnings 2008-11-10 19:03:57 +00:00
Felipe Pena
e006a89e71 - Revert ZEND_BEGIN_ARG_INFO change 2008-11-02 21:10:13 +00:00