Commit Graph

296 Commits

Author SHA1 Message Date
Zoe Slattery
dfaf949f2f New tests for ltrim, rtrim, str_pad 2007-03-28 10:31:13 +00:00
Zoe Slattery
61ccbdee7e New ucfirst() test. 2007-03-28 09:54:31 +00:00
Zoe Slattery
f9596816cc new test for printf 2007-03-28 09:41:55 +00:00
Antony Dovgal
c9b1ff5080 fix #40915 (addcslashes unexpected behavior with binary input) 2007-03-26 10:23:50 +00:00
Zoe Slattery
cc3795cd6f Fixing %i - > %d, previously changed in error 2007-03-16 23:18:01 +00:00
Zoe Slattery
6503645079 Changed %d to %i in EXPECTF 2007-03-16 13:35:47 +00:00
Zoe Slattery
7f5832323c new test cases for string functions 2007-03-16 12:55:38 +00:00
Antony Dovgal
d5a9eab2e7 fix tests 2007-03-06 20:45:15 +00:00
Antony Dovgal
6a8829137e new test 2007-02-26 09:57:54 +00:00
Antony Dovgal
c212923e29 new/improved tests 2007-02-13 13:01:18 +00:00
Antony Dovgal
c22ccc1492 new test 2007-02-11 20:56:17 +00:00
Hannes Magnusson
1175652bef MFB: Fix tests 2007-01-05 15:28:41 +00:00
Ilia Alshanetsky
fb392210ee MFB: Mark test as being 32bit only 2006-12-30 02:01:09 +00:00
Antony Dovgal
5498386f63 fix tests 2006-12-27 19:17:02 +00:00
Antony Dovgal
1857da91b4 fix *scanf() tests 2006-12-27 15:26:13 +00:00
Nuno Lopes
1511cee1a0 MFB 2006-12-27 15:18:15 +00:00
Antony Dovgal
a5ca775c02 fix test 2006-12-25 14:27:44 +00:00
Antony Dovgal
524eb56503 fix tests 2006-12-25 11:16:05 +00:00
Ilia Alshanetsky
2e5e31c6b8 MFB: Fixed bug #36392 (wrong number of decimal digits with %e specifier in
sprintf).
2006-12-22 15:30:18 +00:00
Ilia Alshanetsky
3eadc2ad58 MFB: Fixed bug #39873 (number_format() breaks with locale & decimal points). 2006-12-22 04:03:35 +00:00
Hannes Magnusson
2d0d09830c Fix tests 2006-12-22 01:20:24 +00:00
Antony Dovgal
5e105ec732 fix test names 2006-12-18 11:12:41 +00:00
Hannes Magnusson
44693bbf85 - make %f locale aware again
- fix precision loss with %F (noticed by Sebastian Nohn)
- add new tests
2006-12-18 09:25:32 +00:00
Antony Dovgal
e0a37e4cf6 MFB test 2006-12-07 23:10:58 +00:00
Antony Dovgal
e7d6927ed6 fix tests 2006-12-06 13:21:48 +00:00
Antony Dovgal
4789badd3a 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:50:28 +00:00
Antony Dovgal
a1f6c395cf fix #39621 (str_replace() is not binary safe on strings with equal length) 2006-11-24 21:57:31 +00:00
Antony Dovgal
ee8e633e8b remove redundant error message
add test by <zoe dot slattery at googlemail dot com>
2006-11-21 17:40:38 +00:00
Antony Dovgal
90afd8b5b8 improve test 2006-11-20 20:54:52 +00:00
Ilia Alshanetsky
75f45d8458 MFB: pack()/unpack() tests 2006-11-19 18:31:22 +00:00
Ilia Alshanetsky
316e7a5b2d MFB: Fixed bug #38770 (unpack() broken with longs on 64 bit machines). 2006-11-19 18:21:50 +00:00
Derick Rethans
7e56771f94 - Add the strtr implementation for unicode for the case where there are
characters with a code point value >= 256.
2006-11-16 20:33:44 +00:00
Antony Dovgal
107229611b more new tests, yikes! 2006-11-16 13:00:03 +00:00
Antony Dovgal
bbc854a4bd add new tests 2006-11-15 17:26:54 +00:00
Antony Dovgal
49a2ae60d0 fix leaks in get_meta_tags() when used with b0rked HTML
add test
2006-11-13 20:17:05 +00:00
Antony Dovgal
3fb2cb298b fix more tests 2006-11-09 01:16:48 +00:00
Antony Dovgal
a6132def32 fix test 2006-11-09 01:07:31 +00:00
Antony Dovgal
721ade4f41 fix test on 64bit 2006-10-11 13:18:18 +00:00
Antony Dovgal
527cc7bd37 avoid reading str[-1], add warning when invalid format specified
add test
2006-10-11 13:14:08 +00:00
Ilia Alshanetsky
e8ccee4873 MFB: Fixed bug #37262 (var_export() does not escape \0 character). 2006-10-09 18:09:42 +00:00
Antony Dovgal
373098b296 add test 2006-10-05 19:49:20 +00:00
Antony Dovgal
88e893b50a fix #39032 (strcspn() stops on null character) 2006-10-04 11:12:21 +00:00
Ilia Alshanetsky
7d3e03b2a7 MFB: Fixed bug #38859 (parse_url() fails if passing '@' in passwd). 2006-09-28 14:52:55 +00:00
Antony Dovgal
8d28cf264a fix tests 2006-08-28 19:52:01 +00:00
Hannes Magnusson
ea2891fa9d Fix tests on freebsd 2006-08-27 15:06:15 +00:00
Antony Dovgal
2fdd51a1a0 add test 2006-08-22 19:51:34 +00:00
Antony Dovgal
6ca1ce9986 fix test 2006-08-09 20:34:00 +00:00
Antony Dovgal
fddbbb0831 fix test 2006-08-08 22:05:20 +00:00
Antony Dovgal
f56a71c63c fix tests to be able to run just .phpt's 2006-08-08 22:01:24 +00:00
Antony Dovgal
af688c3394 add new test 2006-08-08 09:50:54 +00:00
Antony Dovgal
9cc9f2da3e use memrchr/zend_memrchr instead of strrchr
fix wrong test
2006-08-08 09:48:08 +00:00
Antony Dovgal
9e8c4eb56d fix test 2006-08-08 09:23:11 +00:00
Antony Dovgal
5f50f4ac84 fix test in unicode mode 2006-08-07 22:16:09 +00:00
Antony Dovgal
d8cef5a15d fix test 2006-08-07 22:14:15 +00:00
Antony Dovgal
fa6d24b330 add new test 2006-08-04 15:01:29 +00:00
Antony Dovgal
688000ca74 fix access to freed memory in pathinfo()
add test
2006-07-17 06:44:45 +00:00
Antony Dovgal
50242cd8c5 3+1 != 3 =) 2006-07-16 15:59:02 +00:00
Marcus Boerger
5544029699 - Fixed Bug #29538 number_format and problem with 0 2006-07-16 10:49:06 +00:00
Marcus Boerger
92a47b44b4 - Pathinfo allows to get filename (Toby S, Christian S) 2006-07-16 10:34:32 +00:00
Antony Dovgal
9de18e2ca2 don't try to compare strings if haystack is "" or shorter than needle
add test
2006-07-12 12:33:04 +00:00
Antony Dovgal
bfceaaf1d1 unicode_semantics -> unicode.semantics 2006-06-28 15:07:14 +00:00
Hannes Magnusson
0cce3777ea MFB: bug #37244 (base64_decode violates RFC 3548)
-Add test
2006-06-26 22:17:43 +00:00
Antony Dovgal
016fe711f9 fix tests 2006-06-20 19:49:44 +00:00
Hannes Magnusson
a24552497f Fixed test 2006-06-14 19:47:30 +00:00
Marcus Boerger
875caa4870 - MFB 2006-05-25 10:50:53 +00:00
Antony Dovgal
cf31c2f51a remove nonexistent tag 2006-04-25 12:50:14 +00:00
Antony Dovgal
7bde7e87eb MF51: fix possible substr_compare() crash
add new tests
2006-04-25 12:49:04 +00:00
Antony Dovgal
8c086bcf8d make this test to work on all systems 2006-04-14 20:30:47 +00:00
Antony Dovgal
a44fe39f40 fix test title 2006-04-12 22:21:13 +00:00
Antony Dovgal
4e85f445f0 add test 2006-04-05 12:29:35 +00:00
Dmitry Stogov
d1d9ce8fed Test for strtr() with non-ascii encoding 2006-03-27 14:37:14 +00:00
Dmitry Stogov
06cfa710b4 Fixed testFixed testFixed testFixed testFixed testFixed testFixed testFixed testFixed test 2006-03-27 10:15:02 +00:00
Derick Rethans
3df5f17231 - Commit intermediate work so that I can hack on it on some plane. 2006-03-26 02:15:47 +00:00
Derick Rethans
2ffc93140d - Fixed bug in ucfirst() implementation. If the tmp_len = 0 then it will not
write the uppercased character to the buffer, but only returns the length of
  the uppercased letter as per
  http://icu.sourceforge.net/apiref/icu4c/ustring_8h.html#a50.
- Updated is_string():
  If Unicode semantics is turned on, return "true" for Unicode strings only.
  If Unicode semantics is turned off, return "true" for native strings only.
- Added is_binary() function that returns "true" for native strings only.
- Added first implementation of upgraded strtr function. It works except if
  combining sequences or surrogates are used in the non-array method of calling
  this function.
2006-03-17 14:29:05 +00:00
Pierre Joye
bb1ec86f9d - remove magic_quotes_gpc, magic_quotes_runtime, magic_quotes_sybase
(calling ini_set('magic_....') returns 0|false
- get_magic_quotes_gpc, get_magic_quotes_runtime are kept but always return false
- set_magic_quotes_runtime raises an E_CORE_ERROR
2006-03-08 00:43:32 +00:00
Ilia Alshanetsky
2fb6ce838b MFB51: Fixed bug #36351 (parse_url() does not parse numeric paths properly). 2006-02-12 16:40:34 +00:00
Pierre Joye
154bb7c6a7 - MFB:
- 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:48:18 +00:00
Pierre Joye
6a158cf60d - MFB: #36306, crc32() result differs on 32-bit and 64-bit platforms 2006-02-07 00:24:56 +00:00
Ilia Alshanetsky
b031ac3fe4 MFB51: Fixed bug #36148 (unpack("H*hex", $data) is adding an extra
character to the end of the string).
2006-01-26 15:48:15 +00:00
Antony Dovgal
04ad1d1462 fix test 2006-01-19 21:27:15 +00:00
Dmitry Stogov
227295a4f1 Unicode stuff is changed according to decision maden on PDM.
Now IS_BINRAY data type is removed and IS_STRING starts behave as IS_BINARY in unicode mode. IS_STRING is incompatible with IS_UNICODE, so ALL functions should be improved to support unicode mode.
2006-01-17 12:18:53 +00:00
Ilia Alshanetsky
821e0586df MFB51: Fixed bug #35817 (unpack() does not decode odd number of hexadecimal
values)
2005-12-28 20:56:22 +00:00
Dmitry Stogov
ce89a8831e Fixed tests 2005-12-07 15:19:30 +00:00
Ilia Alshanetsky
5e2bdfcfcc MFB51: Added tests for new parse_url() and http_build_query() functionality. 2005-12-04 17:58:53 +00:00
Ilia Alshanetsky
7f66777bbf MFB51: Fixed bug #35427 (str_word_count() handles '-' incorrectly). 2005-11-29 16:14:47 +00:00
Dmitry Stogov
7f89924239 Unicode support 2005-10-04 07:59:14 +00:00
Dmitry Stogov
b0b0f8147d Fixed craches in substr_replace() 2005-09-08 12:40:01 +00:00
foobar
36ee721519 Test for bug #34214 2005-08-23 21:39:39 +00:00
Dmitry Stogov
8f6f97a77d Unicode support 2005-08-23 12:53:31 +00:00
Dmitry Stogov
704b4d7b61 Fixed tests 2005-08-18 06:32:39 +00:00
Dmitry Stogov
6d62ccc769 Unicode support 2005-08-17 14:01:06 +00:00
Dmitry Stogov
8c63822f0d Fixed implode() bugs 2005-08-17 07:59:31 +00:00
Ilia Alshanetsky
b3d7ae9399 Fixed bug #34148 (+,- and . not supported as parts of scheme). 2005-08-16 14:10:13 +00:00
Dmitry Stogov
f79fed6286 Unicode support 2005-08-16 10:18:43 +00:00
Dmitry Stogov
08fe0d1da3 Test engine is improved to support unicode mode 2005-08-15 14:37:55 +00:00
Johannes Schlüter
69303b58a4 - Added option to strstr() and stristr() to get a particular haystack component 2005-08-09 20:49:19 +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