Commit Graph

25795 Commits

Author SHA1 Message Date
Tjerk Anne Meesters
e29302576c Reverted changes in connect.inc based on Ulf's feedback
- Moved the ini_set() entries into a separate script 'setupdefault.inc'
- Let mysql_affected_rows and mysql_insert_id test cases use the newly created script

With the ini_set() statements inside connect.inc, some test cases would be forced to 'undo' them in order to test other scenarios.

Tested on all three dev lines with and without passing db credentials. No changes detected.
2011-09-12 14:35:45 +00:00
Ulf Wendel
019e96a7f6 Fix typo. 2011-09-12 13:55:28 +00:00
Popa Adrian Marius
f86bd3407b fix gcov Warning: ibase_drop_db(): lock time-out on wait transaction object 2011-09-12 13:43:42 +00:00
Ulf Wendel
27c73aa542 Minor issue. Seems to fail the same way on various PHP + MySQL combinations. Setting XFAIL until we fix it. 2011-09-12 13:39:57 +00:00
Hannes Magnusson
75c4d6f888 Allow replacement to be any scalar value 2011-09-12 13:21:57 +00:00
Ulf Wendel
c4de2c8654 Hits libmysql/MySQL bug, works with mysqlnd 2011-09-12 13:14:16 +00:00
Pierre Joye
43d20bca91 - revert incorrect fix introduced in r316528 2011-09-12 12:59:52 +00:00
Ulf Wendel
496d6d45e9 Those will fail with MySQL 5.5. Running them because they have unveiled a crash, which has been fixed already. Setting to XFAIL, need to be decide if and/or how the functionality shall be supported. 2011-09-12 12:14:56 +00:00
Hannes Magnusson
5e661cf904 Ensure we are working with strings here 2011-09-12 11:44:55 +00:00
Popa Adrian Marius
ddac8c1789 fix test 006 for firebird driver 2011-09-12 09:56:45 +00:00
Hannes Magnusson
e43c21e53a Fixed issues when streams were closed before curl read/write from them, or cleaning
Closing a original handle after copying it now no longer cleans up all resources (fixes missing CURLOPT_POSTFIELDS values among others)
2011-09-12 09:16:04 +00:00
Ulf Wendel
8ed1dc2fa9 Bug #55653 2011-09-09 12:12:08 +00:00
Hannes Magnusson
0cac42b482 Being smart and cleanup/rename/modify tests seconds before committing isn't very smart. 2011-09-09 08:28:57 +00:00
Hannes Magnusson
23010d52ad Merge tests from trunk 2011-09-09 08:14:04 +00:00
Christopher Jones
4840a4a28b Update SKIPIFs for test portability 2011-09-08 20:13:32 +00:00
Christopher Jones
e77138f7ae Fix skipifs 2011-09-08 17:52:45 +00:00
Christopher Jones
1c809df001 Fix skipifs to match other tests for the case when connection fails 2011-09-08 17:40:15 +00:00
Hannes Magnusson
33bee161f6 Fixed bug#54798 Segfault when CURLOPT_STDERR file pointer is closed before calling curl_exec 2011-09-08 14:37:18 +00:00
Ferenc Kovacs
e1357bdbd1 skip these tests if can't connect to mysql 2011-09-08 11:30:58 +00:00
Pierre Joye
255913f5f4 - skip if no hash 2011-09-08 10:00:47 +00:00
Hannes Magnusson
41db75ccbe Fix the path to the .pem 2011-09-08 09:27:47 +00:00
Christopher Jones
19d13e2521 Use unique object names to reduce potential clashes when testing in parallel 2011-09-07 19:19:00 +00:00
Rasmus Lerdorf
d8a0b1a9e3 This test was added to verify that bug 39322 was fixed, which the test
does test for and this works. However, it consistently failed because
it relied on a SIGHUP not terminating a sh -c /usr/bin/nohup sleep 50
process which doesn't work because the SIGHUP goes to the sh process
not the nohup'ed sleep process. So, I have sped up the test and removed
the nohup and instead of trying to SIGHUP I am just doing the equivalent
of a kill 0 on it to verify that the resource sticks around.
2011-09-07 18:09:34 +00:00
Hannes Magnusson
565cf8b76a Fix errormessage 2011-09-07 13:47:31 +00:00
Hannes Magnusson
a6c07ae0d3 Fix cleanup routines 2011-09-07 12:05:19 +00:00
Pierre Joye
618d638898 - skip on win, diff TZ format 2011-09-07 11:26:59 +00:00
Hannes Magnusson
631055c459 Update skipif 2011-09-07 10:39:55 +00:00
Hannes Magnusson
c038ac2251 Sync tests between branches and fix the getcontent test 2011-09-07 10:38:53 +00:00
Hannes Magnusson
d80adbcc93 Update skipif message 2011-09-07 10:34:58 +00:00
Pierre Joye
4426bfee51 - force LF (svn prop and config) 2011-09-07 10:14:18 +00:00
Pierre Joye
34eebd4f58 - fix test for OS where dir sep is \ 2011-09-07 09:19:28 +00:00
Pierre Joye
8fca015947 - fix test for OS where dir sep is \ 2011-09-07 09:03:07 +00:00
Pierre Joye
1a166b2100 - add skipif for dom 2011-09-07 08:12:08 +00:00
Xinchen Hui
16d0023daf fix skipif description 2011-09-07 00:59:10 +00:00
Xinchen Hui
0f672ac0ba fixed typo 2011-09-07 00:56:52 +00:00
Andrey Hristov
fd4fc39dc9 Fix problems with the unbuffered set detection, for libmysql, which resulted
in always true. Thanks Stas.
2011-09-06 19:52:19 +00:00
Pierre Joye
c74679be0a - fix #55622, mem corruption on large input 2011-09-06 17:41:08 +00:00
Ulf Wendel
58e167974c Fixing SKIPIF 2011-09-06 16:39:55 +00:00
Johannes Schlüter
9554e24547 - Fix bug #55609 (mysqlnd cannot be built shared)
# This adds an option --enable-mysqlnd to explicitly built mysqlnd, like any
# other extension it can be used with =shared to build mysqlnd shared;
# mysqlnd will implicitly enabled when requested from another extension
2011-09-06 16:38:22 +00:00
Ulf Wendel
1ffe46c020 Fixing SKIPIF 2011-09-06 16:37:45 +00:00
Ulf Wendel
78b2f1c488 Fixing SKIPIF fatal error. 6.0 is history, thus SKIPIF might need further updates? 2011-09-06 16:30:53 +00:00
Ulf Wendel
cc24c30307 More parenthesis, credits to Nikita Popov 2011-09-06 16:13:03 +00:00
Pierre Joye
8e330affd6 - useless skipif 2011-09-06 15:49:28 +00:00
Ulf Wendel
661a69b873 BORK hunting - Fixing SKIPIF 2011-09-06 14:47:57 +00:00
Ulf Wendel
e21ea5e7ce Fix SKIPIF 2011-09-06 13:57:03 +00:00
Ulf Wendel
79b605a89b Fix SKIPIF 2011-09-06 13:50:45 +00:00
Ulf Wendel
85e6b8141d Prevent Notice 2011-09-06 13:39:46 +00:00
Ulf Wendel
64cca9fb95 Reverting to proper --INI-- section usage. Improve SKIPIF to skip test if open_basedir setting is too restrictive during test run for whatever reason. 2011-09-06 12:58:01 +00:00
Pierre Joye
1e30a4ecb0 - use only zlib function and reported the failure with base64 in #55620 2011-09-06 12:30:17 +00:00
Florian Anderiasch
c5741472b0 MFH: Fixed ext/sockets/tests/socket_strerror.phpt
So it seems a missing ) killed the test.
2011-09-06 11:15:23 +00:00
Xinchen Hui
1159cd2002 move it to right place 2011-09-06 09:45:21 +00:00
Xinchen Hui
df2504b0ff Add skipif 2011-09-06 09:29:04 +00:00
Pierre Joye
423816ef64 - move it to the right place 2011-09-06 09:23:10 +00:00
Xinchen Hui
3d107d07ee Added skipif 2011-09-06 09:22:06 +00:00
Pierre Joye
f15401086b - fix skipif msg 2011-09-06 09:20:14 +00:00
Xinchen Hui
30d1410817 Added skipif 2011-09-06 09:19:46 +00:00
Xinchen Hui
3901f5abb8 Added skipif 2011-09-06 09:17:12 +00:00
Xinchen Hui
13eb205d6c add skipif 2011-09-06 08:11:37 +00:00
Pierre Joye
84954e1869 - add skipif 2011-09-06 07:49:31 +00:00
Pierre Joye
09e3a1c2de - fix test 2011-09-06 07:47:20 +00:00
Pierre Joye
e240c51632 - skip on win 2011-09-06 07:32:37 +00:00
Pierre Joye
b660f32dab - add skipif 2011-09-06 07:29:59 +00:00
Pierre Joye
9fa90f8a90 - add skipif 2011-09-06 07:28:38 +00:00
Pierre Joye
f438a87d90 - use something we know it exists... 2011-09-06 07:26:05 +00:00
Pierre Joye
c97a56e77f - skip on win, name.. name. are not valid names 2011-09-06 07:23:20 +00:00
Pierre Joye
9d33b167af - add skipif 2011-09-06 07:09:56 +00:00
Pierre Joye
9a6b6f3dc7 - add skipif 2011-09-06 06:57:53 +00:00
Pierre Joye
8f7fab9358 - add skipif 2011-09-06 06:52:26 +00:00
Pierre Joye
0295d0d1aa - add skipif 2011-09-06 06:50:56 +00:00
Pierre Joye
17f78b92c4 - add skipif 2011-09-06 06:47:12 +00:00
Pierre Joye
8ab88f2e72 - add skipif 2011-09-06 06:44:59 +00:00
Pierre Joye
7e9bc5f70b - add skipif 2011-09-05 19:59:42 +00:00
Ulf Wendel
d6e15cc517 No more test failure for libmysql, http://news.php.net/php.internals/55210 2011-09-05 16:24:40 +00:00
Andrey Hristov
3a510c616d missing from previous commit for #55582 2011-09-05 15:37:58 +00:00
Andrey Hristov
13c5106f43 Fix for Bug #55582 mysqli_num_rows() returns always 0 for unbuffered, when mysqlnd is used 2011-09-05 15:29:45 +00:00
Shein Alexey
491df98386 Reduced timeout in this test to 1ms, no need to wait further. 2011-09-05 14:43:08 +00:00
Pierre Joye
5d62cd1530 - add skipif 2011-09-05 13:52:24 +00:00
Pierre Joye
07fae45eb7 - add skipif 2011-09-05 13:41:01 +00:00
Pierre Joye
af203fc7c4 - close the stream before removing the file (win and other system may lock it) and use test dir for tmp data 2011-09-05 13:31:13 +00:00
Pierre Joye
3c3fa89bf5 - stupid me. 2011-09-05 13:06:51 +00:00
Pierre Joye
60a0348ccc - disable on win 2011-09-05 13:05:28 +00:00
Pierre Joye
8acede547d - disable on win 2011-09-05 13:04:12 +00:00
Pierre Joye
df4515dec8 - other hostname can be defined or returned first 2011-09-05 12:34:55 +00:00
Hannes Magnusson
ddb7740944 typo 2011-09-05 12:00:24 +00:00
Hannes Magnusson
c6f9556f37 Fix the test in 5.4 and trunk.
older libraries will emmit error here, while new won't. So lets just suppress it rather then making the test uselessly fail for random people.
2011-09-05 11:07:38 +00:00
Pierre Joye
a65e04be53 - not used anymore, one version to rule them all 2011-09-05 11:00:52 +00:00
Shein Alexey
fae3000d44 Make the test faster, what was done:
1) replaced multiple htmlentities calls with one call to get_html_translation table since they share the same code internally
2) reduced the upper range of the "for" loop to 0x2710 (10000), according to http://www.w3.org/TR/html4/sgml/entities.html it's enough
3) placed additional check to make sure all entities from get_html_translation_table were checked in the test
2011-09-05 11:00:14 +00:00
Hannes Magnusson
a1ecf8c887 Fix test to use microtime() as time() doesn't always catchup fast enough :] 2011-09-05 10:55:07 +00:00
Hannes Magnusson
cd8f903d7e Fix test, one skipif is enough 2011-09-05 10:30:41 +00:00
Stanislav Malyshev
cc9483f19e fix tests 2011-09-05 00:49:03 +00:00
Gustavo André dos Santos Lopes
dbe8c7c4fa - Fixed bad xor in signed types due to integer promotion.
- Replaced undefined signed overflow with char -> unsigned char conversion.
2011-09-05 00:39:39 +00:00
Gustavo André dos Santos Lopes
cc45ce4586 - Fixed bug #55576: Cannot conditionally move uploaded file without race
condition.
2011-09-04 23:00:47 +00:00
Pierre Joye
d7be9cf675 - add skipif 2011-09-04 22:21:58 +00:00
Pierre Joye
c70b78c445 - skip on win, TZ cannot be set using putenv at runtime 2011-09-04 22:04:42 +00:00
Pierre Joye
c3380e42c8 - skip on win, TZs differ with strftime 2011-09-04 21:59:27 +00:00
Pierre Joye
8d0096e2d9 - unify warning between win and unix and enable test 2011-09-04 21:48:22 +00:00
Pierre Joye
9ef72e259b - fix test on win, does not use putenv to set the TZ but date_default_timezone_set (should be the case on all platforms actually...) 2011-09-04 21:40:22 +00:00
Pierre Joye
e0792c2590 - wrong variable used (ended as non initiazed usage) 2011-09-04 16:33:51 +00:00
Tjerk Anne Meesters
7170a996c5 Patch to run two more mysql test cases that would usually be skipped.
Replaced skipifdefaultconnectionfailure.inc by three additional ini_set() statements in connect.inc for the default connection settings

Patch also includes a typo in connect.inc concerning mysql.default_socket
2011-09-04 14:21:27 +00:00
Ferenc Kovacs
1313220640 These regexes don't fail under the new backtrack limit, so lower it just for the test to check the failure. 2011-09-04 13:27:19 +00:00
Christopher Jones
43e4d8cade gcov test fixes 2011-09-02 22:19:03 +00:00
Ferenc Kovacs
c6d59bd2fa pass an absolute path for the php binary to proc_open, without this the test would fail if ran with a relative TEST_DEV_EXECUTABLE 2011-09-02 20:28:39 +00:00
Shein Alexey
920fa567bd Removed old (< 5.3) version of test and cleaned up the actual version. 2011-09-02 17:41:39 +00:00
Andrey Hristov
ab99790eca Fix for Bug #54158 MYSQLND + PDO MySQL requires #define MYSQL_OPT_LOCAL_INFILE
and a bunch of other small preprocessor fixes
2011-09-02 13:53:41 +00:00
Ulf Wendel
b23baaf0fc Coverage for bug#54704, of which I think it is bogus, thus no dedicated test. 2011-09-02 13:35:17 +00:00
Andrey Hristov
e35e394a79 fix message 2011-09-02 12:59:32 +00:00
Andrey Hristov
d96e924b25 function rename to comply with the schema of other callbacks 2011-09-02 11:22:41 +00:00
Ulf Wendel
864f8106be Hopefully, this is an even better way to check for InnoDB support as of MySQL 5.6.1 2011-09-02 11:06:51 +00:00
Ulf Wendel
248a9a7f4d As of MySQL 5.6.1 the server variable have_innodb is no more. Updating InnoDB check... 2011-09-02 10:38:51 +00:00
Ulf Wendel
65a3b6e0bb MySQL 5.6 update 2011-09-02 09:27:23 +00:00
Ulf Wendel
ec4eb7ab17 Check for LOAD DATA support during SKIPIF 2011-09-01 16:35:13 +00:00
Ulf Wendel
286d8afda9 Fixing error handling. Skip if load data is not allowed 2011-09-01 15:45:47 +00:00
Ulf Wendel
afb0cce4c9 Can't reproduce the server has gone away messages, Andrey. Please, have a look. I tried MySQL 5.1, 5.5 and 5.6. 2011-09-01 15:25:15 +00:00
Ulf Wendel
46910fd722 Fix test. First element within the parantheses is a SQL status code. Should please gcov 2011-09-01 14:04:52 +00:00
Christian Stocker
e1813b69c5 Merge from Trunk
simplexml->query returns empty array if no nodes were found
and false if libxml thinks the xpath-expression was invalid.
Behaves now the same like DomXPath and fixes Bug #48601
Adjusted a test to reflect that change
2011-09-01 13:42:45 +00:00
Ulf Wendel
3c15d50c80 Fixing tests debug output 2011-09-01 13:37:49 +00:00
Ulf Wendel
3eb3eb406e Check if MySQL server supports SSL and, if using mysqlnd, check if PHP streams will support SSL 2011-09-01 13:17:16 +00:00
Ulf Wendel
80ec77df04 Simplify mysqlnd debug trace marginally for debugging 2011-09-01 11:48:18 +00:00
Ulf Wendel
04b6ce21d2 Hack around http://bugs.mysql.com/62320 2011-09-01 11:27:14 +00:00
Matteo Beccati
d66630f625 Fixed test randomly failing due to different error messages. Also added a skip
section in case "fakeURL" resolves to an IP address, as some empty error
messages and HTML can be seen in the reports
2011-09-01 00:45:56 +00:00
Johannes Schlüter
48c69c378a - Change PDO_oci connection defaults to match Oracle XE defaults, higher chance
to work out of the box
2011-08-31 23:42:04 +00:00
Matteo Beccati
953b10c59c Fixed test. Apparently it was already fixed on PHP_5_3 98% of the cases and
the fix wasn't ported to trunk/PHP_5_4. However the very same test was failing
on my FreeBSD 6.2 box, that appears to also decode the "ks_c_5601-1987" parts,
so I've made the test more generic.
2011-08-31 22:38:20 +00:00
Matteo Beccati
f4e100e47f Fixed false positive failure on gcov 2011-08-31 22:12:53 +00:00
Tjerk Anne Meesters
323ee1fe4c Fixed expect format to ignore the textual error message from readlink().
Bug #55555
2011-08-31 18:26:23 +00:00
Andrey Hristov
fa8a1c387a Fix valgrind error (sending of initialized bytes over the network).
When the compression was successful the compressed data + uninitialized data
at the end was sent to the server, because the length of the compressed payload
wasn't correctly calculated (actually the length of the uncompressed payload as assumed).
However, the uncompress() function has internally the length of the real payload and skips
the binary trash at the end - thus no data damage occurs!
2011-08-31 18:18:23 +00:00
Johannes Schlüter
c25f0424c8 - Update PDO_mysql error mapping 2011-08-31 15:46:07 +00:00
Johannes Schlüter
262cc2f37a - Be less restrictive on the SQL state, some server versions might fool us 2011-08-31 15:25:18 +00:00
Ulf Wendel
c05bfdf490 Please, whenever changing the mysqli API update the tests. Don't wait for me to catch up. 2011-08-31 13:59:28 +00:00
Ulf Wendel
a7500f1c81 New utility function to check for '[1148] The used command is not allowed with this MySQL version' during SKIPIF 2011-08-31 13:50:58 +00:00
Ulf Wendel
4c3115a011 Check if server supports LOAD DATA LOCAL INFILE to catch [1148] The used command is not allowed with this MySQL version during SKIPIF 2011-08-31 12:58:25 +00:00
Johannes Schlüter
1cb8c01f0d - Fix Bug #55550 mysql.trace_mode miscounts result sets,
fixes ext/mysql/tests/mysql_deprecated_api.phpt
2011-08-31 11:11:08 +00:00
Christian Stocker
bbecdf57d3 fix xsl tests 2011-08-31 09:16:04 +00:00
Matteo Beccati
18b8a3bcb7 Fixed a few false positives on gcov for ext/pgsql 2011-08-30 14:01:03 +00:00
Hannes Magnusson
850d865551 Add skipifs for bug#54971 (patch by datibbaw@) 2011-08-30 13:46:24 +00:00
Hannes Magnusson
a84c667e0e Fixed bug#48476 2011-08-30 13:41:57 +00:00
Pierre Joye
63fa1fb1ca - ws 2011-08-30 05:44:37 +00:00
Arpad Ray
a6a08dc322 Fixed bug #55366: keys lost when using substr_replace an array 2011-08-29 21:35:28 +00:00
Hannes Magnusson
e481f05470 fixed bug #55267 - session_regenerate_id fails after header sent even if session.use_cookies = 0 2011-08-29 21:20:41 +00:00
Derick Rethans
9d504da334 - Updated to version 2011.9 (2011i) 2011-08-29 16:37:56 +00:00
Hannes Magnusson
e723c7631c Fixed bug#53872 (internal corruption of phar) 2011-08-29 16:05:45 +00:00
Hannes Magnusson
269724ebcc Whopsy, this change in 5.4, not 5.3 2011-08-29 14:27:17 +00:00
Hannes Magnusson
9e20746611 Fixed bug#52013 (Unable to decompress files in a compressed phar) 2011-08-29 14:19:54 +00:00
Hannes Magnusson
abbf8be0d6 The Phar class extends RecursiveDirectoryIterator, which has changed the way it ensures its ctor is called 2011-08-29 14:17:41 +00:00
Christian Stocker
5250f01d15 fix xsl date tests 2011-08-29 11:44:30 +00:00
Rasmus Lerdorf
8348d96656 The link error on an out-of-sync command doesn't start with 0
uwe/andrey please double-check
2011-08-29 06:47:07 +00:00
Rasmus Lerdorf
78a46b87e3 Fix another broken test. root can read 0200 files. 2011-08-29 06:19:40 +00:00
Andrey Hristov
9756f766b6 fix valgrind warnings in debug builds 2011-08-26 12:14:31 +00:00
Shein Alexey
6feb8cb74b Fixed failed test to take into account printed warnings like in 5.4 and trunk branches. 2011-08-24 12:25:30 +00:00
Xinchen Hui
344136e8e9 Apply r315270 to 5.3
Fixed test script failed when host mysql doesn't listen on 3306
Fxied test script failed due to mysql_pconnect trigger a warning
2011-08-24 08:00:23 +00:00
Daniel Convissor
7473a889ec Fix differences in some sub() results that were causing tests to fail. 2011-08-23 16:40:19 +00:00