Commit Graph

38820 Commits

Author SHA1 Message Date
Ulf Wendel
5ccab692dd Pretty much the same cosmetics and tweaking as before (proper UEXPECTF,
"done!" at the end to detect crashes, connection parameter tweaking, ...) -
plus: check return codes even if failures are unlikely.
2007-07-12 20:34:50 +00:00
Ulf Wendel
1d0b5d303b More typical changes:
1) Try to have portable SQL, don't create your own schema unless the test
   wants to test exactly this
2) Don't rely on default SQL sort orders
3) Use proper UEXPECTF. There have been a lot of tiny unicode issues when
   ext/mysqli has returned a binary string in unicode mode although a
   unicode string could be expected and vice versa
2007-07-12 20:31:18 +00:00
Ulf Wendel
984756c898 All the upcoming changes in the 0*.phpt files are pretty much the same. I'll
describe them only once in with a bit of detail.

1) Correct Whitespace (space vs. tab) if need be
2) Recall: you get the connection parameter from connect.inc, no DB name, no
   port no other connection parameter in any of the tests!
3) At the end of each test you find a "print 'done!'" or similar. This is
   most helpful to detect crashing/segfaulting tests with all run-tests.php
   versions.
2007-07-12 20:28:25 +00:00
Ulf Wendel
ed4021d857 Adding tests for mysqli_affected_rows() and mysqli_autocommit() 2007-07-12 20:20:57 +00:00
Ulf Wendel
b5595d57c5 Some of the upcoming new tests will use this little helper to create a
very simple MySQL table with some data in it to play with.
2007-07-12 20:10:23 +00:00
Ulf Wendel
e48a29bb4d Some tests intentionally fail connecting to the DB. Not being able to
connect is no reason to skip the test. Also, no test should have hard-wired
connection parameter in it. Connection parameters come from connect.inc
(see environment variables in connect.inc).
2007-07-12 20:07:05 +00:00
Ulf Wendel
6fff9f4534 Starting to merge the latest set of ext/mysqli tests from the mysqlnd
SVN repro into HEAD. Again, it might happen that I crash the set of tests
and don't mention one or the other change while merging. Blame me...

1) Note the new environment variables to control the test run
2) Variables $IS_MYSQLND and $MYSQLND_VERSION are for writing portable tests
3) sys_get_temp_dir function is for PHP5/PHP6 portability
2007-07-12 20:04:17 +00:00
Derick Rethans
b49f733c6a - Commit generated file. 2007-07-12 18:59:35 +00:00
Derick Rethans
d43b79f12b - Missing file in commit. 2007-07-12 18:58:48 +00:00
Derick Rethans
1e096be0b3 - Fixed bug #41964 (strtotime returns a timestamp for non-time string of
pattern '(A|a) .+').
- Fixed bug #41844 (Format returns incorrect number of digits for negative
  years -0001 to -0999).
- Fixed bug #41842 (Cannot create years < 0100 & negative years with
  date_create or new DateTime).
- Fixed bug #41709 (strtotime() does not handle 00.00.0000).
- Fixed bug #41523 (strtotime('0000-00-00 00:00:00') is parsed as 1999-11-30).
2007-07-12 18:56:42 +00:00
Jani Taskinen
42dbb97d4d fix the configure output 2007-07-12 17:46:14 +00:00
Jani Taskinen
261c38876a fix test 2007-07-12 17:43:34 +00:00
Jani Taskinen
174c1c5329 - Removed unnecessary stuff 2007-07-12 16:08:26 +00:00
Ulf Wendel
33c87b15d8 1) Whitespace/CS
2) Playing with column aliases
2007-07-12 16:04:15 +00:00
Ulf Wendel
d649c2e820 Testing SELECT "a" AS "". This is nice to test strcmp() and similar... 2007-07-12 16:03:10 +00:00
Seiji Masugata
498c2e08f1 Synced mail function in mb_send_mail function(Escape mail.force_extra_parameters value). 2007-07-12 15:28:37 +00:00
Antony Dovgal
dc9d1c16a0 fix MINFO handler 2007-07-12 15:07:32 +00:00
Ulf Wendel
e8ed078f81 Blame me for not checking in a version that's been cleaned up with
regards to Whitespace/CS...
2007-07-12 14:24:53 +00:00
Ulf Wendel
2135a5b3f6 Whoever has hacked this function into ext/mysql, here's a "test" for it. 2007-07-12 14:23:56 +00:00
Ulf Wendel
9744d3f9a3 Checking the phpinfo() entries of ext/mysql 2007-07-12 14:22:47 +00:00
Ulf Wendel
d452938ee8 Adding test for mysql_list_tables() 2007-07-12 14:22:15 +00:00
Jani Taskinen
e0674ac629 - missing comma 2007-07-12 14:18:01 +00:00
Ulf Wendel
625c02c844 Checks if ext/mysql exposes all constants it should expose. 2007-07-12 14:01:12 +00:00
Ulf Wendel
2d1c3ec2c9 No skipping needed anymore, function is there even with mysqlnd. 2007-07-12 13:58:41 +00:00
Ulf Wendel
e6e029e399 A bit more verbose message in case of problems. It's been helpful to
debug a cross-server version issue.
2007-07-12 13:57:36 +00:00
Ulf Wendel
94e0e4c322 1) Whitespace/CS
2) Fixing [U]EXPECTF to be portable among different MySQL Server versions
2007-07-12 13:50:51 +00:00
Ulf Wendel
894e5c6a5b 1) Whitespace/CS
2) Added test for default link
2007-07-12 13:44:00 +00:00
Ulf Wendel
a6a5638dd3 1) Whitespace/CS
2) Added: skip test with mysqlnd, mysqlnd does not support this function
currently
2007-07-12 13:35:16 +00:00
Ulf Wendel
fd45bad4c8 1) Whitespace/CS
2) Added check for default connection
2007-07-12 13:31:27 +00:00
Ulf Wendel
3809493bd7 1) Whitespace/CS
2) Fixing [U]EXPECTF to accept whatever db/schema name gets used for the
test run
2007-07-12 13:27:26 +00:00
Jani Taskinen
c4e82d3cb9 MFB: fix warning 2007-07-12 12:12:30 +00:00
Jani Taskinen
c4e5bda83e - Fix invalid logic (plus made it possible to pass only integers to this) 2007-07-12 11:33:18 +00:00
Jani Taskinen
08c67fa3c4 - Added test for bug #41815 2007-07-12 11:07:29 +00:00
Ulf Wendel
0ccc7d618f 1) Whitespace/CS
2) Tiny check for default link added
2007-07-12 10:52:23 +00:00
Ulf Wendel
063987fed5 1) Whitespace/CS
2) Portability: don't expect any values and have them in the [U]EXPECTF,
if they will be available only with certain MySQL Server versions.
2007-07-12 10:47:00 +00:00
Dmitry Stogov
68845c6a83 Fixed bug #41961 (Ensure search for hidden private methods does not stray from class hierarchy). (robin_fernandes at uk dot ibm dot com) 2007-07-12 10:32:26 +00:00
Ulf Wendel
da36f2be2a 1) Whitespace/CS
2) One line added to test default connection
2007-07-12 10:30:03 +00:00
Ulf Wendel
78628dad2a 1) Whitespace/CS
2) Test mysql.default_socket only if we're using a socket to connect
2007-07-12 10:25:40 +00:00
Ulf Wendel
e58bb46329 Whitespace/CS only 2007-07-12 10:18:14 +00:00
Antony Dovgal
e13c58d14e fix ws, cs and folding 2007-07-12 10:04:42 +00:00
Antony Dovgal
a819499088 fix WS, CS and other S 2007-07-12 09:55:41 +00:00
Antony Dovgal
53c34ffb40 add new test 2007-07-12 09:29:50 +00:00
Antony Dovgal
469e93ef35 fix test 2007-07-12 09:26:28 +00:00
Dmitry Stogov
1f413bbc37 Namespaces 2007-07-12 09:23:48 +00:00
Antony Dovgal
86c819cede fix #41970 (call_user_func_*() leaks on failure) 2007-07-12 09:19:04 +00:00
79f68fd828 ChangeLog update 2007-07-12 01:31:33 +00:00
Jani Taskinen
71b3ea6971 - Enabled PHP_CHECK_CONFIGURE_OPTIONS (check for unknown configure options) 2007-07-11 23:13:19 +00:00
Jani Taskinen
4c3970500d - Changed all AC_ARG_* options to PHP_ARG_* options. 2007-07-11 23:10:46 +00:00
Jani Taskinen
dee01c13ad - Changed all AC_ARG_* options to PHP_ARG_* options and cleaned up some 2007-07-11 23:10:14 +00:00
Antony Dovgal
5a4d3c651b check PHP version only when enabled
and replace tabs with spaces
2007-07-11 22:15:44 +00:00