Commit Graph

39173 Commits

Author SHA1 Message Date
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
Ulf Wendel
7432e6f873 Tests for mysqli_connect(), mysqli_real_connect(), mysqli_connect_errno(),
mysqli_connect_error()
2007-07-23 12:15:20 +00:00
Ulf Wendel
c41dc41f64 Tests that deal with mysqli_set_local_infile_handler() and mysqli_set_local_infile_default() 2007-07-23 12:13:15 +00:00
Ulf Wendel
937962ebe6 Adding new tests that check the interface of the classes exported by mysqli 2007-07-23 12:11:38 +00:00
Ulf Wendel
1884a16d01 Primarily whitespace/CS - synching with mysqlnd SVN repository 2007-07-23 12:04:19 +00:00
Jani Taskinen
7bfd857fa1 MFB: Fixed "Floating point exception" inside wordwrap() 2007-07-23 11:47:44 +00:00
Jani Taskinen
6b7c17e222 fix descriptions 2007-07-23 10:45:53 +00:00
Raghubansh Kumar
d4b7248e8a More new testcases for glob() 2007-07-23 10:45:11 +00:00
Jani Taskinen
0a625249c3 fix test descriptions 2007-07-23 10:44:04 +00:00
Antony Dovgal
9f46c89c3b more tests 2007-07-23 09:14:28 +00:00
Dmitry Stogov
16fa4dcbf7 Fixed wrong expectation 2007-07-23 08:57:47 +00:00
Dmitry Stogov
a53d148b7e Fixed rename() in ZTS to allow renaming of symbolic links;
Consistent handling of trailing slash
2007-07-23 08:57:20 +00:00
Ulf Wendel
307d9364ab Whitespace (space to tab)/CS
With this commit the MySQL internal mysqlnd set of ext/mysql tests is in
sync with HEAD. It's likely that php.net/HEAD fails on quite some tests.
Using ext/mysql from the MySQL internal mysqlnd SVN there should be zero
failures. Merging the MySQL internal mysqlnd SVN into HEAD will happen
soon so that we get a bug free version on php.net in the near future.
2007-07-23 07:51:37 +00:00
Raghubansh Kumar
c06a7d5ffd New testcases for glob() function 2007-07-23 05:25:19 +00:00
db353308c8 ChangeLog update 2007-07-23 01:31:25 +00:00
Hannes Magnusson
8bff918046 MFB: Avoid endless loop 2007-07-23 01:21:04 +00:00
Jani Taskinen
993f77ef9d - Fixed bug #21197 (socket_read() outputs error with PHP_NORMAL_READ) 2007-07-22 23:00:14 +00:00
Jani Taskinen
08b144f722 WS fix 2007-07-22 22:46:52 +00:00
Jani Taskinen
4e921b7ea6 MFB: sockepair is not always available 2007-07-22 22:17:51 +00:00
Raghubansh Kumar
e5a2101c2a More new testcases for fread() function 2007-07-22 17:38:48 +00:00
Raghubansh Kumar
00ecf433a6 New testcases for fread() functions 2007-07-22 17:30:27 +00:00
Raghubansh Kumar
7c205bb294 smaller testcases for stat() function on Windows 2007-07-22 12:32:45 +00:00
Raghubansh Kumar
3f04550eea New testcases for ftruncate() function 2007-07-22 12:30:53 +00:00
Raghubansh Kumar
995caaf5ba fix tests 2007-07-22 12:28:31 +00:00
0131d3341e ChangeLog update 2007-07-22 01:31:31 +00:00
Raghubansh Kumar
c4e10a6be1 New testcases for umask() function 2007-07-21 18:18:23 +00:00
Raghubansh Kumar
aeac0426f5 New testcases for lstat() and stat() functions 2007-07-21 17:27:45 +00:00
Raghubansh Kumar
cde94cb7b1 New testcases for is_file() function 2007-07-21 17:25:59 +00:00
Raghubansh Kumar
e889f297f3 New testcases for is_dir() function 2007-07-21 17:24:29 +00:00
Raghubansh Kumar
e41c15f71e New testcases for fseek(), ftell() & rewind() functions 2007-07-21 17:22:32 +00:00
Raghubansh Kumar
edad34bd15 New testcases for fflush() function 2007-07-21 17:19:27 +00:00
Derick Rethans
eb54bbdd5c - Allow the use of a user defined template.rc file to override the
default ones. This makes it possible to include the extension's version
  inside the version properties of the generated extension DLL instead
  of the PHP version the extension is build against.
2007-07-21 11:24:36 +00:00
Raghubansh Kumar
75ad7fa7db New testcases for fwrite(), fgetc() and fgets() functions 2007-07-21 08:01:25 +00:00
Sara Golemon
b1bc911cee Add support got zend_class_entry->get_static_method() and matching __callStatic() userspace method @doc 2007-07-21 05:27:07 +00:00
Jani Taskinen
562a0629e4 - Fix compile warnings 2007-07-21 01:41:55 +00:00
f8b56530b9 ChangeLog update 2007-07-21 01:31:34 +00:00
Jani Taskinen
b0bbc60209 - Fix compile warnings 2007-07-21 01:23:37 +00:00
Jani Taskinen
7e9e8c950f - ws + compile warning fixes 2007-07-21 00:49:53 +00:00
Jani Taskinen
5d0176a32b - Fix compile warnings 2007-07-21 00:34:41 +00:00
Jani Taskinen
5c0df4eb38 - Fix warnings 2007-07-20 23:53:29 +00:00
Raghubansh Kumar
c61fda5b94 Fix for fill_file() function in file.inc
New testcases for readfile() and umask() functions
2007-07-20 18:09:11 +00:00