Dmitry Stogov
bc53642c05
*printf() optimization and v*printf() warning message fix.
2018-11-07 02:40:15 +03:00
Dmitry Stogov
fd080a06d8
Fixed test failurs introduced by 9c144e0d82
2018-10-23 12:46:12 +03:00
Peter Kokot
0e60b812c0
Move all testing docs to qa.php.net
...
The qa.php.net currently includes nice collection of information about
tests and how to run them. Instead of maintaining two locations of this
information, this patch removes the README.TESTING from the php-src
repo. Patch for qa.php.net has been sent separately to that repo.
2018-10-18 08:01:22 +02:00
Peter Kokot
d679f02295
Sync leading and final newlines in *.phpt sections
...
This patch adds missing newlines, trims multiple redundant final
newlines into a single one, and trims redundant leading newlines in all
*.phpt sections.
According to POSIX, a line is a sequence of zero or more non-' <newline>'
characters plus a terminating '<newline>' character. [1] Files should
normally have at least one final newline character.
C89 [2] and later standards [3] mention a final newline:
"A source file that is not empty shall end in a new-line character,
which shall not be immediately preceded by a backslash character."
Although it is not mandatory for all files to have a final newline
fixed, a more consistent and homogeneous approach brings less of commit
differences issues and a better development experience in certain text
editors and IDEs.
[1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206
[2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2
[3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
2018-10-15 04:33:09 +02:00
Peter Kokot
d7a3edd45d
Trim trailing whitespace in *.phpt
2018-10-14 19:46:15 +02:00
Gabriel Caruso
9c144e0d82
Trim trailing whitespace in tests
2018-10-14 12:07:20 -03:00
Nikita Popov
4ca5b35771
Use ARRAY_OR_OBJECT arg in http_build_query
...
Instead of checking the type manually. Peculiarily the zpp
message does not use "array or object", but that's a general issue.
And I guess it's good that object support is not being advertised.
2018-10-11 13:04:08 +02:00
Gabriel Caruso
f72b6c5e19
Use EXPECT instead of EXPECTF when possible
2018-09-16 15:39:18 -03:00
Gabriel Caruso
1fe59810fe
Make test run on non zts builds
2018-08-01 23:14:56 -03:00
Gabriel Caruso
7f9e10f539
Remove invalid SKIPIF sections
2018-08-01 22:39:00 -03:00
Gabriel Caruso
9c8b3ae43f
Make more tests run on 64bit plataforms
2018-07-30 09:43:09 -03:00
Gabriel Caruso
d88bbcea82
Remove superfluous SKIPIF sections of always available constants
2018-07-30 00:53:28 -03:00
Gabriel Caruso
1461f8ef0d
Remove superfluous SKIPIF sections of always available functions
2018-07-29 15:42:19 -03:00
Dmitry Stogov
7ef8e3f87f
Fixed tests
2018-07-23 17:00:33 +03:00
Gabriel Caruso
c93aba042f
Give a reason why the test was skipped
...
This will help us debug why a test was skipped in GCOV
(http://gcov.php.net/viewer.php?version=PHP_HEAD&func=skip ), and maybe
put them to run again
2018-07-22 16:41:41 -03:00
Nikita Popov
f4a9da389b
Deprecate non-string needles in string search functions
...
Part of https://wiki.php.net/rfc/deprecations_php_7_3 .
2018-07-21 22:34:09 +02:00
Christoph M. Becker
9c2b4985b1
Merge branch 'PHP-7.2'
...
* PHP-7.2:
Fix #73817 : Incorrect entries in get_html_translation_table
2018-07-15 23:41:15 +02:00
Christoph M. Becker
8efd3c3387
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix #73817 : Incorrect entries in get_html_translation_table
2018-07-15 23:19:37 +02:00
Christoph M. Becker
0f8c1ee76d
Fix #73817 : Incorrect entries in get_html_translation_table
...
Due to incorrect string termination and length handling, several HTML
entities missed the trailing semicolon.
We also fix the obviously wrong expectations in two already existing
tests.
2018-07-15 23:06:38 +02:00
Anatol Belski
0fbbdd3aa1
[ci skip] Fix EOL
2018-07-07 17:14:54 +02:00
Christoph M. Becker
b37dafcc23
Add test for PR #2382
2018-07-06 18:59:04 +02:00
Nikita Popov
2cc6922cbf
Merge branch 'PHP-7.2'
2018-07-02 17:59:33 +02:00
Nikita Popov
3a236d0587
Merge branch 'PHP-7.1' into PHP-7.2
2018-07-02 17:59:15 +02:00
Nikita Popov
787593b708
Fix test after serialization change
...
And move it to a more appropriate location.
2018-07-02 17:58:26 +02:00
Nikita Popov
ad87e2bd6a
Merge branch 'PHP-7.2'
2018-03-23 18:57:58 +01:00
atvoicu
17ed2f21cf
Add missing skip prefix for some SKIPIF messages
2018-03-23 18:56:36 +01:00
Anatol Belski
192956bb7f
Switch to placeholder matching
2018-03-16 18:57:32 +01:00
Anatol Belski
6bbc4bf57e
Merge branch 'PHP-7.2'
...
* PHP-7.2:
Sync test with newer output
2018-03-16 18:56:55 +01:00
Anatol Belski
615ca3c99d
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Sync test with newer output
2018-03-16 18:56:08 +01:00
Anatol Belski
dfc07f038b
Sync test with newer output
...
Czech Republic vs. newer Czechia
2018-03-16 18:54:55 +01:00
Gabriel Caruso
b895690dfa
remove support for string|unicode in tests
2018-02-22 08:11:30 +01:00
Gabriel Caruso
ded3d984c6
Use EXPECT instead of EXPECTF when possible
...
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
2018-02-20 21:53:48 +01:00
Gabriel Caruso
2d48d734a2
Fix some misspellings
2018-02-06 16:59:00 +01:00
Gabriel Caruso
fef879a2d6
Use bool instead of boolean while throwing a type error
...
PHP requires boolean typehints to be written "bool" and disallows
"boolean" as an alias. This changes the error messages to match
the actual type name and avoids confusing messages like "must be
of type boolean, boolean given".
This a followup to ce1d69a1f6 , which
implements the same change for integer->int.
2018-02-04 23:09:40 +01:00
Gabriel Caruso
ce1d69a1f6
Use int instead of integer in type errors
...
PHP requires integer typehints to be written "int" and does not
allow "integer" as an alias. This changes type error messages to
match the actual type name and avoids confusing messages like
"must be of the type integer, integer given".
2018-02-04 19:08:23 +01:00
Gabriel Caruso
4861730a94
strcoll isn't always available
2018-02-04 17:32:56 +01:00
Stanislav Malyshev
3616b6b935
Cleanup some tests - remove unnecessary sections
...
Also unify credits - all are under --CREDITS-- now.
2018-02-04 02:21:40 -08:00
Gabriel Caruso
53dbc69a8d
Use %d when expecting line number in tests
2018-02-02 22:35:13 +01:00
Gabriel Caruso
faf785af9d
Fix misspelling vlaues to values
2018-01-28 21:55:21 +01:00
Sol Richardson
e161905919
Add test for strnatcmp() align left cases
2017-10-19 12:11:03 +01:00
Dmitry Stogov
f26fc527da
Fixed unzserialize(), to disable creation of unsupported data structures through manually crafted strings. (Dmitry)
2017-10-13 15:53:11 +03:00
Remi Collet
03361e9aa5
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
From documentation, only the sign of returned value is relevant
2017-08-24 10:30:06 +02:00
Remi Collet
c449057808
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
From documentation, only the sign of returned value is relevant
2017-08-24 10:29:44 +02:00
Remi Collet
b7e96f8e0e
From documentation, only the sign of returned value is relevant
...
With recent glibc, memcmp sometime return a negative value instead of -1
2017-08-24 10:27:38 +02:00
Xinchen Hui
05de40a651
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Update NEWS
Fixed bug #75075 (unpack with X* causes infinity loop)
2017-08-15 12:35:10 +08:00
Xinchen Hui
4f8e703854
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Fixed bug #75075 (unpack with X* causes infinity loop)
2017-08-15 12:34:37 +08:00
Xinchen Hui
d8c80af71e
Fixed bug #75075 (unpack with X* causes infinity loop)
2017-08-15 12:34:13 +08:00
Stanislav Malyshev
d75dbb0e31
Merge branch 'PHP-7.1'
...
* PHP-7.1:
Improve fix for #74145
Fix wddx
Fix tests
Fixed bug #74111
Fix bug #74603 - use correct buffer size
Fix bug #74651 - check EVP_SealInit as it can return -1
Update NEWS
Fix bug #74087
Fixed parsing of strange formats with mixed month/day and time strings
Fix bug #74145 - wddx parsing empty boolean tag leads to SIGSEGV
Fixed bug #74111
Fix #74435 : Buffer over-read into uninitialized memory
Fix bug #74603 - use correct buffer size
Fix bug #74651 - check EVP_SealInit as it can return -1
Update NEWS
Fix bug #73807
2017-07-04 21:23:16 -07:00
Stanislav Malyshev
0ba04f7737
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Improve fix for #74145
Fix wddx
Fix tests
Fixed bug #74111
Fix bug #74603 - use correct buffer size
Fix bug #74651 - check EVP_SealInit as it can return -1
Update NEWS
Fix bug #74087
Fixed parsing of strange formats with mixed month/day and time strings
Fix bug #74145 - wddx parsing empty boolean tag leads to SIGSEGV
Fixed bug #74111
Fix #74435 : Buffer over-read into uninitialized memory
Fix bug #74603 - use correct buffer size
Fix bug #74651 - check EVP_SealInit as it can return -1
Update NEWS
Fix bug #73807
2017-07-04 21:18:10 -07:00
Stanislav Malyshev
f76a6cd023
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Fix tests
2017-07-04 21:05:06 -07:00