php-src/ext/standard/tests
jim winstead ca15b22212 New memcpy()-based wordwrap() implementation. The simple case
(single-character break, no forced break) appears to be about 60%
faster, and there's simply no comparison for non-simple cases with
non-trivial amounts of text. The old algorithm was O(n^2) (with an
unfortunately large constant factor) because of the use of strncat(),
the new one is O(n). Added some more tests, too.
@ - Made wordwrap() significantly faster. (Jim)
# test case: $t = join('',file('ChangeLog')); $w = wordwrap($t,10,"\n",1);
# new code completes in less than a second. i'm still waiting for the
# old code to finish.
2002-01-05 20:46:43 +00:00
..
array Surprising how tests can fail when they don't have any supporting data :) Thanks for the catch Jan and Jim 2002-01-05 01:58:44 +00:00
assert Made assert test pass on systems with short open tags disabled. 2001-10-06 09:38:29 +00:00
file Different operating systems handle the group x bit differently, so 2001-11-13 12:39:21 +00:00
general_functions Adding test for is_scalar(). 2000-12-18 21:24:25 +00:00
math Fixed pow(), and added finite(), isinf(), and isnan(). Also fixed 2002-01-05 03:45:11 +00:00
reg * all tests should pass now (expect for the interbase stuff that I haven't 2000-08-31 22:21:47 +00:00
serialize improve last patch: 2001-12-01 15:17:50 +00:00
strings New memcpy()-based wordwrap() implementation. The simple case 2002-01-05 20:46:43 +00:00
time - Fix for bugs #9640 and #13789 2001-10-27 17:50:26 +00:00
versioning * remove version_{lt,le,gt,ge,eq} functions, added a third optional 2001-10-11 10:35:59 +00:00