Antony Dovgal
4d44a5b71d
MFH: use BSD licensed implementation of double-to-string utilities instead of LGPL one
...
this patch also fixes thread safety issues in zend_strtod()
2006-12-06 09:52:51 +00:00
Antony Dovgal
93fc85b2af
MFH: fix #39621 (str_replace() is not binary safe on strings with equal length)
2006-11-24 21:59:09 +00:00
Antony Dovgal
e412981f7b
remove redundant error message
...
add test by <zoe dot slattery at googlemail dot com>
2006-11-21 17:42:11 +00:00
Antony Dovgal
c220da74ef
MFH test
2006-11-20 20:55:51 +00:00
Ilia Alshanetsky
714abb7ea1
pack()/unpack() tests
2006-11-19 18:31:07 +00:00
Ilia Alshanetsky
0d338f463c
Fixed bug #38770 (unpack() broken with longs on 64 bit machines).
2006-11-19 18:20:48 +00:00
Antony Dovgal
36d66521c9
add new tests
2006-11-16 13:01:23 +00:00
Antony Dovgal
84ff4aaf1a
add new tests
2006-11-15 17:27:03 +00:00
Antony Dovgal
34db368fe4
MFH: fix leaks in get_meta_tags() when used with b0rked HTML
...
add test
2006-11-13 20:18:12 +00:00
Ilia Alshanetsky
07cdfefdee
Fixed bug #39350 (crash with implode("\n", array(false))).
2006-11-06 17:21:05 +00:00
Antony Dovgal
9b7ba01618
MFH: avoid reading str[-1], add warning when invalid format specified
...
add test
2006-10-11 13:15:30 +00:00
Ilia Alshanetsky
7b77d536c3
Fixed bug #37262 (var_export() does not escape \0 character).
2006-10-09 18:08:34 +00:00
Antony Dovgal
24195cf941
re-add the test
2006-10-06 14:50:46 +00:00
Antony Dovgal
b37dd23c35
<tony2001> ilia: are you serious?
...
<ilia> tony2001: yes
2006-10-05 20:28:15 +00:00
Antony Dovgal
e2999137a7
add test
2006-10-05 19:49:43 +00:00
Antony Dovgal
d8648eae57
MFH: fix #39032 (strcspn() stops on null character)
2006-10-04 11:14:32 +00:00
Ilia Alshanetsky
e919a873cd
Fixed bug #38859 (parse_url() fails if passing '@' in passwd).
2006-09-28 14:52:31 +00:00
Hannes Magnusson
a180abdbfd
fix tests on freebsd
2006-08-27 15:06:53 +00:00
Antony Dovgal
a3b62c8eed
add test for real
2006-08-22 20:10:50 +00:00
Antony Dovgal
1a4b715ef2
use memrchr/zend_memrchr instead of strrchr
2006-08-08 10:22:25 +00:00
Antony Dovgal
9596bda7fc
add new test
2006-08-08 09:51:06 +00:00
Antony Dovgal
d17c2ec46d
add new test
2006-08-04 15:01:37 +00:00
Antony Dovgal
f3f44275f4
MFH
2006-07-17 06:45:08 +00:00
Antony Dovgal
e79591b081
fix test
2006-07-16 15:59:08 +00:00
Marcus Boerger
dc571fa9e2
- MFH Fixed Bug #29538 number_format and problem with 0
2006-07-16 10:50:58 +00:00
Marcus Boerger
f03f2c5eae
- MFH Pathinfo allows to get filename (Toby S, Christian S)
2006-07-16 10:37:24 +00:00
Antony Dovgal
3cce465528
fix invalid read - no need to compare strings if haystack is "" or shorter than needle
...
add test
2006-07-12 12:33:48 +00:00
Hannes Magnusson
c9c2c0e1f8
MFH: test for bug #37244
2006-06-26 22:20:27 +00:00
Marcus Boerger
7110650668
- Update test
2006-05-25 10:46:53 +00:00
Antony Dovgal
0a38d6bd8c
remove nonexistent tag
2006-04-25 12:49:59 +00:00
Antony Dovgal
896a5216d7
fix possible substr_compare() crash
...
add new tests
2006-04-25 12:48:42 +00:00
Antony Dovgal
522a5e128f
ok, let's make this test to work on all systems
...
currently it fails at least on Linux PPC and Solaris, probably because of different strncmp/strncasecmp implementations.
2006-04-14 20:30:11 +00:00
Antony Dovgal
46e0ede425
fix test title
2006-04-12 22:20:52 +00:00
Antony Dovgal
c0592d17e9
add test
2006-04-05 12:29:21 +00:00
Ilia Alshanetsky
535a2e6092
Fixed bug #36351 (parse_url() does not parse numeric paths properly).
2006-02-12 16:39:44 +00:00
Pierre Joye
8600417c79
- revert last fix
...
- ensure that we are in 32bit
- do not try to compare the decimal values but hex, php does not have
unsigned integer
2006-02-09 15:33:53 +00:00
Pierre Joye
f3e11a705c
- #36306 , crc32() function result differs on 32-bit and 64-bit platforms
2006-02-07 00:23:55 +00:00
Ilia Alshanetsky
c5ef24bfee
Fixed bug #36148 (unpack("H*hex", $data) is adding an extra character to the
...
end of the string).
2006-01-26 15:45:33 +00:00
Ilia Alshanetsky
0e396980a1
Fixed bug #35817 (unpack() does not decode odd number of hexadecimal values)
2005-12-28 20:55:14 +00:00
Ilia Alshanetsky
66fbae9d75
Added tests for new parse_url() and http_build_query() functionality.
2005-12-04 17:58:15 +00:00
Ilia Alshanetsky
0242b892d2
Fixed bug #35427 (str_word_count() handles '-' incorrectly).
2005-11-29 16:14:19 +00:00
foobar
82d8cfb681
MFH
2005-08-23 21:40:26 +00:00
Ilia Alshanetsky
5610ad29e3
MFH: Fixed bug #34148 (+,- and . not supported as parts of scheme).
2005-08-16 14:20:41 +00:00
Ilia Alshanetsky
29bf2d3a09
Fixed bug in str_word_count() when charlist if specified and "word" starts
...
with a character found inside the charlist.
2005-07-23 19:44:13 +00:00
Ilia Alshanetsky
67ea97dfdf
Added offset & length parameters to substr_count() function.
2005-06-18 18:23:12 +00:00
Antony Dovgal
4ce95ef1ea
fix bug #33076 (str_ireplace() incorrectly counts result string length and may cause segfault)
...
add test
2005-05-20 14:23:42 +00:00
Ilia Alshanetsky
8281f41f3e
Fixed bug #32813 (parse_url() does not handle scheme-only urls properly).
2005-04-25 23:47:37 +00:00
foobar
e5697cc0ad
Add some more cases
2005-04-15 22:25:03 +00:00
foobar
5efe7cf99a
Added test for strval() function
2005-04-15 22:19:53 +00:00
Ilia Alshanetsky
ca10457a58
Fixed bug #32530 (chunk_split() does not append endstr if chunklen is
...
longer then the original string).
2005-04-03 18:08:40 +00:00
Ilia Alshanetsky
f56e5c045c
A more performance friendly version of Andrey's patch.
2005-03-12 17:51:19 +00:00
Andrey Hristov
f15c24d44c
added an optional third parameter to str_word_count(), which is used as
...
a list of characters which are considerd "is_alpha()". Thus V14GR4 can
be extracted as one word if the user supplies "14" as charlist.
FR #31560
# Nuno, are you wishing to document this one too? :)
2005-03-12 14:41:20 +00:00
Andrey Hristov
cc39b51d2d
add a test file
2005-03-12 12:59:53 +00:00
Ilia Alshanetsky
42155f6028
Fixed bug #31705 (parse_url() does not recognize http://foo.com#bar )
2005-01-27 16:37:34 +00:00
Moriyoshi Koizumi
ee18958f98
- Fix htmlentities() / html_decode_entity() UTF-8 related bugs
...
initially reported by Kamesh Jayachandran
2005-01-11 20:44:04 +00:00
Moriyoshi Koizumi
5ff410efdf
- Fix test name
2004-07-19 18:49:20 +00:00
Moriyoshi Koizumi
fae637021d
- Oops, actual PR # is 29119, not 29199...
2004-07-19 17:51:41 +00:00
Moriyoshi Koizumi
46bc2c5ae2
- Fix bug #29199 (html_entity_decode() misbehaves with UTF-8)
2004-07-19 17:46:30 +00:00
Ilia Alshanetsky
8840191d91
Fixed bug #28633 (sprintf incorrectly adding padding to floats).
2004-07-18 17:27:49 +00:00
Andrey Hristov
96f5c697dd
Add support for negative values of limit of explode(). If limit is negative
...
then all components are returned except the last abs(limit) ones.
2004-07-18 11:34:28 +00:00
Ilia Alshanetsky
a75608c1de
Fixed Bug #29075 (strnatcmp() incorrectly handles whitespace).
...
# Original Patch by: curt@php.net
2004-07-15 01:26:03 +00:00
Marcus Boerger
d94136fc30
- Remove unused blocks
2004-05-19 08:45:46 +00:00
Ilia Alshanetsky
0a38683b14
Correct output.
2004-05-17 20:58:57 +00:00
Marcus Boerger
ed5ce047db
- Add new test
2004-05-16 14:48:45 +00:00
Ilia Alshanetsky
d24465ba8a
Fixed bug #28386 (wordwrap() wraps lines 1 character too soon).
2004-05-13 17:44:23 +00:00
Sara Golemon
c52cc1c333
BugFix 27675 and add regression test.
2004-03-26 19:23:42 +00:00
foobar
3bd12064ef
test for bug #27457
2004-03-09 14:19:50 +00:00
Derick Rethans
769dc0be75
- Added testcase for bug #27276
2004-02-23 19:45:16 +00:00
Ilia Alshanetsky
95cbb0046c
Fixed bug #27295 (memory leak inside sscanf()).
2004-02-18 19:48:13 +00:00
foobar
7a7927c146
shorten the description a bit
2004-02-16 17:44:27 +00:00
foobar
7fd4bdbec4
nuke copypaste rubbish
2004-02-16 16:50:53 +00:00
foobar
173794732b
test for bug #27278
2004-02-16 16:50:11 +00:00
foobar
6f56bc3b8d
extend a bit
2004-01-21 03:58:30 +00:00
foobar
d7a54202d8
test case for bug #26973
2004-01-21 03:49:15 +00:00
Ilia Alshanetsky
43becc02f1
Fixed bug #26878 (problem with multiple references to the same variable
...
with different types).
2004-01-13 23:11:31 +00:00
Ilia Alshanetsky
d4c19ed2d2
Fixed bug #26819 (http_build_query() crashes on NULL output).
...
Fixed bug #26817 (http_build_query() does not handle private & protected
object properties correctly).
2004-01-06 20:07:07 +00:00
Marcus Boerger
8a072165f5
Typos found by Petras Kudaras.
2003-12-22 23:45:53 +00:00
Wez Furlong
98f1021dd8
Make these tests work under win32
2003-12-05 13:42:04 +00:00
Ilia Alshanetsky
a9b20a6abf
Fixed bug #25800 (parse_url() could not parse urls with empty port).
2003-10-13 04:27:23 +00:00
Moriyoshi Koizumi
647408978e
Fixed bug #25707 (html_entity_decode over-decodes &lt;)
2003-10-02 06:57:21 +00:00
Sara Golemon
2acca5d015
Test for Bug 25671
2003-09-27 18:48:48 +00:00
Ilia Alshanetsky
c23609efa7
Fixed paths in various tests. In certain conditions usage of partial file
...
paths results in test failures.
2003-08-18 22:57:49 +00:00
Ilia Alshanetsky
4634554976
Fix up test
2003-07-01 03:11:09 +00:00
Ilia Alshanetsky
c8ecf7ec3e
Fixed bug #24312 (base64_decode() does not skip 0xF0-0xFF characters)
...
Patch by: gereon.steffens[at]onvista.de
2003-06-24 15:23:17 +00:00
Stanislav Malyshev
02bebe8186
add test for #24281
2003-06-23 14:18:33 +00:00
Moriyoshi Koizumi
a3873c986b
Added test case for bug #24208
2003-06-16 19:10:12 +00:00
Ilia Alshanetsky
aec7815e9c
Fixed bug #24098 (Crash in pathinfo() due to double var initialization).
...
# This is a php5 specific bug, no MFB needed
2003-06-09 18:12:36 +00:00
Moriyoshi Koizumi
3c0071a211
Added test case for bug #23894
2003-05-30 13:48:14 +00:00
Moriyoshi Koizumi
3cd1ea3154
Changed the test so it would not fail on some old platforms.
2003-05-26 22:16:14 +00:00
Ilia Alshanetsky
8e3772a827
Added skip condition.
2003-05-19 04:57:01 +00:00
Moriyoshi Koizumi
27b8c453b9
copy'n'paste failure
2003-05-16 06:24:57 +00:00
Moriyoshi Koizumi
3d2b9af9eb
Added test case for bug #23650
2003-05-16 06:20:23 +00:00
Hartmut Holzgraefe
e6490c4a41
basename() now binary safe, testcases added
2003-05-05 13:46:14 +00:00
Moriyoshi Koizumi
b44ae54bc6
Real fix and a test case for bug #22008
2003-05-04 12:44:36 +00:00
Andrey Hristov
a894bf5c87
Extending substr_replace().
...
Every parameter can be mixed (string/array) also the return type.
#see the test file if you need more info.
2003-05-02 10:02:40 +00:00
Moriyoshi Koizumi
193fe6863a
Really fix the test.
...
# sorry for the mess..
2003-04-30 16:30:44 +00:00
Moriyoshi Koizumi
180806f9e6
Fixed typo
2003-04-29 13:05:58 +00:00
Moriyoshi Koizumi
cc9b7895a0
Fixed bogus skip condition
2003-04-29 13:04:19 +00:00
Sara Golemon
76965beb04
Add tests for strrpos/stripos, and minor fix to maintain BC for condition with empty needles/haystacks
2003-04-12 20:04:06 +00:00
Moshe Doron
3c982dea22
oops
2003-04-01 12:54:35 +00:00
Moshe Doron
d8b5687925
revert due the last string.c revert
2003-04-01 12:53:44 +00:00
Moshe Doron
64bd1cdbd6
# make derik happy
2003-03-31 19:01:43 +00:00
Moriyoshi Koizumi
03a5129429
oops...
2003-03-24 19:24:35 +00:00
Moriyoshi Koizumi
68b03bde3a
Added test cases for new functionality
2003-03-24 19:21:20 +00:00
Moriyoshi Koizumi
a41e0c1382
Modified the test to reflect the recent change on var_dump()
2003-03-10 20:46:39 +00:00
Derick Rethans
2bff9cae27
- Fixed testcase... you can never trust on RFCs it seems
2003-02-20 16:15:41 +00:00
Derick Rethans
d95c41eddb
- Added new parameter to sha1() and md5() which return the digest as
...
binary data. (Original patch by Michael Bretterklieber <mbretter@jawa.at>)
- Added test cases for sha1() and md5() based on the testvectors in RFC 1321
and RFC 3174.
@- Added new parameter to sha1() and md5() which return the digest as
@ binary data. (Michael Bretterklieber <mbretter@jawa.at>, Derick)
2003-02-18 20:31:19 +00:00
Moriyoshi Koizumi
b069f35022
Fixed bug #22227
...
Added test case for bug #22227
2003-02-15 15:57:31 +00:00
Moriyoshi Koizumi
b3a8349191
Fixed bug #22224 (implode changes object references in array)
...
Added test case for the bug
2003-02-14 18:42:36 +00:00
Ilia Alshanetsky
2443adb8b5
Added test case for bug #22187 .
2003-02-13 19:07:20 +00:00
foobar
e6841d6c35
Added test for those different crypt() methods. Hopefully I got the results right.
2003-02-13 18:49:57 +00:00
Ilia Alshanetsky
7fffe4338a
Fixed bug #22207 (e notation in *printf would be missing a 0 when there is
...
no exponent).
Added a test case for the bug.
2003-02-13 17:25:31 +00:00
Moriyoshi Koizumi
6fc22aa5d9
Test name formatting
2003-01-23 19:07:25 +00:00
Moriyoshi Koizumi
a1e6457561
Fixed bug #21744(21741)
...
Added test case for the bug
2003-01-19 11:32:54 +00:00
Moriyoshi Koizumi
310397f2ee
Fixed typo
2003-01-18 19:02:21 +00:00
Moriyoshi Koizumi
2aa7bf8d8b
Added test case for bug #21730
2003-01-18 18:59:27 +00:00
Ilia Alshanetsky
97dd1e8abf
Fixed bug #21453 (improper handling of non-terminated <).
2003-01-06 22:13:03 +00:00
Ilia Alshanetsky
0ff59a1353
Fixed bug #21338 (crash inside html_entity_decode() when "" is passed).
...
Added test case for the bug.
2003-01-02 19:49:30 +00:00
Ilia Alshanetsky
bd19dabefe
Fixed bug #21226 (parse_url handling of urls without a path).
2002-12-30 16:42:49 +00:00
Moriyoshi Koizumi
92d5faca60
MFB
2002-12-12 21:44:53 +00:00
Moriyoshi Koizumi
d679e5d2aa
Added a test case for bug #20934
2002-12-12 21:42:17 +00:00
Ilia Alshanetsky
75c180f242
Fixed bug #20927 and updated the test case for the bug.
2002-12-12 13:38:19 +00:00
Melvyn Sopacua
4b3b409b48
Add testcase for reported wordwrap bug
2002-12-11 20:22:42 +00:00
Ilia Alshanetsky
e195b10ede
Fixed bug #20664 .
2002-11-27 06:20:19 +00:00
Ilia Alshanetsky
47596de32f
Fixed the test so it works properly on both 32 and 64 bit platforms.
2002-11-16 17:26:26 +00:00
Moriyoshi Koizumi
db6efcf7e5
Prevent warnings under safe mode
2002-11-14 18:38:38 +00:00
Ilia Alshanetsky
6b7d77a7a0
Fixed bug #20420 and added partial urls to the test of the function.
2002-11-14 13:40:14 +00:00
Moriyoshi Koizumi
c65cbd2409
Fixed the tests so that they won't be affected by the ini setting of
...
default_charset
2002-11-12 21:37:54 +00:00
Marcus Boerger
bf303c2ab7
hide possible warnings
...
#Why should one initialize $php_errormsg to NULL
#It would be easier to have it initialised by the system, wouldn't it?
2002-11-08 17:03:06 +00:00
Ilia Alshanetsky
0bdefe4d1e
Added skip conditions in the event the required charset is not avaliabled.
...
Removed old (commented out) module loading code.
2002-11-08 01:12:03 +00:00
Ilia Alshanetsky
c2337fd851
Added additional tests to parse_url() test suit, corrected the output of 2
...
existing tests, which were affected by a bug fixed in latest update to
parse_url() source code.
2002-11-07 15:46:34 +00:00
Moriyoshi Koizumi
6789057697
Oops, preg_match() returns integer value, not boolean.
2002-11-06 15:14:58 +00:00
Moriyoshi Koizumi
e4460fa5a3
Made skip conditions stricter.
2002-11-06 15:06:35 +00:00
Moriyoshi Koizumi
307024dc68
Fixed typo
2002-11-05 17:46:36 +00:00
Moriyoshi Koizumi
e2112f174a
Added a test for bug #20261
2002-11-05 17:25:59 +00:00
Moriyoshi Koizumi
408e019b25
Disabled output_handler in INI section
2002-11-03 08:37:59 +00:00
Moriyoshi Koizumi
f94e45aaf3
Moved the test into the suitable place
2002-10-31 15:28:21 +00:00
Derick Rethans
fb41198f05
- Fix test, in some cases the first significant number in the time
...
was a 3
2002-10-31 06:37:18 +00:00
Moriyoshi Koizumi
939a5870cf
Fixed typo
2002-10-30 11:57:29 +00:00
Moriyoshi Koizumi
a4edf018cb
Added a test case for bug #20169
2002-10-30 11:48:51 +00:00
Melvyn Sopacua
066e8aeef6
Add locale for BSDi
...
# Allthough these characters are used in germany, that doesn't mean, that
# they're not part of the latin-1 character set.
2002-10-29 17:43:08 +00:00
Moriyoshi Koizumi
630a4ff924
Removed dl() stuff
2002-10-29 16:28:12 +00:00
Melvyn Sopacua
50dced2eea
Add FreeBSD locale
2002-10-27 17:07:26 +00:00
Melvyn Sopacua
4d8518e83f
Add FreeBSD locale
2002-10-27 17:01:48 +00:00
Ilia Alshanetsky
e12826bc34
Added expected output.
2002-10-26 20:55:48 +00:00
Derick Rethans
758d074822
- Fix typoes
2002-10-26 20:09:15 +00:00
Derick Rethans
77d10050e1
- fix type
2002-10-26 20:07:49 +00:00
Melvyn Sopacua
93fcd7ea5d
Test for bug in sprintf
...
# Doesn't segfault for me, but gives a lot of garbage, so I really don't
# know what the output should be. Results posted to QA
2002-10-26 20:07:26 +00:00
Marcus Boerger
92b63c4be5
remove original version
2002-10-26 16:58:38 +00:00
Marcus Boerger
24fe2a0f2d
change to use EXPECTREGEX and rename
2002-10-26 16:56:26 +00:00
Marcus Boerger
0679a9139f
split tests
2002-10-26 16:48:03 +00:00
Marcus Boerger
0d68286a95
fine tune
2002-10-26 16:09:50 +00:00
Moriyoshi Koizumi
5a6c529f43
Renamed test cases
2002-10-25 21:39:02 +00:00
Moriyoshi Koizumi
e7cc9d0274
Updated the test cases for htmlentities()
2002-10-25 13:12:31 +00:00
Marcus Boerger
0433e71a76
README.TESTING examples
2002-10-25 10:46:19 +00:00
Marcus Boerger
d5911a2cbb
remove unnecessary sections
...
#becomes an example
2002-10-25 10:28:37 +00:00
Moriyoshi Koizumi
75db2913f1
Added some cases which test if charset determination with
...
SG(default_charset) works.
2002-10-24 22:21:03 +00:00
Moriyoshi Koizumi
c7c418c25a
Added new test cases for htmlentities
2002-10-24 21:11:41 +00:00
Melvyn Sopacua
6695544db2
- Add locale string for FreeBSD
...
ATTN: Test nog longer skips, but fails. So whatever has changed since 4.2.3
affects BSD systems.
2002-10-24 19:17:11 +00:00
Marcus Boerger
1ff1e6496b
use german characters for a test with german locale
2002-10-24 00:49:38 +00:00
Ilia Alshanetsky
2f3cd572fb
Added 'skip logic' to the test on platforms where the locale required by
...
this test is not avaliable.
2002-10-23 23:04:43 +00:00
Andrey Hristov
d9c067ecc7
Test case regarding randomization of shuffle() and str_shuffle().
...
The code was provided by Adam Trachtenberg : adam trachtenberg com
2002-10-23 19:33:12 +00:00
Marcus Boerger
fa95a4a269
Shorten
...
# will be used as an example in README.TESTING
2002-10-23 12:47:31 +00:00
Melvyn Sopacua
d6e639a02f
test for locale support in strtoupper
2002-10-22 19:39:17 +00:00
Ilia Alshanetsky
6b67dc8dd5
Fixed implode test
2002-10-22 17:17:56 +00:00
Derick Rethans
11961b1311
- Hopefully fix test file problems
2002-10-19 19:17:13 +00:00
Markus Fischer
f43e4cc93d
- Document were the first test came from.
2002-10-11 18:06:15 +00:00
Ilia Alshanetsky
8c6088839b
Added test for explode() function.
2002-10-11 15:19:57 +00:00
Derick Rethans
4da5ec8965
- Add case for bug 19858
2002-10-11 11:03:36 +00:00
Andrey Hristov
0e5ff737f4
Test case for str_shuffle().
2002-10-09 10:53:27 +00:00
Ilia Alshanetsky
7d19c1b9e5
Added nl2br() test
2002-10-08 23:46:02 +00:00
Ilia Alshanetsky
8c77e13e92
Added test for strrev() function.
2002-10-08 21:51:59 +00:00
Derick Rethans
5a84ae6489
- Use error_reporting E_ALL
2002-10-08 07:55:02 +00:00
Ilia Alshanetsky
d6775c5c3f
Added tests for strstr(), strpos() and substr_count() functions.
2002-10-07 21:07:42 +00:00
Sander Roobol
00a2715eda
We're testing stripCslashes() here :)
2002-10-06 19:26:56 +00:00
Sander Roobol
3e222bcbf1
Some more weird tests on Derick's request :)
2002-10-06 19:17:04 +00:00
Sander Roobol
9edfd75a5c
Some string tests
2002-10-06 19:12:22 +00:00
Ilia Alshanetsky
12f47fe85a
Added expected data to parse_url() test
2002-10-06 16:15:06 +00:00
Sander Roobol
8cf14a42f5
Add testcases for implode() and str_repeat()
2002-10-06 11:26:49 +00:00
Derick Rethans
b007bd0696
- Add parse_url() tests (expect will follow later)url_t.phpt
2002-10-05 20:28:35 +00:00
Andrey Hristov
83a0f20381
Making strrchr() binary safe.
...
Test case added.
2002-10-02 18:58:09 +00:00
Andrey Hristov
7badd563cb
Test case for strspn()/strcspn().
2002-09-25 19:08:38 +00:00
Ilia Alshanetsky
fda169417f
Added a test script for strip_tags() function.
2002-09-21 17:34:45 +00:00
Sander Roobol
ace4a23dfc
Fixed stripslashes when magic_quotes_sybase is enabled, and add a test for
...
add- and stripslashes().
# this time without cvs messing up and aborting, hopefully :)
2002-06-18 11:51:06 +00:00
Sander Roobol
07975157eb
Fix stripslashes when magic_quotes_sybase is enabled, and add a test for
...
add- and stripslashes().
2002-06-18 11:42:21 +00:00
jim winstead
349936c93e
Fix calculation of output buffer size in wordwrap(). (Thanks to Wez.)
2002-03-18 02:00:57 +00:00
Derick Rethans
39225a22b8
- Fix tests to work with CLI
...
#- Not totally done, but this makes it a lot better
2002-03-05 09:00:56 +00:00
jim winstead
4fb4c6d4b3
More tweaking of wordwrap() with the cut parameter set. It was being a
...
little too aggressive and cutting words without breaking at spaces
first. (A couple of tests were incorrect.)
2002-01-05 23:49:58 +00:00
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
jim winstead
f68b7c5f3e
Fixed segfault in wordwrap() when wrapping to zero width and using
...
multi-character break or trying to force cut (bug #12768 , now fails
and issues a warning because forcing a zero-width cut doesn't make
sense). Also converted to new paramater-passing API and avoid making
an extra copy of the return values.
# also added tests.
@- Fixed segfault in wordwrap() when wrapping to zero width and using
@ multi-character break or trying to force cut (bug #12768 ). (Jim)
2002-01-04 19:48:08 +00:00
Thies C. Arntzen
e929389eeb
fix strtr() when called with two parameters. this has been broken for some time!
...
guys, when "optimizing" functions you _shoudl_ write a testcase for the
working function and make _sure_ that it works afterwards!
2001-09-13 10:48:41 +00:00
Jeroen van Wolffelaar
71a6c03bef
Didn't commit the correct trim.phpt, it now passes
2001-08-05 19:06:34 +00:00
Jeroen van Wolffelaar
860be31cae
More tests
2001-08-05 18:38:48 +00:00