Raghubansh Kumar
e1a08e5d55
New testcases for wordwrap()
2007-09-14 18:53:38 +00:00
Nuno Lopes
40085b06f2
changes to run-tests.php:
...
- change %s to %a
- make %s = [^\r\n]+
- fix tests accordingly
2007-09-14 15:28:03 +00:00
Nuno Lopes
b0e393e543
attemp to set locale if it exists. fix skip condition
2007-09-13 19:51:34 +00:00
Ilia Alshanetsky
2cfdcd265d
Added a note indicating that the tests may fail to due libc implementation
2007-09-13 15:36:37 +00:00
Jani Taskinen
3327653e19
- Fix tests (we are not interested what the old value was for the ini option)
2007-09-11 10:23:04 +00:00
Antony Dovgal
a09eadc95b
fix tests
2007-09-10 10:28:54 +00:00
Antony Dovgal
99695744ac
split one more ten-in-one test
...
and fix \v\f stuff while we're here..
2007-09-09 22:28:06 +00:00
Raghubansh Kumar
a14ef42c0c
New testcases for ucwords() function
2007-09-07 14:44:52 +00:00
Raghubansh Kumar
67b4492c47
New testcases for strncmp() function
2007-09-07 14:20:12 +00:00
Raghubansh Kumar
cf2121887c
New testcases for stripslashes() function
2007-09-07 13:51:26 +00:00
Raghubansh Kumar
af40765f8f
New testcases for addslashes() function
2007-09-06 04:01:25 +00:00
Raghubansh Kumar
270414f3b5
New testcases for strtolower() and strtoupper() functions
2007-08-10 03:03:49 +00:00
Ilia Alshanetsky
cd32b4e2bb
Fixed bug #42208 (substr_replace() crashes when the same array is passed
...
more than once)
2007-08-05 14:47:42 +00:00
Antony Dovgal
d78c7c9421
fix test
2007-07-31 07:09:08 +00:00
Jani Taskinen
68b823564d
MFH: - Fixed bug #42107 (sscanf broken when using %2$s type format parameters)
2007-07-26 15:24:06 +00:00
Antony Dovgal
48f4ea9fba
fix test
2007-07-23 22:14:47 +00:00
Jani Taskinen
e8fcd7477c
MFH: Fixed str_pad() when passed huge negative pad length.
2007-07-23 13:27:59 +00:00
Ilia Alshanetsky
3fea65b0dc
Fixed "Floating point exception" inside wordwrap()
2007-07-22 15:55:16 +00:00
Antony Dovgal
a091268eef
MFH
2007-07-19 15:15:26 +00:00
Antony Dovgal
0806c6c804
add new tests from HEAD
2007-07-19 15:04:15 +00:00
Antony Dovgal
2399b208db
MFH: split test
2007-07-16 10:59:17 +00:00
Dmitry Stogov
1fe8fded5f
Fixed test
2007-06-15 08:16:11 +00:00
Stanislav Malyshev
b6ddf71381
revert - already have unpack.phpt
2007-06-06 22:25:08 +00:00
Stanislav Malyshev
bc35767b46
add edge case test
2007-06-06 22:21:59 +00:00
Ilia Alshanetsky
717e94c67a
Added missing format validator to unpack() function
2007-06-06 22:04:05 +00:00
Stanislav Malyshev
2e15dda50e
fix test format
2007-06-06 17:46:17 +00:00
Stanislav Malyshev
8b5a2d38c4
add some edge cases
2007-06-06 17:12:40 +00:00
Stanislav Malyshev
e001e11009
add test for moneyformat
2007-06-06 17:11:59 +00:00
Brian Shire
55b5b89ef7
fix sprintf/printf %u tests so they work correctly on both 32-bit and 64-bit. (broken in previous fix)
...
# just made these EXPECTREGEX expressions, if there's a prefered way to comply with both 32/64 bit let me know.
2007-06-04 01:23:07 +00:00
Ilia Alshanetsky
405a15043f
Corrected fix for CVE-2007-2872
2007-06-03 18:47:10 +00:00
Ilia Alshanetsky
9282d4add6
Fixed an interger overflow inside chunk_split(), identified by Gerhard
...
Wagner
2007-05-30 00:33:13 +00:00
Antony Dovgal
f7ec7197f7
fix tests
2007-05-29 10:25:33 +00:00
Nuno Lopes
2c5368c013
fix handling of && by htmlentities 'no-double-encode'
...
expand the test cases
2007-05-27 15:57:11 +00:00
Zoe Slattery
eb0f324f70
New testcaes for file/strings/general_functions
2007-05-25 13:44:23 +00:00
Raghubansh Kumar
9f5016ef7b
New version of basename_basic.phpt, basename_error.phpt, basename_variation.phpt
2007-05-22 15:59:04 +00:00
Ilia Alshanetsky
c98cbb6020
[DOC] Added a 4th parameter flag to htmlspecialchars() and htmlentities()
...
that makes the function not encode existing html entities. The feature is
disabled by default and can be activated by passing FALSE as the 4th param
2007-05-22 12:37:00 +00:00
Antony Dovgal
ff514e208e
fix tests
2007-05-18 11:47:58 +00:00
Antony Dovgal
ffd09c0961
fix tests
2007-05-18 11:29:55 +00:00
Antony Dovgal
2274c18cc6
remove floats, their text representation varies depending on many factors
2007-05-14 11:10:30 +00:00
Raghubansh Kumar
3a97c49489
New version of addcslashes.phpt, md5_file.phpt, str_replace.phpt, substr.phpt, chr_ord.phpt, strpos.phpt, strstr.phpt, trim1.phpt, implode1.phpt, str_repeat.phpt, substr_count.phpt
2007-05-12 10:15:02 +00:00
Antony Dovgal
8de1ecef64
MFH: fix segfault in strripos() when offset == INT_MAX+1
...
identified and repoted by Joxean Koret
2007-05-10 22:10:43 +00:00
Antony Dovgal
7efde494d7
MFH: flush output buffer when/if highlight_string()/php_strip_whitespace()/highlight_string() fail
2007-05-10 16:28:11 +00:00
Antony Dovgal
3a46e8ab1f
fix tests
2007-05-07 22:30:16 +00:00
Antony Dovgal
c2c4fe75e1
fix test
2007-05-07 21:38:42 +00:00
Antony Dovgal
1f65545121
fix test names
2007-05-07 18:03:01 +00:00
Ilia Alshanetsky
e0cab44595
Remove quotes
2007-05-01 00:05:39 +00:00
Antony Dovgal
66859a74de
fix tests
2007-04-26 23:30:00 +00:00
Dmitry Stogov
b2785c3d4c
Fixed tests (win32)
2007-04-18 14:51:29 +00:00
Brian Shire
e7d68b8373
reverting incorrect changes to pack test
...
# only a problem on darwin, latest gcc-4.2 branch works as expected.
2007-04-13 02:15:07 +00:00
Antony Dovgal
f2f885c023
fix test
2007-04-06 19:35:12 +00:00
Brian Shire
bd4add59f7
correction for previous fix to bug #38770 (pack/unpack is broken on 64bit)
...
fix pack test, correct space to tabs
2007-04-03 19:50:40 +00:00
foobar
3da21dc6fc
- 64bit test
2007-04-02 15:09:37 +00:00
foobar
bb0547029a
- Make this 32bit only test. (will add 64bit version next)
2007-04-02 15:02:02 +00:00
Zoe Slattery
c18d3b56e7
new ltrim, rtrim and str_pad tests
2007-03-28 10:44:04 +00:00
Zoe Slattery
517865fb6e
New tests for printf and ucfirst
2007-03-28 09:38:30 +00:00
Zoe Slattery
23d64aeaa4
Three new string tests for funtions strcasecmp, strcmp and strlen.
2007-03-28 09:08:08 +00:00
Antony Dovgal
7053b89072
MFH: fix #40915 (addcslashes unexpected behavior with binary input)
2007-03-26 10:25:41 +00:00
Antony Dovgal
982de65f6e
fix substr()
...
it's perfectly legal to do substr("str", 0, 1000000);
2007-03-09 10:04:59 +00:00
Antony Dovgal
c9ded196b4
fix tests
2007-03-09 09:45:14 +00:00
Ilia Alshanetsky
02fae929af
Fixed bug #40754 (added substr() & substr_replace() overflow checks).
2007-03-09 01:58:34 +00:00
Ilia Alshanetsky
e769e1b49e
Fixed bug #40704 (strip_tags() does not handle single quotes correctly)
2007-03-03 15:46:29 +00:00
Antony Dovgal
666370d7ee
add new test
2007-02-26 09:58:04 +00:00
Antony Dovgal
29a9ba9639
new/improved tests
2007-02-13 12:59:53 +00:00
Ilia Alshanetsky
103b8c33c0
Fixed bug #40432 (strip_tags() fails with greater than in attribute).
2007-02-13 02:16:22 +00:00
Antony Dovgal
45c0253f2c
add test
2007-02-11 20:56:46 +00:00
Hannes Magnusson
3f9a4baa31
Fix test according to bug#40009
2007-01-05 15:22:35 +00:00
Ilia Alshanetsky
78d8808f42
Mark test as being 32bit only
2006-12-30 02:00:51 +00:00
Nuno Lopes
54f3ff34b7
oops: remove uneeded code in the skip condition
2006-12-27 15:17:04 +00:00
Nuno Lopes
d07a46ebab
add fr_FR@euro to the setlocale list
2006-12-27 15:11:35 +00:00
Antony Dovgal
c52bc49f50
fix test
2006-12-25 14:27:51 +00:00
Antony Dovgal
6e8a7d7b20
fix tests
2006-12-25 11:16:23 +00:00
Ilia Alshanetsky
f40ebf4171
Fixed bug #36392 (wrong number of decimal digits with %e specifier in
...
sprintf).
2006-12-22 15:29:41 +00:00
Ilia Alshanetsky
fd8f758ecd
Fixed bug #39873 (number_format() breaks with locale & decimal points).
2006-12-22 04:03:15 +00:00
Antony Dovgal
5fc3e649b6
MFH
2006-12-18 11:12:55 +00:00
Hannes Magnusson
9ef3575c25
MFH:
...
- make %f locale aware again
- fix precision loss with %F (noticed by Sebastian Nohn)
- add new tests
2006-12-18 09:26:54 +00:00
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