Gustavo André dos Santos Lopes
d77cde46e1
Merge branch '5.4'
2012-04-23 22:10:50 +01:00
Gustavo André dos Santos Lopes
485638a09c
Merge branch '5.3' into 5.4
2012-04-23 22:10:23 +01:00
Gustavo André dos Santos Lopes
8d748e5de5
Fixed bug #61764 : 'I' unpacks n as signed if n > 2^31-1 on LP64
...
Also fixed possible invalid read on big endian LP64.
2012-04-23 22:09:38 +01:00
Gustavo André dos Santos Lopes
dbc5b42435
pack() with new "Z" more in line with Perl.
...
Made pack() with "Z" force NUL termination, even if it mean truncating input
to less than the number of characters specified and if the number of
characters is "*", the output will be one byte larger than the input.
Improved tests.
2012-04-17 22:21:32 +01:00
theanomaly.is@gmail.com
4968fa644b
Fixed bug #61038 ; "Z" and better behavior for unpack()
...
Added new "Z" argument to pack/unpack, now allowing "a" to return
data without stripping, and "A" strips all trailing white space,
while "Z" will strip everything after the first null.
2012-04-17 21:09:04 +01:00
Nikita Popov
8ac56c15c9
Merge branch 'PHP-5.4'
...
* PHP-5.4:
Fix bug #61660 : bin2hex(hex2bin($data)) != $data
2012-04-08 22:41:04 +02:00
Nikita Popov
7ae93a2c4c
Fix bug #61660 : bin2hex(hex2bin($data)) != $data
...
If the input data has an odd length a warning is thrown and false is returned.
2012-04-08 22:38:21 +02:00
Gustavo André dos Santos Lopes
efc94f3115
- Fixed bug #61374 : html_entity_decode tries to decode code points that don't
...
exist in ISO-8859-1.
2012-03-13 18:08:30 +00:00
Gustavo André dos Santos Lopes
ed98579924
- Fixed bug #61374 : html_entity_decode tries to decode code points that don't
...
exist in ISO-8859-1.
2012-03-13 18:08:30 +00:00
Rasmus Lerdorf
bc8e8b3467
Fix tests that break if filter.default isn't set to unsafe_raw
2012-03-02 05:04:40 +00:00
Rasmus Lerdorf
f564921c15
Fix tests that break if filter.default isn't set to unsafe_raw
2012-03-02 05:04:40 +00:00
Adam Harvey
03f3d03ce0
MFH: Fix bug #60801 (strpbrk() mishandles NUL byte). (Trunk commit: r322934).
2012-03-02 03:39:04 +00:00
Adam Harvey
4fc6861030
MFH: Fix bug #60801 (strpbrk() mishandles NUL byte). (Trunk commit: r322934).
2012-03-02 03:39:04 +00:00
Rasmus Lerdorf
4ed1640b35
This one depends on max_input_vars as well
2012-02-14 09:50:46 +00:00
Rasmus Lerdorf
f60145a1a2
This one depends on max_input_vars as well
2012-02-14 09:50:46 +00:00
Rasmus Lerdorf
ec9fe66069
This one depends on max_input_vars as well
2012-02-14 09:50:46 +00:00
Gustavo André dos Santos Lopes
d4cf399cc4
- Merge r323056 (see bug #60965 ).
2012-02-05 09:59:33 +00:00
Gustavo André dos Santos Lopes
122e11ef6e
- Fixed bug #60965 (Buffer overflow on htmlspecialchars/entities with
...
$double=false).
- Removed unused variable.
- Given maxlen the usual meaning of *len variables (terminator not included).
- Changed some comments.
2012-02-04 18:12:18 +00:00
Adam Harvey
4dc8b1ad11
Fix bug #60801 (strpbrk() mishandles NUL byte) on trunk only for now.
2012-01-30 13:29:15 +00:00
Daniel Convissor
bbf403f4ce
Remove test for bug 60675, the change in behavior between 5.3 and 5.4 is intentional.
2012-01-07 23:09:49 +00:00
Daniel Convissor
5df401af21
Remove test for bug 60675, the change in behavior between 5.3 and 5.4 is intentional.
2012-01-07 23:09:49 +00:00
Daniel Convissor
b21b982672
Test for bug 60675.
2012-01-06 22:10:04 +00:00
Daniel Convissor
edf86e5282
Test for bug 60675.
2012-01-06 22:09:15 +00:00
Stanislav Malyshev
e2a2ed348f
fix bug #55871 - Interruption in substr_replace()
2012-01-02 00:47:57 +00:00
Stanislav Malyshev
cbcddcb02e
fix bug #55871 - Interruption in substr_replace()
2012-01-02 00:47:57 +00:00
Felipe Pena
032fb4ca9c
- Fixed tests
2011-12-01 15:38:17 +00:00
Felipe Pena
bffd89487d
- Fixed tests
2011-12-01 15:38:17 +00:00
Rasmus Lerdorf
ffb1c4d8ef
Fix typo and don't use 'a' as an invalid filename since it is the default
...
gcc binary filename and is thus not unlikely to be left lying around in the
build dir which cause these tests to fail
2011-11-12 18:46:04 +00:00
Rasmus Lerdorf
aada9503fc
Fix typo and don't use 'a' as an invalid filename since it is the default
...
gcc binary filename and is thus not unlikely to be left lying around in the
build dir which cause these tests to fail
2011-11-12 18:46:04 +00:00
Stanislav Malyshev
d81ea16ef1
Changed silent conversion of array to string to produce a notice. (Patrick)
2011-10-21 06:08:47 +00:00
Stanislav Malyshev
ed12ebc79c
Changed silent conversion of array to string to produce a notice. (Patrick)
2011-10-21 06:08:47 +00:00
Pierre Joye
039fc22164
- fix text (encoding was broken with the previous commit)
2011-09-14 10:30:31 +00:00
Xinchen Hui
4c7cd475dc
MFH, fix test
2011-09-13 13:20:09 +00:00
Xinchen Hui
84c94e29c9
Fixed Bug #55674 (fgetcsv & str_getcsv skip empty fields in some tab-separated records) which was introduced by r311543
2011-09-13 12:44:13 +00:00
Xinchen Hui
54d48bb31f
Fixed Bug #55674 (fgetcsv & str_getcsv skip empty fields in some tab-separated records) which was introduced by r311543
2011-09-13 12:44:13 +00:00
Xinchen Hui
1bbda643f2
Fixed Bug #55674 (fgetcsv & str_getcsv skip empty fields in some tab-separated records) which was introduced by r311543
2011-09-13 12:44:13 +00:00
Pierre Joye
d37605a5f1
- useless skipif
2011-09-06 17:10:16 +00:00
Pierre Joye
8e330affd6
- useless skipif
2011-09-06 15:49:28 +00:00
Pierre Joye
520e26718f
- useless skipif
2011-09-06 15:49:28 +00:00
Pierre Joye
3d08ebd419
- useless skipif
2011-09-06 15:49:28 +00:00
Pierre Joye
fdf9771773
- use the same test on win
2011-09-05 13:37:30 +00:00
Pierre Joye
830fce0c7c
- use the same test on win
2011-09-05 13:37:30 +00:00
Shein Alexey
fae3000d44
Make the test faster, what was done:
...
1) replaced multiple htmlentities calls with one call to get_html_translation table since they share the same code internally
2) reduced the upper range of the "for" loop to 0x2710 (10000), according to http://www.w3.org/TR/html4/sgml/entities.html it's enough
3) placed additional check to make sure all entities from get_html_translation_table were checked in the test
2011-09-05 11:00:14 +00:00
Shein Alexey
d1e7999d5b
Make the test faster, what was done:
...
1) replaced multiple htmlentities calls with one call to get_html_translation table since they share the same code internally
2) reduced the upper range of the "for" loop to 0x2710 (10000), according to http://www.w3.org/TR/html4/sgml/entities.html it's enough
3) placed additional check to make sure all entities from get_html_translation_table were checked in the test
2011-09-05 11:00:14 +00:00
Shein Alexey
5f5b7175ea
Make the test faster, what was done:
...
1) replaced multiple htmlentities calls with one call to get_html_translation table since they share the same code internally
2) reduced the upper range of the "for" loop to 0x2710 (10000), according to http://www.w3.org/TR/html4/sgml/entities.html it's enough
3) placed additional check to make sure all entities from get_html_translation_table were checked in the test
2011-09-05 11:00:14 +00:00
Stanislav Malyshev
9d52e9b15f
test fixes on Darwin
2011-08-31 07:10:17 +00:00
Stanislav Malyshev
25031cd387
test fixes on Darwin
2011-08-31 07:10:17 +00:00
Gustavo André dos Santos Lopes
49323ad447
- Fixed test htmlentities15.phpt.
2011-08-31 06:32:05 +00:00
Gustavo André dos Santos Lopes
6690258734
- Fixed test htmlentities15.phpt.
2011-08-31 06:32:05 +00:00
Arpad Ray
a6a08dc322
Fixed bug #55366 : keys lost when using substr_replace an array
2011-08-29 21:35:28 +00:00