Commit Graph

26021 Commits

Author SHA1 Message Date
Gustavo André dos Santos Lopes
dc32339c33 - Use our external entity loader only in the context of a PHP request. 2011-09-02 05:14:32 +00:00
Daniel Convissor
d8a41ee031 Make test work with database other than "test". 2011-09-01 19:07:13 +00:00
Christopher Jones
83ee110360 Prevent the magic quotes fatal error causing a diff 2011-09-01 19:01:37 +00:00
Ulf Wendel
32d69a669e Check for LOAD DATA support during SKIPIF 2011-09-01 16:35:13 +00:00
Ulf Wendel
c1370c2443 Fixing error handling. Skip if load data is not allowed 2011-09-01 15:45:47 +00:00
Ulf Wendel
b32a8d7a4d 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
83551a71c4 Fix test. First element within the parantheses is a SQL status code. Should please gcov 2011-09-01 14:04:52 +00:00
Ulf Wendel
25591bd73e Fixing tests debug output 2011-09-01 13:37:49 +00:00
Ulf Wendel
80518dc2f4 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
Johannes Schlüter
f90bead78a - Fix TSRM build 2011-09-01 12:04:54 +00:00
Ulf Wendel
5639fc846d Simplify mysqlnd debug trace marginally for debugging 2011-09-01 11:48:18 +00:00
Ulf Wendel
9e79833943 Hack around http://bugs.mysql.com/62320 2011-09-01 11:27:14 +00:00
Matteo Beccati
d2621f92b9 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
7a39930796 - 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
e9e2357436 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
c0e08c34df Fixed false positive failure on gcov 2011-08-31 22:12:53 +00:00
Johannes Schlüter
7d25510b1b - Register extensions using mysqlnd (mysql, myslqi, pdo_mysql) with mysqlnd 2011-08-31 20:30:08 +00:00
Boris Lytochkin
86b563ea0f tune text align 2011-08-31 20:16:56 +00:00
Boris Lytochkin
d38cb4aa1e test coverage for SNMP::ERRNO_MULTIPLE_SET_QUERIES 2011-08-31 19:45:45 +00:00
Tjerk Anne Meesters
bc7942adb5 Fixed expect format to ignore the textual error message from readlink().
Bug #55555
2011-08-31 18:26:23 +00:00
Andrey Hristov
12a4dcf5dc 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
878708994d - Update PDO_mysql error mapping 2011-08-31 15:46:07 +00:00
Johannes Schlüter
b3c3d35b9f - Be less restrictive on the SQL state, some server versions might fool us 2011-08-31 15:25:18 +00:00
Ulf Wendel
6e2664ee88 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
9c7ad1b962 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
Rui Hirokawa
3826549770 MFH: added alias for *-mobile encodings. 2011-08-31 13:19:03 +00:00
Ulf Wendel
d36c1e5e9b 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
Christian Stocker
13fa5542f7 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-08-31 11:44:22 +00:00
Johannes Schlüter
0d0e6cdb17 - 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
6873ef7055 - Set an empty string and avoid warnings and stopping of the transformation process
when a php function can't be called.
- Fixed tests.
2011-08-31 09:14:08 +00:00
Christian Stocker
c1d92d7925 fixed libxml tests 2011-08-31 08:58:12 +00:00
Boris Lytochkin
3aa6f31abd more tuning based on discussion in FR #40816:
* parse all OIDs earlier, detect all wrong OIDs before any query
   is made (GET-operations)
 * introduce ERRNO_MULTIPLE_SET_QUERIES:
    warn if request contains more OIDs than max_oids and SET operation
    (and type&value checks) will be done in chunks.
fix set method when request contains more OIDs than max_oids (2nd and
 subsequent chunk were ignored)
2011-08-31 08:36:22 +00:00
Rasmus Lerdorf
595f2e71ec Since we are creating this csv file locally this should obviously
be a a LOCAL infile here for this to work reliably. For robustness
this should probably have a check for the local-infile server 
setting as well.
2011-08-31 07:43:58 +00:00
Stanislav Malyshev
c268811b01 fix strptime tests for mac 2011-08-31 07:34:07 +00:00
Rasmus Lerdorf
8b4ac6bb8f Fix test. I have no idea why the test author didn't expect to get back
latin2 when the test is setting it to latin2 here. Both PHP and MySQL
are doing the right thing here.
2011-08-31 07:19:20 +00:00
Stanislav Malyshev
9d52e9b15f test fixes on Darwin 2011-08-31 07:10:17 +00:00
Gustavo André dos Santos Lopes
49323ad447 - Fixed test htmlentities15.phpt. 2011-08-31 06:32:05 +00:00
Gustavo André dos Santos Lopes
5b544394c4 - Fixed tests when run from outside their directory. 2011-08-31 06:23:24 +00:00
Gustavo André dos Santos Lopes
72e35ba476 - html_tables.h regeneration. 2011-08-31 05:47:19 +00:00
Gustavo André dos Santos Lopes
79bb42548d - Less GCC warnings; code less readable, yay!
- Fixed html_tables.h generaration in 64-bit archs.
- Closes bug #55394 - Patch to suppress initialization warnings in html.c
#signed/unsigned mismatches for another day
#regenerated tables on another commit
2011-08-31 05:45:02 +00:00
Stanislav Malyshev
cd8202694c fix tests 2011-08-31 04:24:48 +00:00
Boris Lytochkin
1c88dcf39f merge from trunk:
set ERRNO_OID_PARSING_ERROR on OID parse error
2011-08-30 14:24:00 +00:00
Matteo Beccati
238a51ec6e Fixed a few false positives on gcov for ext/pgsql 2011-08-30 14:01:03 +00:00
Hannes Magnusson
d972f636c9 Add skipifs for bug#54971 (patch by datibbaw@) 2011-08-30 13:46:24 +00:00
Hannes Magnusson
a6e5d309db Fixed bug#48476 2011-08-30 13:41:57 +00:00
Pierre Joye
4bd71a6c4f - ws 2011-08-30 05:44:37 +00:00
Gustavo André dos Santos Lopes
7bd505021c - Turns out the external entity loader is not a per-thread global but a true
global. Changed code accordingly; however, applications that embed PHP and
  also use libxml2 may be affected negatively.
2011-08-30 01:08:22 +00:00
Arpad Ray
c8de01fef8 Expose session status via new function, session_status (Req #52982) 2011-08-29 21:29:26 +00:00
Hannes Magnusson
7746cf83d9 fixed bug #55267 - session_regenerate_id fails after header sent even if session.use_cookies = 0 2011-08-29 21:20:41 +00:00
Arpad Ray
0e3b5b137c Fixed bug #55366: keys lost when using substr_replace an array 2011-08-29 20:38:52 +00:00