Pierrick Charron
5a8c917c37
Fixed bug #54454 (substr_compare incorrectly reports equality in some cases)
2011-04-03 07:18:27 +00:00
Gustavo André dos Santos Lopes
547a96090f
- Fixed bug #54332 (trunk only, null pointer deref due to information loss on long to int conversion)
...
- Fixed some int* pointers being passed as size_t*.
2011-03-20 15:15:08 +00:00
Eyal Teutsch
94b3d60a4f
fixed tests to match the new float precision of 53, as described in bug 47168
2011-03-10 13:25:19 +00:00
Eyal Teutsch
adecc80459
fixed tests to match the new float precision of 53, as described in bug 47168
2011-03-10 13:25:19 +00:00
Gustavo André dos Santos Lopes
2a6968e43a
- Fixed bug #54055 (buffer overrun with high values for precision ini
...
setting).
#This fix (for g/G/k/H modes) is done at a different level than that for the
#modes e/E/f/F, at a bit higher level and therefore with less coverage. I
#chose this because it addresses the problem where it is -- the calling function
#that passes a buffer too small to php_gcvt.
2011-02-21 06:53:24 +00:00
Gustavo André dos Santos Lopes
1b2d14c5e1
- Fixed bug #54055 (buffer overrun with high values for precision ini
...
setting).
#This fix (for g/G/k/H modes) is done at a different level than that for the
#modes e/E/f/F, at a bit higher level and therefore with less coverage. I
#chose this because it addresses the problem where it is -- the calling function
#that passes a buffer too small to php_gcvt.
2011-02-21 06:53:24 +00:00
Gustavo André dos Santos Lopes
4a946a91e5
- Fixed CHARSET_UNICODE_COMPAT (ISO-8859-1 is compatible in the relevant sense).
...
- Fixed usage of zend_multibyte_get_internal_encoding (its return cannot be
cast to char*).
- Change tests to reflect that charset detection now relies on
internal_encoding, not on current_internal_encoding.
NOTE: This fixes the changes in rev 306077, but it remains that that change
introduced a BC break. I assumed it was intentional
2011-01-25 10:57:07 +00:00
Ilia Alshanetsky
a8b4724747
Fixed bug #47168 (printf of floating point variable prints maximum of 40 decimal places).
2010-11-19 16:36:10 +00:00
Ilia Alshanetsky
5bdb47791a
Fixed bug #47168 (printf of floating point variable prints maximum of 40 decimal places).
2010-11-19 16:36:10 +00:00
Gustavo André dos Santos Lopes
cdab5577c0
- Fixed borked test bug52820.phpt.
...
- Synced htmlentities17.phpt with trunk; there's no ≀ entity
in HTML 4.01.
2010-11-18 21:44:42 +00:00
Felipe Pena
bbf58f9234
- Fixed bug #53319 (strip_tags() may strip '<br />' incorrectly)
2010-11-16 22:16:44 +00:00
Felipe Pena
2e42d64007
- Fixed bug #53319 (strip_tags() may strip '<br />' incorrectly)
2010-11-16 22:16:44 +00:00
Gustavo André dos Santos Lopes
24636a7e1c
- Altered htmlentities19.phpt (now htmlentities24.phpt) to reflect new default encoding
...
being UTF-8.
- Moved ext/standard/tests/file/htmlentities19.phpt and htmlspecialchars.phpt to the
proper directory (tests/strings instead of tests/file). htmlentities19.phpt had to
be renamed in order not to clash with an existing file.
2010-11-15 01:57:16 +00:00
Gustavo André dos Santos Lopes
91727cb844
- Completed rewrite of html.c. Except for determine_charset, almost nothing
...
remains.
- Fixed bug on determine_charset that was preventing correct detection in
combination with internal mbstring encoding "none", "pass" or "auto".
- Added profiles for entity encode/decode for HTMl 4.01, XHTML 1.0, XML 1.0
and HTML 5. Added the constants ENT_HTML401, ENT_XML1, ENT_XHTML and
ENT_HTML5.
- htmlentities()/htmlspecialchars(), when told not to double encode, verify
the correctness of the existenting entities more thoroughly.
It is checked whether the numerical entity represents a valid unicode code
point (number is between 0 and 0x10FFFF). If using the flag ENT_DISALLOWED,
it is also checked whether that numerical entity is valid in selected
document. In HTML 4.01, all the numerical entities that represent a Unicode
code point (< U+10FFFFFF) are valid, but that's not the case with other
document types. If the entity is not valid, & is encoded to &.
For named entities, the check is also more thorough. While before the only
check would be to determine if the entity was constituted by alphanumeric
characters, now it is checked whether that entity is necessarily defined for
the target document type. Otherwise, & is encoded to &.
- For html_entity_decode(), only valid numerical and named entities (as defined
above for htmlentities()/htmlspecialchars() + !double_encode) are decoded.
But there is in this case one additional check. Entities that represent
non-SGML or otherwise invalid characters are not decoded. Note that, in
HTML5, U+000D is a valid literal character, but the entity 
 is not
valid and is therefore not decoded.
- The hash tables lazily created for decoding in html_entity_decode() that were
added recently were substituted by static hash tables. Instead of 1 hash
table per encoding, there's only one hash table per document type defined in
terms of unicode code points. This means that for charsets other than UTF-8
and ISO-8859-1, a conversion to unicode code points is necessary before
decoding.
- On the encoding side, the ad hoc ranges of entities of the translation
tables, which mapped (in general) non-unicode code points to HTML entities
were replaced by three-stage tables for HTML 4 and HTML 5. This mapping
tables are defined only in terms of unicode code points, so a conversion
is necessary for charsets other than UTF-8 and ISO-8859-1. Even so, the
multi-stage table is much faster than the previous method, by a factor
of 5; the conversion to unicode is a small penalty because it's just a
simple table lookup.
XML 1.0/htmlspecialchars() uses a simple table instead of a three-stage
table.
- Added the flag ENT_SUBSTITUTE, which makes htmlentities()/htmlspecialchars()
replace the invalid multibyte sequences with U+FFFD (UTF-8) or &#FFFD;
(other encodings).
- Added the flag ENT_DISALLOWED. Implements FR #52860 . Characters that cannot
appear literally are replaced by U+FFFD (UTF-8) or &#FFFD; (otherwise).
An alternative implementation would be to encode those characters into
numerical entities, but that would only work in HTML 4.01 due to limitations
on the values of numerical entities in other document types. See also the
effects on htmlentities()/htmlspecialchars() with !double_encode above.
2010-10-24 15:01:02 +00:00
Gustavo André dos Santos Lopes
a3cef7b435
- Three tests were "broken" by rev #304404 , not two. Commit the change
...
to remaining one.
2010-10-14 19:33:12 +00:00
Gustavo André dos Santos Lopes
738be1a003
- Three tests were "broken" by rev #304404 , not two. Commit the change
...
to remaining one.
2010-10-14 19:33:12 +00:00
Gustavo André dos Santos Lopes
30d6cc8919
- Fixed get_next_char(), used by htmlentities/htmlspecialchars, accepting
...
certain ill-formed UTF-8 sequences.
2010-10-14 19:14:06 +00:00
Gustavo André dos Santos Lopes
bfcb754eae
- Fixed get_next_char(), used by htmlentities/htmlspecialchars, accepting
...
certain ill-formed UTF-8 sequences.
2010-10-14 19:14:06 +00:00
Gustavo André dos Santos Lopes
99b613cbc8
- Added a 3rd parameter to get_html_translation_table. It now takes a charset
...
hint, like htmlentities et al.
- Fixed bug #49407 (get_html_translation_table doesn't handle UTF-8).
- Fixed bug #25927 (get_html_translation_table calls the ' ' instead of
').
- Fixed tests for get_html_translation_table and unified the Windows and
non-Windows versions of the tests.
2010-10-12 02:51:11 +00:00
Gustavo André dos Santos Lopes
4de6c3a948
- Added a 3rd parameter to get_html_translation_table. It now takes a charset
...
hint, like htmlentities et al.
- Fixed bug #49407 (get_html_translation_table doesn't handle UTF-8).
- Fixed bug #25927 (get_html_translation_table calls the ' ' instead of
').
- Fixed tests for get_html_translation_table and unified the Windows and
non-Windows versions of the tests.
2010-10-12 02:51:11 +00:00
Gustavo André dos Santos Lopes
7aa43a8d83
- Revamp of the decoding portion of html.c.
...
- Dramatic improvements on the performance of html_entity_decode and htmlspecialchars_decode, as the
string is now traversed only once. Speedups of 20 to 25 times with Windows release builds and a
~250 characters string (for 2nd and subsequent calls).
- Consistent behavior on html_entity_decode. For instance, the entity in "&<" would be decoded,
but not "&é". Not anymore. The code path for "basic" and non-basic entities is now mostly
shared.
- Code of html_entity_decode and htmlspecialchars_decode is now shared.
- [DOC] More consistent behavior of htmlspecialchars_decode. Instead of translating only <, >,
&, ", ' and ', now e.g. ", ', ', ', etc. are also decoded.
- [DOC] Previous translation of unicode code points in numerical entities was seriously broken. When
the code points for some character were not the same in unicode and the target encoding, the
behavior could be an erroneous translation (e.g. 0x80-0xA0 in win-1252) or no translation at all.
Added unicode translation tables for all single-byte encodings. Entities are not translated for
multi-byte entities, except for ASCII characters whose code points are shared. We could add
the huge translation tables (several thousand elements) for those encodings in the future.
- Fixed numerical entities that after # had text accepted by strcol being accepted.
- Much more commented and well-structured code...
- Tests for get_html_translation_table()) are broken. I stared fixing the tests, but then I realized
it was completely helpless because get_html_translation_table() is broken by not handling
multi-byte characters correctly.
2010-10-10 19:04:59 +00:00
Gustavo André dos Santos Lopes
4e2fd7eeba
- Fixed a typo in rev #304208 (24 instead of 34/'"').
...
- Improved the test bug53021.phpt to reflect other fixes in rev #304208 .
- Updated NEWS to reflect other fixes in rev #304208 .
2010-10-08 17:27:19 +00:00
Gustavo André dos Santos Lopes
dd5d1b2b66
- Fixed a typo in rev #304208 (24 instead of 34/'"').
...
- Improved the test bug53021.phpt to reflect other fixes in rev #304208 .
- Updated NEWS to reflect other fixes in rev #304208 .
2010-10-08 17:27:19 +00:00
Gustavo André dos Santos Lopes
485a094334
- Fixed bug #53021 (In html_entity_decode, failure to convert numeric entities with ENT_NOQUOTES and ISO-8859-1).
2010-10-08 16:19:58 +00:00
Gustavo André dos Santos Lopes
df42830468
- Fixed bug #53021 (In html_entity_decode, failure to convert numeric entities with ENT_NOQUOTES and ISO-8859-1).
2010-10-08 16:19:58 +00:00
Kalle Sommer Nielsen
a448b6a72b
MFB53: Changed deprecated ini options on startup from E_WARNING to E_DEPRECATED ( Fixes #52570 )
...
# Some of the updated tests were to make them sync with 5.3 although they don't run on trunk anymore
2010-08-11 21:41:30 +00:00
Kalle Sommer Nielsen
8deefa8780
Changed deprecated ini options on startup from E_WARNING to E_DEPRECATED ( Fixes #52570 )
...
# Trunk patch will follow shortly
2010-08-11 21:12:18 +00:00
Felipe Pena
00191c3c34
- Fixed bug #51899 (Parse error in parse_ini_file() function when empy value followed by no newline)
2010-05-26 02:18:17 +00:00
Felipe Pena
de531056f7
- Fixed bug #51899 (Parse error in parse_ini_file() function when empy value followed by no newline)
2010-05-26 02:18:17 +00:00
Michael Wallner
60c236be92
* fixed bug #47842 sscanf() does not support 64-bit values
2010-05-19 11:28:08 +00:00
Michael Wallner
e012b36ac2
* fixed bug #47842 sscanf() does not support 64-bit values
2010-05-19 11:28:08 +00:00
Kalle Sommer Nielsen
9a38f301d6
Remove highlight.bg, it was removed in the old trunk and its not referenced in zend_highlight.c, meaning its not even implemented correctly in 5.3.
2010-04-21 21:56:24 +00:00
Rasmus Lerdorf
906dd4eac5
Switch default_charset, if not specified, from ISO-8859-1 to UTF-8
...
I have been wanting to make this change for years, but there is a small
chance of BC issues, so it shouldn't go into a minor release.
2010-03-23 18:08:06 +00:00
Joey Smith
f829a21659
MFH'd crypt() tests - renamed to fit phpt schema, tests for DES-fallback,
...
use b'' on strings.
2010-02-23 21:14:51 +00:00
Pierre Joye
aff51406ef
- update test
2010-02-23 17:46:10 +00:00
Pierre Joye
c402adc3b2
- Corrected the sanity check of the "setting" string in _crypt_blowfish_rn() to
...
reject iteration counts encoded as 36 through 39. Previously, these would be
misinterpreted as being the same as 04 through 07. (Solar Designer)
2010-02-21 23:47:14 +00:00
Raphael Geissert
009a48ab3f
Fix the name of the locale in some tests
2010-02-21 18:22:46 +00:00
Pierre Joye
23fdc85e3a
- Fix #51059 , crypt can fail and return NULL, on almost all implementations
2010-02-21 18:11:11 +00:00
Joey Smith
7a0b1e55d8
MFH crypt() tests
2010-02-20 19:13:09 +00:00
Raphael Geissert
cf0e2b7026
Fix strtolower.phpt (bug #51031 )
2010-02-13 16:43:04 +00:00
Ilia Alshanetsky
b0f76c2534
Fixed bug #50847 (strip_tags() removes all tags greater then 1023 bytes long)
2010-02-01 12:59:08 +00:00
Moriyoshi Koizumi
7d9a7dbad6
- Fix bug #46478 (htmlentities() uses obsolete mapping table for character
...
entity references)
2009-12-22 05:50:34 +00:00
Pierre Joye
6ec6a9d62e
- add a test case and update the skip clause
2009-12-16 10:09:34 +00:00
Pierre Joye
77afccc28c
- #50334 , add CRYPT_SHA* constants and tests [DOC]
2009-12-09 01:43:23 +00:00
Moriyoshi Koizumi
413196c574
- Take account of surrogate pairs.
2009-12-07 15:41:43 +00:00
Pierre Joye
826ca288e7
- Fixed #50052 , Different Hashes on Windows and Linux on wrong Salt size
2009-11-02 20:46:52 +00:00
Moriyoshi Koizumi
20737bac6a
- Bug #49785 : take 5. What the hell happened to me...
2009-10-13 05:18:37 +00:00
Moriyoshi Koizumi
1835a63dfd
- A couple more fix for my previous fix.
...
(one of the fix by Arnaud Le Blanc. Thanks!)
2009-10-11 23:52:33 +00:00
Moriyoshi Koizumi
8a22597b65
- More tests to go.
2009-10-09 17:13:05 +00:00
Moriyoshi Koizumi
9d19866476
- Fixed bug #49785 (insufficient input string validation of htmlspecialchars()).
2009-10-09 10:02:38 +00:00
Dmitry Stogov
17aff0eb25
Fixed test (removed "bad" locale)
2009-09-22 08:22:29 +00:00
Dmitry Stogov
d12c66770f
Fixed tests ("none" is an alias of "false" and it can't be used as a string value of ini option)
2009-09-21 14:32:20 +00:00
Dmitry Stogov
7bfe056174
Fixed tests
2009-09-21 09:52:19 +00:00
Zoe Slattery
1c98e49afd
Test from 2009 testfest
2009-08-26 17:17:58 +00:00
andy wharmby
e90f0eda2d
New basic test for md5(). Tested on Windows, Linux and Linux 64 bit
2009-08-19 08:39:33 +00:00
andy wharmby
e9a960bba6
New str_replace() tests. All tested on Windows, Linux and Linux 64
2009-08-17 22:41:30 +00:00
andy wharmby
1cfc27bb8c
New basic string tests - includes back-porting a few existing tests back to 5.2. All tested on Windows, Linux and Linux 64
2009-08-17 10:37:30 +00:00
Stanislav Malyshev
e52517d610
standardise and clean up string functions parameter parsing
2009-08-13 06:44:50 +00:00
Rasmus Lerdorf
ecb9a94472
The system error here may not be "Filename too long". On OSX, for example,
...
it is "Invalid ioctl" in this case.
2009-08-09 14:20:54 +00:00
Rasmus Lerdorf
53349c7769
Doing a strnatcasecmp(chr(128),chr(255)) is completely non-sensical.
...
Logically one might think that chr(128) would collate before chr(255) except
this is a case-insensitive comparison and internally we toupper() both args.
toupper(chr(128)) is 128. There is no upper-case equivalent of this char.
toupper(chr(255)) is 120 so chr(255) collates before chr(128) in this
case-insensitive comparison. And these are rather bogus characters to feed
to a natsort test anyway.
2009-08-08 14:48:47 +00:00
andy wharmby
e0b0c49ae3
Add new use-case to parse_str() test. Tested on Windows, Linux and Linux 64
2009-08-05 08:54:27 +00:00
andy wharmby
3eaa521ed9
Fix tests
2009-08-04 23:16:25 +00:00
Jani Taskinen
96498c468c
- These tests fail if mbstring is enabled, not because of bad libc..
2009-08-03 10:23:23 +00:00
Jani Taskinen
48a514673a
- Skip some tests in 32bit systems, add cleanups where missing
2009-07-28 19:16:02 +00:00
Jani Taskinen
d6091b2521
- Fix test
2009-07-24 19:51:55 +00:00
Jani Taskinen
b991dfdb1f
- Fixed tests to be more portable
2009-07-23 19:06:56 +00:00
Jani Taskinen
af0c2c4760
- Fix test
2009-07-23 16:25:07 +00:00
Zoe Slattery
9ff94c82df
Remove empty sections. Fix bad use of --SKIP--
2009-07-21 14:02:24 +00:00
Alexey Zakhlestin
edb55a4166
fixed tests. money_format() is implemented in underlying system, not in php. So, we shouldn't test for actual values returned. They are different between systems
2009-07-17 15:56:36 +00:00
Jani Taskinen
785f1bd170
- Fixed bug #47481 (natcasesort() does not sort extended ASCII characters correctly)
2009-07-17 11:13:51 +00:00
Alexey Zakhlestin
3e326b91e7
fix tests corrupted by svn's eol-style=native
2009-07-15 13:44:14 +00:00
Felipe Pena
0e294f2121
- MFH: Fixed bug #48709 (metaphone and 'wh')
2009-06-30 11:46:20 +00:00
andy wharmby
3aaaf77a0e
New and fixed html tests. Tested in Windows, Linux and Linux 64.
2009-06-23 22:45:31 +00:00
andy wharmby
e6f4ec2f07
New basic parse_str() tests. Tested on Windows,Linux and Lnux 64 bit. Some tests fail on PHP 6 (tagged with XFAIL) due to bug 48658
2009-06-23 22:39:44 +00:00
andy wharmby
d7072fa367
New strcoll error test. Tested on Windows, Linux and Linux 64.
2009-06-16 19:39:39 +00:00
Matt Wilmas
26cde1ee2f
MFH: Updated tests after double->long conversion change (basically to match 5.2)
...
# Let me know about other failing tests I missed
2009-06-04 18:25:06 +00:00
Ilia Alshanetsky
c1c9645128
Fixed test
2009-06-02 12:19:34 +00:00
Ilia Alshanetsky
c3e3d607b4
Fixed bug #47564 (unpacking unsigned long 32bit bit endian returns wrong
...
result)
2009-05-12 12:34:55 +00:00
Matt Wilmas
09034cf3f4
MFH: Implemented manual scanning for strings/comments, plus misc. fixes
2009-05-05 01:35:44 +00:00
Zoe Slattery
3bd566f7c4
Refixing to follow documented behaviour
2009-04-29 07:53:10 +00:00
Antony Dovgal
319491b658
fix test
2009-04-28 09:04:28 +00:00
Arnaud Le Blanc
1bef730840
MFH
2009-04-25 21:13:07 +00:00
Sebastian Schürmann
f972956b9d
- Initial commit
2009-04-25 11:23:01 +00:00
Arnaud Le Blanc
a772d7c3ef
MFH
2009-04-24 19:48:41 +00:00
Zoe Slattery
11d43ac5d2
fixing incorrect --CLEAN-- sections
2009-04-16 12:28:03 +00:00
Matt Wilmas
f18b366ec8
MFH: Fixed tests, reverted changes from bug #47546
2009-04-02 09:42:26 +00:00
Matt Wilmas
c27bf17f63
MFH: explode() stuff:
...
- Fixed bug #47560 (explode()'s limit parameter odd behaviour) by reverting change for bug #47546
- Changed int to long where needed (should fix memory errors from overflow seen in bug #47854 )
- Simplified logic a bit with limit and its default value
- php_explode_negative_limit(): removed safe_emalloc (not needed; plain erealloc is used later)
- Moved declarations/allocation to optimize if the delimiter isn't found
- Changed ALLOC_STEP size for less realloc's (and maybe better memory block alignment?)
2009-04-01 17:05:36 +00:00
Brian Shire
dd031eee68
MFH: Fix scanner handling of NULL values in heredoc, nowdoc, strings, comments, and non-parsed content.
2009-03-16 01:40:14 +00:00
Brian Shire
9c16bfa194
MFH: Add proper EOF handling for language scanner. Fixes bug #46817 .
2009-03-11 22:11:53 +00:00
Kalle Sommer Nielsen
9d4718e098
MFH: Fix tests
2009-03-08 06:20:00 +00:00
Kalle Sommer Nielsen
627caefc4d
MFH: Fixed bug #47546 (Default value for limit parameter in explode is 0, not -1)
2009-03-03 11:47:31 +00:00
Felipe Pena
92775cd150
- New test
2009-02-18 22:53:56 +00:00
Moriyoshi Koizumi
b2b61661ed
- MFH: Refix bug #43840 .
...
- MFH: Fix bug #43841 .
- MFH: Remove redundant trailing dots from the error messages.
- MFH: Fix tests.
2009-02-15 07:10:29 +00:00
Felipe Pena
d4be93e87d
- Improve test
2009-02-06 10:40:28 +00:00
Felipe Pena
68cfe99fa5
- MFH: Fixed bug #47322 (sscanf %d does't work)
2009-02-06 10:20:09 +00:00
Felipe Pena
c3631156fc
- Fixed tests
2009-01-25 16:53:07 +00:00
andy wharmby
ba5407d065
Fix test
2009-01-22 00:23:01 +00:00
Antony Dovgal
30a0135d18
fix tests
2009-01-21 12:50:10 +00:00
andy wharmby
de5f62bba9
Fix SKIPIF logic
2009-01-20 23:19:44 +00:00
andy wharmby
6a5b8a57e5
New stripcslashes() tests. Tested on Window, Linux and Linux 64 bit
2009-01-20 22:54:36 +00:00
andy wharmby
d4e765f4a6
New vfprintf() tests. Tested on Window, Linux and Linux 64 bit
2009-01-20 14:19:31 +00:00
andy wharmby
71d0cd594c
New substr_replace() and unpack() error tests. Tested on Windows, Linux and Linux 64 bit.
2009-01-19 17:13:18 +00:00
andy wharmby
a7e129f217
New vprintf() tests. Tested on Windows, Linux and Linux 64 bit.
2009-01-19 16:03:44 +00:00
andy wharmby
0a34f4ad2c
New strval() tests. Tested on Windows, Linux and Linux 64 bit.
2009-01-19 15:54:47 +00:00
andy wharmby
68b5346285
New tests for str_pad(), str_shuffle(), stristr() and strlen(). Tested on WIndows, Linux and Linux 64 bit
2009-01-19 15:46:41 +00:00
andy wharmby
b83859120d
New nl_langinfo(), number_format() and ord() tests. Tested on Windows. Linux and Linux 64 bit
2009-01-18 22:51:02 +00:00
andy wharmby
571650e64d
New hebrev() and hebrevc() tests. Tested on Windows. Linux and Linux 64 bit
2009-01-18 21:59:39 +00:00
andy wharmby
2075498207
New sha1f() tests. Tested on Windows. Linux and Linux 64 bit
2009-01-18 19:37:45 +00:00
andy wharmby
b819f60eed
New sscanf() tests. Tested on Windows. Linux and Linux 64 bit
2009-01-18 14:40:29 +00:00
andy wharmby
cdef2ee23b
New explode() tests. Tested on Windows. Linux and Linux 64 bit
2009-01-18 14:35:00 +00:00
andy wharmby
18a6f9e55d
New money_format() tests. Tested on Windows, Linux and Linux 64 bit
2009-01-17 22:52:26 +00:00
andy wharmby
98076f58db
New trim() tests. Tested on Windows, Linux and Linux 64 bit
2009-01-17 16:41:15 +00:00
andy wharmby
d70ea4bc8a
New ltrim() tests. Tested on Windows, Linux and Linux 64 bit
2009-01-17 15:47:59 +00:00
andy wharmby
80ef307033
New string tests. Tested on Windows, Linux and Linu 64 bit
2009-01-16 22:46:08 +00:00
andy wharmby
7cf16584df
New string function tests. Tested on Windows, Linux and Linux 64 bit.
2009-01-16 12:53:27 +00:00
andy wharmby
1de33abc50
New test for strripos() string function. All tests checked on Windows, Linux and Linux 64 bit.
2009-01-15 13:40:05 +00:00
Felipe Pena
857959838f
- Fixed tests
2009-01-09 02:11:54 +00:00
Brian Shire
b4141cc424
MFH: fix explode behavior to respect negative limit when string is empty.
2008-12-27 05:15:51 +00:00
Arnaud Le Blanc
18794addbd
MFH: Added ENT_IGNORE as a compatibility flag for htmlentities() and
...
htmlspecialchars() to skip multibyte sequences intead of returning an
empty string (as iconv's //IGNORE). These functions will still never
return an invalid or incomplete multibyte sequence.
Fixes #43896
2008-11-26 03:00:06 +00:00
Felipe Pena
b4150fdc3f
- MFH: Fixed bug #46578 (strip_tags() does not honor end-of-comment when it encounters a single quote)
2008-11-21 19:16:50 +00:00
Felipe Pena
83c0eb69ad
- Fixed tests
2008-11-19 16:58:28 +00:00
Felipe Pena
8f12025b21
- MFH: Added str_getcsv()
2008-11-02 18:24:34 +00:00
Antony Dovgal
bbbb0f1ae5
fix test
2008-09-16 13:41:34 +00:00
Dmitry Stogov
1474d9dfad
Fixed bug #43053 (Regression: some numbers shown in scientific notation). (int-e at gmx dot de)
...
some 64bit test files may need to be fixed
2008-09-15 11:47:16 +00:00
Pierre Joye
8c6ea95dc3
- MFH: fix test on windows
2008-08-21 18:25:13 +00:00
Pierre Joye
a6b21d3c98
- new API
...
- MFH: use 'C' on win
2008-08-21 12:25:07 +00:00
Pierre Joye
527e3a339c
- MFH: don't skip if windows matches
2008-08-21 12:13:50 +00:00
Pierre Joye
979d3abbd8
- new params parsing API
...
- use "C" instead of ""
2008-08-21 12:05:30 +00:00
Pierre Joye
8d45abb514
- MFH: skip 007 on non windows platform and add a win specific version (file not found instead of filename too long)
2008-08-21 11:01:55 +00:00
Pierre Joye
2cde8f416a
- new args parsing API and correct LOCALE definition (why utf-8 when only ascii is tested)
2008-08-20 13:09:39 +00:00
Felipe Pena
0dbc79339c
- New parameter parsing API (zend_get_parameters_array_ex--)
...
- Fixed tests
2008-08-16 21:32:41 +00:00
Jani Taskinen
ec8318b438
MFH: fix test
2008-08-14 20:33:35 +00:00
Antony Dovgal
a61c0c8414
MFH: add quoted_printable_encode()
2008-08-14 10:12:21 +00:00
Felipe Pena
ef2489f6e7
- MFH: New parameter parsing API (for *printf())
2008-08-10 21:49:01 +00:00
Arnaud Le Blanc
71e50de4fc
MFH: Fixed bug #45581 (htmlspecialchars() double encoding &#x hex items)
2008-08-10 13:26:13 +00:00
Stanislav Malyshev
4bd1aec2f9
fix memnstr bug, by Laurent Gaffie
2008-08-05 20:14:27 +00:00
Antony Dovgal
c4b8d7149f
fix test
2008-07-23 09:29:21 +00:00
Scott MacVicar
6c48a01f40
MFH: Fix integer oveflow in strrpos()
2008-07-22 01:10:58 +00:00
Scott MacVicar
a9d60c014b
MFH: Fix bug when < is used within attribute.
2008-07-15 14:46:12 +00:00
Felix De Vliegher
0adb8c0b10
Tests for strpbrk(), testfest.php.net task #91 and #92 .
2008-07-15 11:14:42 +00:00
Josie Messa
be5633612a
- Tests from TestFest
...
- Have slightly modified similar_text_error.phpt from original file
2008-07-14 15:27:19 +00:00
Felipe Pena
8ea5ae6c9a
- MFB: Fixed bug #45485 (strip_tags and <?XML tag)
2008-07-11 12:25:38 +00:00
David Soria Parra
f41c78ddbb
PHP Testfest. Tests done by Felix De Vliegher
2008-07-10 23:46:49 +00:00
Antony Dovgal
9ed8580b54
fix test
2008-07-03 09:22:17 +00:00
Dmitry Stogov
f7938051d4
Use new parameter parsing API
2008-07-01 10:01:09 +00:00
Olivier Hill
c5ec48e858
New parameter parsing API
2008-06-25 12:16:17 +00:00
David Coallier
0674689940
- Tests for parsing parameter api
2008-06-24 22:51:57 +00:00
Olivier Hill
906b5b80df
New parameter parsing API for string, part I
2008-06-22 19:22:41 +00:00
Raghubansh Kumar
48b0cc4134
New testcases for vfprintf(), Committed for Felix De Vliegher, TestFest Task No: 124, Tested on RHEL5 -32bit, WinXP-32bit
...
Added *.txt to .cvsignore
2008-06-20 04:21:58 +00:00
Stanislav Malyshev
5e562853ff
fix tests for builtin Zend functions using new parsing API
2008-06-18 23:45:36 +00:00
Matt Wilmas
77feabfc71
MFH: Fixed test after fixing bug #44830
2008-05-12 05:08:49 +00:00
Greg Beaver
217b911d0e
fix test
2008-04-13 21:27:18 +00:00
Felipe Pena
fce4f9600e
MFB: Fixed bug #44703 (htmlspecialchars() does not detect bad character set argument)
2008-04-11 19:06:12 +00:00
Dmitry Stogov
2790eebdbc
Fixed tests
2008-03-24 10:09:41 +00:00
Marcus Boerger
af316021e8
- Rewrite scanner to be based on re2c instead of flex
...
The full patch is available as:
http://php.net/~helly/php-re2c-5.3-20080316.diff.txt
This is against php-re2c repository version 98
An older patch against version 97 is available under:
http://php.net/~helly/php-re2c-97-20080316.diff.txt
2008-03-16 21:06:55 +00:00
Felipe Pena
a9f5ad7e87
MFB: Fixed bug #44242 (metaphone('CMXFXM') crashes PHP)
2008-02-25 22:54:57 +00:00
Marcus Boerger
d3e5026564
- MFH Add E_DEPRECATED (Lars Strojny, Felipe Pena, Marcus)
...
[DOC] Finally added deprecation messages
2008-02-23 17:06:22 +00:00
Etienne Kneuss
12bd169f24
MFH: Fix inconcistencies between substr and substr_compare
2008-02-13 17:02:16 +00:00
Jani Taskinen
7e00a410b3
fix test
2008-02-07 13:44:50 +00:00
Marcus Boerger
02b13cdd8a
- Fix the expectations. Tests still fails because of something else.
2008-02-02 14:37:29 +00:00
Felipe Pena
8c76a00f93
New tests and fix tests (new error message)
2008-02-01 13:41:19 +00:00
Antony Dovgal
89273e1482
add test
2008-01-28 23:07:45 +00:00
Nuno Lopes
500ee29e6c
be more strict in the skipif
2008-01-27 16:54:22 +00:00
Nuno Lopes
d16f4cad0a
fix a bunch of SKIPIF (check for non available locales)
2008-01-27 16:45:43 +00:00
Antony Dovgal
8d2ad5c12b
add new test
2008-01-22 15:42:36 +00:00
David Coallier
a3c09d611c
- MFH (lcfirst())
...
- Initial test for lcfirst
2008-01-19 19:27:22 +00:00
David Coallier
516a9c15d6
- Making sure the tests are not failing after modifications to the new
...
zend-parsing-parameters in ucfirst()
2008-01-16 12:56:20 +00:00
Dmitry Stogov
0d88ad9b96
Added 64-bit tests (Serg)
2007-12-27 11:39:01 +00:00
Dmitry Stogov
ed5a424b4f
Additional fix for bug #42868
2007-12-24 18:09:50 +00:00
Raghubansh Kumar
8204525427
fix tests
2007-12-24 04:27:55 +00:00
Raghubansh Kumar
e15fb3853a
fix tests
2007-12-20 17:27:13 +00:00
Raghubansh Kumar
1ccf0ba714
fix test
2007-12-19 10:39:10 +00:00
Derick Rethans
9541a66cb8
- MFH: Fixed var_export() for array keys
...
- MFH: Fixed broken explode() test
2007-12-18 10:53:39 +00:00
Dmitry Stogov
2b981769a3
Fixed bug #42868 (Floats cast to integer produce unpredicatable results). (Zoe Slattery)
2007-12-17 10:02:13 +00:00
Derick Rethans
fdafd5cf81
- MFH: Fixed Bug #42272 (var_export() incorrectly escapes char(0)).
2007-12-09 16:54:52 +00:00
Raghubansh Kumar
b70d00a648
fix tests : better float values
2007-12-03 13:03:31 +00:00
Raghubansh Kumar
fdae976d58
fix tests: better float values
2007-12-03 12:02:29 +00:00
Raghubansh Kumar
0759fbd8e5
fix test for linux64 - choosing smaller float values
2007-11-14 16:31:45 +00:00
Raghubansh Kumar
4b731b1af0
fix tests
2007-11-09 12:02:42 +00:00
Raghubansh Kumar
7ab56f7a43
fix test : better float values
2007-11-09 08:52:27 +00:00
Raghubansh Kumar
54f6189445
fix tests: better float values
2007-11-09 07:19:00 +00:00
Raghubansh Kumar
640f060335
missing testcases - sprintf() function
2007-11-09 04:20:10 +00:00
Antony Dovgal
6aeaa2105a
fix tests
2007-11-08 11:19:32 +00:00
Antony Dovgal
91c725bd22
fix test
2007-11-08 10:29:52 +00:00
Jani Taskinen
b51e9221b1
MFH: sync
2007-11-06 13:38:15 +00:00
Antony Dovgal
e6e9d845a5
MFH: fix tests, add 64bit versions
2007-11-06 12:54:28 +00:00
Jani Taskinen
b3a334eaf2
Fix tests (MFH)
2007-11-05 17:43:21 +00:00
Raghubansh Kumar
4c5c88b716
fix tests: better float values
2007-11-02 03:03:26 +00:00
Raghubansh Kumar
1d0c11f472
New testcases for strip_tags() function
2007-10-09 12:44:45 +00:00
Raghubansh Kumar
5f24b53cc5
fix tests
2007-10-09 12:17:48 +00:00
Raghubansh Kumar
f567d4c6ad
fix tests
2007-10-09 11:04:17 +00:00
Raghubansh Kumar
5e46edd6c3
fix tests
2007-10-09 06:15:39 +00:00
Raghubansh Kumar
d42d41000d
fix test
2007-10-08 16:04:28 +00:00
Raghubansh Kumar
e52c923f68
fix test
2007-10-08 15:45:53 +00:00
Raghubansh Kumar
513f5e5d5f
fix tests
2007-10-08 15:37:57 +00:00
Raghubansh Kumar
7ccc5eef20
New testcases for strtr() function
2007-10-08 15:21:36 +00:00
Raghubansh Kumar
f8eacb31c0
New testcases for get_html_translation_table() function
2007-10-08 15:21:13 +00:00
Raghubansh Kumar
aeeafd3b59
fix test
2007-10-08 06:22:13 +00:00
Raghubansh Kumar
9f9495a484
New testcases for setlocale() function
2007-10-05 19:32:28 +00:00
Raghubansh Kumar
a458ad89f9
New testcases for nl2br() function
2007-10-05 18:46:02 +00:00
Raghubansh Kumar
8ad09bf445
New testcases for strrpos() function
2007-10-05 18:33:24 +00:00
Raghubansh Kumar
2c63918058
New testcases for str_split() function
2007-10-05 18:18:18 +00:00
Raghubansh Kumar
805a1b9e9c
New testcases for vsprintf() function
2007-10-05 18:09:31 +00:00
Stanislav Malyshev
5840ba0ffe
MFB utf test
2007-10-03 05:05:37 +00:00
Jani Taskinen
b34fcd4791
MFH: Fixed bug #42789
2007-10-01 12:05:41 +00:00
Jani Taskinen
1e5ca0a765
- Fix tests (too many dots in error messages :)
2007-09-30 21:35:52 +00:00
Antony Dovgal
38c37bb61f
fix tests
2007-09-30 14:37:33 +00:00
Raghubansh Kumar
9645bbbbee
smaller tests already exists
2007-09-29 17:19:03 +00:00
Raghubansh Kumar
1aa5830044
New testcases for strrchr() function
2007-09-29 16:59:07 +00:00
Raghubansh Kumar
efc32bacaa
New testcases for stripos() function
2007-09-29 16:56:46 +00:00
Raghubansh Kumar
2a22e422ad
New testcases for sprintf() function
2007-09-29 16:54:57 +00:00
Raghubansh Kumar
b9ccaf44fb
New testcases for join() function
2007-09-29 16:52:54 +00:00
Raghubansh Kumar
3253c3b6dd
New testcases for htmlspecialchars_decode() function
2007-09-29 16:51:42 +00:00
Raghubansh Kumar
482eabc6b6
New testcases for chunk_split() function
2007-09-29 16:49:41 +00:00
Raghubansh Kumar
2ff92b584e
new testcases for strrev() function
2007-09-26 14:40:14 +00:00
Raghubansh Kumar
433d1a5d02
New testcases for crc32() function
2007-09-26 06:03:55 +00:00
Raghubansh Kumar
b17d0085f3
New testcases for strspn() function
2007-09-22 10:51:38 +00:00
Raghubansh Kumar
0aa09167c1
New testcases for strcspn() function
2007-09-22 10:36:15 +00:00
Raghubansh Kumar
eb3f8fda65
New testcases for strtok() function
2007-09-22 07:39:57 +00:00
Raghubansh Kumar
35990e7c5b
better output matching/fixes
2007-09-15 07:29:55 +00:00
Raghubansh Kumar
b59c171e23
New testcases for strncasecmp()
2007-09-14 19:02:07 +00:00
Raghubansh Kumar
6d12620591
New testcases for chop()
2007-09-14 18:58:02 +00:00
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