Commit Graph

21202 Commits

Author SHA1 Message Date
Dmitry Stogov
c9ecd0169a Fixed generation on DH publick key for given private key 2007-08-10 10:43:37 +00:00
Antony Dovgal
25af0b4382 MFB: Fixed bug #42117 (bzip2.compress loses data in internal buffer) 2007-08-10 09:00:42 +00:00
Antony Dovgal
edd76024a3 MFB: Fixed bug #42243 (copy() does not ouput an error when the first arg is a dir) 2007-08-10 08:58:12 +00:00
Antony Dovgal
a6c19f6ede MFB: Fixed bug #42261 (header wrong for date field) 2007-08-10 08:56:23 +00:00
Christopher Jones
c581da4b56 oci8: merge changes to build with Oracle Database 11g 2007-08-10 06:58:12 +00:00
Christopher Jones
eda449eeac pdo_oci: merge changes to build with Oracle Database 11g 2007-08-10 06:57:41 +00:00
Raghubansh Kumar
96fc4edc59 more new testcases for tempnam() function 2007-08-10 03:33:00 +00:00
Raghubansh Kumar
b71984f4bc New testcases for strtolower() and strtoupper() functions 2007-08-10 03:05:00 +00:00
Raghubansh Kumar
752ead40e2 More new testcases for copy() function 2007-08-10 02:58:50 +00:00
Johannes Schlüter
951ad867b6 - Write to the correct file... 2007-08-09 22:24:41 +00:00
Mattias Bengtsson
94bf93f531 -MFB: libgd #101, imagecreatefromgd can crash if gdImageCreate fails 2007-08-09 14:22:38 +00:00
Mattias Bengtsson
3b8fc04079 -MFB: libgd #94, imagecreatefromxbm can crash if gdImageCreate fails 2007-08-09 12:09:30 +00:00
Ulf Wendel
fb4967900d Same as for ext/mysqli tests: addition of a new environment variable
MYSQL_TEST_SKIP_CONNECT_FAILURE  which controls how to deal with connection
problems. If MYSQL_TEST_SKIP_CONNECT_FAILURE = false (default) connection
problems will make a test fail. If you set MYSQL_TEST_SKIP_CONNECT_FAILURE
to any value that evaluates to true in PHP, a test which cannot connect to
the database will be skipped.
2007-08-09 11:53:17 +00:00
Ulf Wendel
a166bd39ac I forgot those files when merging mysqlnd SVN and HEAD. Only required by
tests that test experimental features and are skipped by default that's why
I missed them.
2007-08-09 10:16:24 +00:00
Ulf Wendel
af91a4056a No need for an extra skip*.inc file, this check is done in just one place 2007-08-09 10:10:46 +00:00
Ulf Wendel
5846d6b84b More changes related to MYSQL_TEST_SKIP_CONNECT_FAILURE. 2007-08-09 10:01:20 +00:00
Ulf Wendel
112b742518 New tests (stubs?) for a few experimental (to be removed?) functions.
The tests will only be run if you set MYSQL_TEST_EXPERIMENTAL = 1.
2007-08-09 09:59:15 +00:00
Ulf Wendel
974935e6b8 Next set of files which now feature the new environment variable
MYSQL_TEST_SKIP_CONNECT_FAILURE which controls how connection problems
are handled: failure (MYSQL_TEST_SKIP_CONNECT_FAILURE = false, default)
or skip (MYSQL_TEST_SKIP_CONNECT_FAILURE = true)

Also, some minor tweaking of connection parameters in the tests.
2007-08-09 09:43:28 +00:00
Jani Taskinen
8b3c737889 - Fixed bug #42247 (ldap_parse_result() not defined under win32) 2007-08-09 08:42:31 +00:00
Ulf Wendel
1855a57471 Introducing new environment variable:
MYSQL_TEST_SKIP_CONNECT_FAILURE = false

Every test that needs a working MySQL connection now includes
skipifconnectfailure.inc. If MYSQL_TEST_SKIP_CONNECT_FAILURE evaluates
to true skipifconnectfailure.inc tries to establish a database
connection. If no connection can be opened, the test will be skipped.
In case of MYSQL_TEST_SKIP_CONNECT_FAILURE = false (default) an no
connection, a test who cannot establish a connection will fail.

So, if you have a buggy configuration or a server that is sometimes
not available, you can now decide if you want the tests to ignore this
and skip the test or to fail (MYSQL_TEST_CONNECT_FAILURE = false, default).

Other, minor tweaks:
  042.phpt - whitespace
  067.phpt - parse error in SKIPIF section fixed
2007-08-09 08:41:12 +00:00
Raghubansh Kumar
6cb89102e7 New testcases for tempnam() function 2007-08-09 03:35:22 +00:00
Johannes Schlüter
ab79c3dea9 - Fix build (patch by Ulf Wendel) 2007-08-08 14:52:40 +00:00
Raghubansh Kumar
8d87a8cf70 New testcases for fgetcsv() function 2007-08-08 13:15:01 +00:00
Raghubansh Kumar
34a7853c49 More testcases for fputcsv() function 2007-08-08 13:09:42 +00:00
Nuno Lopes
59f172e1e6 MFB: fix bug #41973 2007-08-08 11:38:32 +00:00
Jani Taskinen
f602af17b4 MFB: Fix bug #42233 2007-08-08 07:46:00 +00:00
Pierre Joye
6f7b46afbd - MFB: fix regressio introduced by #42222 2007-08-08 06:30:56 +00:00
Raghubansh Kumar
e2d9b55057 New testcases for fputcsv() function 2007-08-08 03:55:05 +00:00
Hannes Magnusson
330797ea73 - Fix isset/empty($ZipArchive->property)
- Add test
2007-08-06 21:59:11 +00:00
Christopher Jones
bf94c89a8c flush persistent connection after password change 2007-08-06 20:31:40 +00:00
Pierre Joye
ac3a73972a - MFB: #42222, forgot this one (thanks mattias) 2007-08-06 19:50:16 +00:00
Pierre Joye
0f55627dee - MFB: #42222, truncate the _default to the buffer size (was 200 since day #1, we don't need dynamic alloc here) 2007-08-06 19:13:05 +00:00
Jani Taskinen
f3c9b3ec86 Touch generated file 2007-08-06 18:30:53 +00:00
Jani Taskinen
117ea0d3d1 ws fix 2007-08-06 18:25:41 +00:00
Jani Taskinen
6646603725 MFB: fix compile warning (+ some ws fixes) 2007-08-06 18:20:30 +00:00
Rob Richards
ebd85732fa fix bug #42082 (NodeList length zero should be empty). (Hannes)
add and update tests
2007-08-06 16:21:45 +00:00
Andrey Hristov
de29322de4 Fix crashes with pconn in ext/mysql 2007-08-06 15:11:46 +00:00
Dmitry Stogov
a433f85ce1 Improved ext/openssl
. Added support for OpenSSL digest functions
  . Added support for OpenSSL cipher functions
  . Added access to internal values of DSA, RSA and DH keys
2007-08-06 08:43:43 +00:00
Jani Taskinen
def23a6e7d MFB: Test for bug #42208. Fix is not needed in HEAD, zend_parse_parameters is used here 2007-08-05 19:54:42 +00:00
Jani Taskinen
5735862a92 MFB (since Ilia is too lazy..): Fix bug #42135 2007-08-05 13:10:32 +00:00
Sara Golemon
6a0d08ae26 Bugfix#36492 Userfilters can leak buckets 2007-08-04 07:51:15 +00:00
Andrey Hristov
7186530157 Update CVS
- Fix BIT problem for BIT values represented with 5 bytes. Typo.
- Make it possible with an ini variable to switch off/on statistics
  collection.
- Compile-out debug checking of uneaten data from the line, when the
  build is release. According to callgrind this was eating some percentage.
2007-08-03 16:32:27 +00:00
Christopher Jones
6f58b504ad MFB: New oci8 test for oci_password_change() 2007-08-03 01:55:34 +00:00
Stanislav Malyshev
d4cc7daba2 MF5: fix for access control with .htaccess 2007-08-03 01:40:05 +00:00
Christopher Jones
88edc2cf95 Treat privileged oci_pconnect() as non-persistent 2007-08-02 22:49:58 +00:00
Christopher Jones
0f8ab9db14 Fix message grammar and capitalization 2007-08-02 19:37:30 +00:00
Christopher Jones
95461653da Bug #42173 (INTERVAL and TIMESTAMP type fixes) 2007-08-02 19:04:21 +00:00
Stanislav Malyshev
8db866bd55 fix win32 build 2007-08-02 00:04:05 +00:00
Christopher Jones
d9f25a2924 New test for error handling 2007-08-01 15:18:25 +00:00
Antony Dovgal
467b4569df an attempt to fix win32 build 2007-08-01 11:43:27 +00:00
Dmitry Stogov
5430582586 Fixed bug #42151 (__destruct functions not called after catching a SoapFault exception) 2007-08-01 10:39:49 +00:00
Johannes Schlüter
b5c28aef4e - Use a script to generate tokenizer data from zend_language_parser.h 2007-07-31 23:23:37 +00:00
Antony Dovgal
a2eef01a45 add test (thanks Chris!) 2007-07-31 21:11:22 +00:00
Antony Dovgal
c26725cc1a missing part of the fix for bug #42134 2007-07-31 21:08:38 +00:00
Antony Dovgal
ac1452b21f fix #42134 (oci_error() returns false after oci_new_collection() fails) 2007-07-31 19:19:39 +00:00
Rob Richards
6d0247ed7c fix bug #41833 (addChild() on a non-existent node, no node created, getName() segfaults) 2007-07-31 15:39:59 +00:00
Rob Richards
142356ba19 fix possible crash 2007-07-31 15:07:15 +00:00
Jani Taskinen
099f5966ef - Fix some lib vs. $PHP_LIBDIR issues. 2007-07-31 13:01:42 +00:00
Antony Dovgal
24c766b902 fix typo
it would be much better if Gentoo people send us this patch long ago instead of using their private patches.
2007-07-31 12:23:42 +00:00
Stanislav Malyshev
3592865320 sometimes c-client returns non-null entry with null host 2007-07-31 00:32:18 +00:00
Pierre Joye
322a68f726 - MFB:
- fix gd bug #102, < 0 means that no load are loaded, return false
 - add error code in the warning
2007-07-30 21:44:53 +00:00
Rob Richards
a1cf7cec92 allow user specified class to be returned from transformToDoc 2007-07-28 09:16:15 +00:00
Rob Richards
7fac5158d7 MFB: Fixed Bug #42112 (deleting a node produces memory corruption)
add test
2007-07-28 08:34:09 +00:00
Jani Taskinen
6287087e70 - Align help texts and added note about embedded not being available when
the MySQL native driver is used.
2007-07-27 01:09:18 +00:00
Jani Taskinen
a250d34000 I must be blind.. 2007-07-26 19:07:53 +00:00
Jani Taskinen
4323e38314 - copy-paste typo 2007-07-26 18:49:51 +00:00
Jani Taskinen
b0b1438882 - Fixed bug #42107 (sscanf broken when using %2$s type format parameters) 2007-07-26 15:23:31 +00:00
Jani Taskinen
f771450890 - Check also if ulong is available 2007-07-26 14:54:49 +00:00
Andrey Hristov
2a80356a52 Return to previous code 2007-07-26 14:40:18 +00:00
Jani Taskinen
931c9a0556 - ws + cs fixes 2007-07-26 14:30:08 +00:00
Jani Taskinen
b16daf597c fix typo 2007-07-26 14:29:03 +00:00
Raghubansh Kumar
6842c58737 file.inc : Added dumping of stat array in functions (compare_self_stat() & compare_stats() )
Smaller testcases for lstat_stat_variation[1-7].phpt files
2007-07-26 13:55:42 +00:00
Hannes Magnusson
15bac417cd Add arginfo 2007-07-26 13:19:22 +00:00
Jani Taskinen
f3c2a33f42 - Moved mysqnd to it's own directory: It is sort of an extension itself.
(Similar to what ext/libxml is..)
2007-07-25 23:47:33 +00:00
Dmitry Stogov
11c5577116 Fixed EOF handling in case of reading from file opened in write only mode. 2007-07-25 16:34:27 +00:00
Andrey Hristov
7bb46902f8 Alignment fixes for 64bit and fixing macroses 2007-07-25 12:42:00 +00:00
Hannes Magnusson
1eaf171d98 Show "wrong parameter count" error messages 2007-07-25 09:05:55 +00:00
Johannes Schlüter
610f70fcf5 - MFB: New ReflectionExtension::info() function to print the phpinfo() block
for an extension.
2007-07-24 23:16:47 +00:00
Hannes Magnusson
374e0a5d02 Fixed bug#42090 (json_decode causes segmentation fault) 2007-07-24 22:54:26 +00:00
Antony Dovgal
0209e41563 add PCRE_VERSION constant to ext/pcre 2007-07-24 22:34:17 +00:00
Antony Dovgal
f0cde2c03d namespace protection
GD uses the same variable, too.
2007-07-24 20:11:13 +00:00
Dmitry Stogov
cb27d5dbae Fixed test 2007-07-24 20:03:30 +00:00
Andrey Hristov
bb4b052c23 Don't use AC_CHECK_TYPES, as autoconf 2.13 is buggy, use an workaround. 2007-07-24 19:20:28 +00:00
Andrey Hristov
02b2d0a4ac Add missing file 2007-07-24 16:50:20 +00:00
Andrey Hristov
222174e23f Import of mysqlnd and ext/mysql + ext/mysqli patched to be built either
with libmysql or mysqld.

Use --with-mysql=mysqlnd --with-mysqli=mysqlnd to build with mysqlnd.
2007-07-24 16:13:26 +00:00
Jani Taskinen
3d06e9db7f - Added missing constants for MSG_EOR and MSG_EOF 2007-07-24 11:33:47 +00:00
Jani Taskinen
5dceae6f8f - Removed useless file 2007-07-24 11:15:29 +00:00
Andrey Hristov
cbba608856 MFB 2007-07-24 09:32:11 +00:00
Dmitry Stogov
08bbb3269b Fixed bug #41983 (Error Fetching http headers terminated by '\n') 2007-07-24 09:28:12 +00:00
Antony Dovgal
adf53be4ed fix test 2007-07-23 22:14:41 +00:00
Jani Taskinen
8eaa978e97 - Fixed str_pad() when passed huge negative pad_length 2007-07-23 13:27:34 +00:00
Ulf Wendel
9b035b58f5 Damn, Pierre is clever.
[14:35] <_jani_> nixnutz_: why don't you just commit everything in one go..?
[14:35] <_jani_> this "spamming" is getting quite boring..
[14:36] <Pierre> 20€/commit :)
2007-07-23 12:38:41 +00:00
Ulf Wendel
512f62a5a9 Tests for mysqli_stmt_send_long_data() 2007-07-23 12:36:06 +00:00
Ulf Wendel
613947afc6 Tests which verify that you really cannot clone any of the mysqli
objects. Technically it might be possible to tweak ext/mysqli and make
the objects cloneable - tough, we haven't checked in depth.

So, if one is interested, raise a discussion.
2007-07-23 12:34:09 +00:00
Ulf Wendel
fe8c5d1243 Tests that check mysqli_fetch_field(), mysqli_fetch_field_direct() and
retrieve metadata
2007-07-23 12:28:56 +00:00
Ulf Wendel
a1c14bfffd Tests for mysqli_fetch_object() 2007-07-23 12:28:12 +00:00
Ulf Wendel
16008bc577 Another nice new function that comes with mysqlnd: return all rows of
a result set in one array. This is handy if want to fetch all results and
pass the data directly to a template engine, for example. In this case
you save a loop.

1) Currently:
  $all_rows = array();
  while ($row = mysqli_fetch_assoc($res))
   $all_rows[] = $row;

2) With mysqli_fetch_all:
  $all_rows = mysqli_fetch_all($res, MYSQL_ASSOC)

Note: if you need the loop for processing each row, try variant 1) for
performance reasons.
2007-07-23 12:27:39 +00:00
Ulf Wendel
ff87d3ec5b Adding tests for a few new functions that come with mysqlnd:
mysqli_stmt_get_result() - create mysqli_result set from stmt
  mysqli_get_cache_stats() - mysqlnd internal status/stats
  mysqli_get_client_stats() - mysqlnd internal status/stats/
2007-07-23 12:24:02 +00:00
Ulf Wendel
8e85715547 Playing with background processing: parent and child process fetching data
from the "same" result handle and checking with each other if the fetched
rows are the same or not. Inspired by a bug report. There seem to be really
people doing this...
2007-07-23 12:20:25 +00:00
Ulf Wendel
8d61b27811 Tests for mysqli_fetch_assoc(), mysqli_fetch_array(), mysqli_fetch_row() 2007-07-23 12:16:55 +00:00