David Carlier
6419ae4c48
Merge branch 'PHP-8.3' into PHP-8.4
2024-12-01 13:58:38 +00:00
David Carlier
60eca67439
Merge branch 'PHP-8.2' into PHP-8.3
2024-12-01 13:58:21 +00:00
David Carlier
73ebc92617
Fix GH-16959: snmpget modifies the object_id (as array).
...
Instead of modifying the zval, we use the zend_try_get_string.
close GH-16969
2024-12-01 13:57:31 +00:00
Christoph M. Becker
580435354e
Support bug64159.phpt on Windows CI (GH-15895)
...
This test queries `extOutput` for the first line of output of the
command which was executed when snmpd started (`HexTest` in snmpd.conf).
Since there is no `/bin/sh` on Windows, no command would be run, and as
such we received an empty string. We fix that by dynamically adjusting
snmpd.conf to run a JScript which has the same output as bigtest.
We also make the test diff more helpful in case of failures, where so
far we only would have known that the output had a different message
digest.
2024-09-21 16:03:25 +02:00
Gina Peter Bnayard
5853cdb73d
Use "must not" instead of "cannot" wording
2024-08-21 21:12:17 +01:00
Ilija Tovilo
ba1d9d0ab2
[skip ci] Avoid running asan tests that timeout
...
This just adds to the test time for no reason.
2023-10-02 16:57:50 +02:00
Ilija Tovilo
be4db6b550
Suppress snmp lib memory leak, xfail ASAN tests
...
I don't know enough about this library to fix those :(
2023-03-27 16:38:44 +02:00
Christoph M. Becker
97ea6ad0e6
Test snmp on Windows CI
...
We use the snmpd which is now bundled with the net-snmp dependency, and
the MIBS which are also shipped with it.
We also fix the tests/snmpd.conf, and mark two failing tests as XFAIL.
Closes GH-8503.
2022-05-11 13:24:23 +02:00
Nikita Popov
902d64390e
Deprecate implicit dynamic properties
...
Writing to a proprety that hasn't been declared is deprecated,
unless the class uses the #[AllowDynamicProperties] attribute or
defines __get()/__set().
RFC: https://wiki.php.net/rfc/deprecate_dynamic_properties
2021-11-26 14:10:11 +01:00
Kamil Tekiela
10f102d790
Fix 'can not' in error messages
2021-10-05 09:51:58 +01:00
Remi Collet
718e91343f
add SHA256 and SHA512 for security protocol
2021-08-11 13:02:18 +02:00
Nikita Popov
c289f5241d
Fix snmp test for ipv6
...
Just check that the port is present, not the exact form of the
IP address.
2021-07-20 15:01:51 +02:00
Nikita Popov
b5a14e6c04
Port skipif.inc files to EXTENSIONS
2021-06-11 16:27:50 +02:00
Máté Kocsis
87e4970ebc
Declare SNMP properties
...
Additionally, convert them to typed properties.
Closes GH-6742
2021-05-14 17:03:05 +02:00
Nikita Popov
5836e3ed97
Update ext/snmp parameter names
...
Closes GH-6298.
2020-10-08 17:10:52 +02:00
Máté Kocsis
e950ca13ea
Consolidate the usage of "either" and "one of" in error messages
...
Closes GH-6173
2020-09-20 19:41:47 +02:00
Nikita Popov
c5401854fc
Run tidy
...
This should fix most of the remaining issues with tabs and spaces
being mixed in tests.
2020-09-18 14:28:32 +02:00
George Peter Banyard
62c20c662a
Promote warnings to Error in SNMP extension
2020-09-15 13:08:07 +02:00
Nikita Popov
41f4e912bb
Mark snmp tests as conflicting
2020-09-09 11:24:06 +02:00
Máté Kocsis
9975986b7e
Improve error messages mentioning parameters instead of arguments
...
Closes GH-5999
2020-09-09 10:47:43 +02:00
Nikita Popov
e9d1893f15
Wildcard output differences in snmp tests
...
And point out that snmp-mibs-downloader is needed.
2020-09-09 10:02:25 +02:00
Nikita Popov
b553ba7c0d
Avoid use of remote_port in snmp
...
This field is not used (and has not been used for a long time --
I've seen some mailing list thread from 2003 about it!) and throws
a deprecation warning. The port is part of peername instead (for
transports that support a port at all).
2020-09-09 09:33:36 +02:00
Nikita Popov
905c79c05c
Fix some snmp stubs
...
As well as some basic mistakes in tests.
2020-09-08 17:16:57 +02:00
Máté Kocsis
8107a1da5a
Use ZPP instead of custom type checks
...
We can add these types as a native type declaration to stubs as a side-effect. Closes GH-6068
2020-09-04 14:32:34 +02:00
Fabien Villepinte
0c6d06ecfa
Replace EXPECTF when possible
...
Closes GH-5779
2020-06-29 21:31:44 +02:00
Máté Kocsis
01b266aac4
Improve error messages of various extensions
...
Closes GH-5278
2020-03-23 18:59:04 +01:00
Máté Kocsis
960318ed95
Change argument error message format
...
Closes GH-5211
2020-02-26 15:00:08 +01:00
Máté Kocsis
ac0853eb26
Make type error messages more consistent
...
Closes GH-5092
2020-02-17 14:22:17 +01:00
Nikita Popov
f8d795820e
Reindent phpt files
2020-02-03 22:52:20 +01:00
Máté Kocsis
d1764ca330
Make error messages more consistent by fixing capitalization
...
Closes GH-5066 As a first step, let's capitalize their initial letter when it is applicable.
2020-01-17 14:52:46 +01:00
Máté Kocsis
c3cf01b553
Fix #78880 : Yet another batch of spelling errors
2020-01-16 12:04:00 +01:00
Fabien Villepinte
a555cc0b3d
Clean DONE tags from tests
...
Remove most of the `===DONE===` tags and its variations.
Keep `===DONE===` if the test output otherwise becomes empty.
Closes GH-4872.
2019-11-07 21:31:47 +01:00
Christoph M. Becker
0436bc875e
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fix miscellaneous typos in docs
2019-10-19 19:20:25 +02:00
Tyson Andre
38f388fba4
Fix miscellaneous typos in docs
2019-10-19 19:19:28 +02:00
Dmitry Stogov
e7e8e45166
Fixed tests
2019-10-02 02:31:01 +03:00
Christoph M. Becker
76179cdf3d
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Add missing skip keyword in tests
Update NEWS for 7.4.0RC4
Update NEWS for PHP 7.4.0RC3
2019-10-01 11:19:43 +02:00
Christoph M. Becker
73f29a5c5e
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Add missing skip keyword in tests
2019-10-01 11:17:53 +02:00
Christoph M. Becker
2fc5d00afa
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Add missing skip keyword in tests
2019-10-01 11:15:12 +02:00
Fabien Villepinte
209e37db7d
Add missing skip keyword in tests
2019-10-01 11:13:36 +02:00
Christoph M. Becker
03e92d4d48
Add ext/snmp arginfo stubs
2019-09-28 15:47:00 +02:00
Christoph M. Becker
5a4b9bcc94
More ZPP warning to error related test fixes
2019-09-27 19:16:35 +02:00
Christoph M. Becker
752012a491
Fix tests wrt. ZPP warnings to errors
...
Since these test parts are solely about checking ZPP, we drop them
altogether.
2019-09-27 19:07:29 +02:00
Christoph M. Becker
3204d7e0d1
Fix test regarding Reflection::export() deprecation
2019-09-27 16:33:53 +02:00
Christoph M. Becker
63eed0b6c5
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix skipif.inc
2019-09-27 12:52:14 +02:00
Christoph M. Becker
878704ff6f
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix skipif.inc
2019-09-27 12:51:21 +02:00
Christoph M. Becker
115f6effec
Fix skipif.inc
2019-09-27 12:50:04 +02:00
Fabien Villepinte
e1afd9b213
Modernize some connectors in tests to remove env key duplication
2019-08-30 10:33:01 +02:00
Peter Kokot
83e565e244
[ci skip] Migrate tests READMEs to Markdown
2019-05-12 22:03:10 +02:00
Fabien Villepinte
26dfce7f36
Replace dirname(__FILE__) by __DIR__ in tests
2019-03-15 22:55:30 +01: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