summaryrefslogtreecommitdiff
path: root/ext/reflection/tests
Commit message (Collapse)AuthorAgeFilesLines
...
| | | * Fixed bug #75186Nikita Popov2019-05-091-0/+25
| | | |
* | | | Merge branch 'PHP-7.4'Nikita Popov2019-05-091-12/+16
|\ \ \ \ | |/ / /
| * | | Fixed bug #77951Nikita Popov2019-05-091-12/+16
| | | | | | | | | | | | | | | | | | | | Treat singleton references as non-references in ReflectionReference and return null for them.
* | | | Merge branch 'PHP-7.4'Nikita Popov2019-04-151-0/+38
|\ \ \ \ | |/ / /
| * | | Merge branch 'PHP-7.3' into PHP-7.4Nikita Popov2019-04-151-0/+38
| |\ \ \ | | |/ /
| | * | Merge branch 'PHP-7.2' into PHP-7.3Nikita Popov2019-04-151-0/+38
| | |\ \ | | | |/
| | | * Fixed bug #77882Nikita Popov2019-04-151-0/+38
| | | |
* | | | Merge branch 'PHP-7.4'Nikita Popov2019-03-221-0/+22
|\ \ \ \ | |/ / /
| * | | Merge branch 'PHP-7.3' into PHP-7.4Nikita Popov2019-03-221-0/+22
| |\ \ \ | | |/ /
| | * | Merge branch 'PHP-7.2' into PHP-7.3Nikita Popov2019-03-221-0/+22
| | |\ \ | | | |/
| | | * Fixed bug #77772Nikita Popov2019-03-221-0/+22
| | | |
| | | * Sync leading and final newlines in *.phpt sectionsPeter Kokot2018-10-1559-73/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| | | * Trim trailing whitespace in *.phptPeter Kokot2018-10-14129-257/+257
| | | |
| | | * Sync leading and final newlines in source code filesPeter Kokot2018-10-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds missing newlines, trims multiple redundant final newlines into a single one, and trims redundant leading newlines. 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
| | | * Trim trailing whitespace in source code filesPeter Kokot2018-10-131-2/+2
| | | |
| | * | Sync leading and final newlines in *.phpt sectionsPeter Kokot2018-10-1554-68/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| | * | Trim trailing whitespace in *.phptPeter Kokot2018-10-14108-235/+235
| | | |
| | * | Sync leading and final newlines in source code filesPeter Kokot2018-10-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds missing newlines, trims multiple redundant final newlines into a single one, and trims redundant leading newlines. 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
* | | | Adjust tests for zpp TypeError changeNikita Popov2019-03-1130-556/+100
| | | |
* | | | Merge branch 'PHP-7.4'Gabriel Caruso2019-03-111-1/+1
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | * PHP-7.4: Use EXPECT when possible Fix tests filenames
| * | | Use EXPECT when possibleGabriel Caruso2019-03-111-1/+1
| | | | | | | | | | | | | | | | EXPECTF logic in run-tests.php is considerable, so let's avoid it.
* | | | Merge branch 'PHP-7.4'Nikita Popov2019-03-065-155/+0
|\ \ \ \ | |/ / /
| * | | More zpp error/variation test removalsNikita Popov2019-03-065-155/+0
| | | | | | | | | | | | | | | | | | | | Some of these tests also check non-zpp conditions -- however, there is always some other test that also checks those error conditions.
* | | | Merge branch 'PHP-7.4'Nikita Popov2019-03-0524-570/+0
|\ \ \ \ | |/ / /
| * | | Remove more zpp error testsNikita Popov2019-03-0524-574/+0
| | | |
* | | | Merge branch 'PHP-7.4'Nikita Popov2019-02-201-0/+0
|\ \ \ \ | |/ / /
| * | | Implement fine-grained conflict handlingNikita Popov2019-02-201-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | Tests can specify conflict keys, either in --CONFLICTS-- or a per-directory CONFLICTS file. Non-conflicting tests may be run in parallel.
* | | | Merge branch 'PHP-7.4'Nikita Popov2019-02-191-0/+35
|\ \ \ \ | |/ / /
| * | | Fixed bug #77631Tyson Andre2019-02-191-0/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Do not include unbound anonymous classes in get_declared_classes(). Note that earlier PHP versions would include the anonymous class in get_declared_classes(), and return false until the class was bound, but would not crash.
* | | | Merge branch 'PHP-7.4'Nikita Popov2019-02-181-0/+0
|\ \ \ \ | |/ / /
| * | | run-tests.php: experimental parallel testing supportAndrea Faulds2019-02-181-0/+0
| | | |
* | | | Merge branch 'PHP-7.4'Nikita Popov2019-02-133-1/+113
|\ \ \ \ | |/ / /
| * | | Implement ReflectionReferenceNikita Popov2019-02-133-1/+113
| | | | | | | | | | | | | | | | RFC: https://wiki.php.net/rfc/reference_reflection
* | | | Fix variadic arginfos for Reflection functionsGabriel Caruso2019-02-101-1/+1
| | | | | | | | | | | | | | | | Fix arginfos of required arguments for some Reflection methods
* | | | Merge branch 'PHP-7.4'Peter Kokot2019-02-081-2/+2
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-7.4: Update and fix remaining year ranges (2019)
| * | | Update and fix remaining year ranges (2019)Peter Kokot2019-02-081-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | This patch follows previous license year ranges updates. With new approach source code files now have simplified headers with license information without year ranges.
* | | | Remove bareword fallback for constantsNikita Popov2019-01-312-6/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Access to undefined constants will now always result in an Error exception being thrown. This required quite a few test changes, because there were many buggy tests that unintentionally used bareword fallback in combination with error suppression.
* | | | Remove unnecessary CLI checks in testsGabriel Caruso2019-01-311-1/+0
| | | |
* | | | Remove support for legacy constructorsNikita Popov2019-01-2913-354/+28
|/ / / | | | | | | | | | | | | This has been deprecated in PHP 7.0 by https://wiki.php.net/rfc/remove_php4_constructors.
* | | Revert removal of private __clone() methodsNikita Popov2019-01-141-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I thought these were redundant, because we already NULL out the clone_obj object handler. However, it turns out that reflection is using private __clone() to determine clonability (isCloneable) for the case where we only have a class, rather than an object. As such, removing these methods would be a BC break. This reverts commit e7131a4e9fa0acf8fc1e486b49851e71859ef5b8. This reverts commit 55bd88ce0d1bf461546d5d0b40920491d566ed48.
* | | Implement typed propertiesNikita Popov2019-01-115-1/+241
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | RFC: https://wiki.php.net/rfc/typed_properties_v2 This is a squash of PR #3734, which is a squash of PR #3313. Co-authored-by: Bob Weinand <bobwei9@hotmail.com> Co-authored-by: Joe Watkins <krakjoe@php.net> Co-authored-by: Dmitry Stogov <dmitry@zend.com>
* | | Remove redundant __clone() methods from ReflectionNikita Popov2018-11-261-7/+1
| | | | | | | | | | | | | | | | | | Reflection classes already use NULLed clone_obj to signal that they cannot be cloned, so it's not necessary to additionally declare a throwing __clone() method.
* | | Sync leading and final newlines in *.phpt sectionsPeter Kokot2018-10-1553-67/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Trim trailing whitespace in *.phptPeter Kokot2018-10-1417-25/+25
| | |
* | | Trim trailing whitespace in testsGabriel Caruso2018-10-14101-210/+210
| | |
* | | Sync leading and final newlines in source code filesPeter Kokot2018-10-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds missing newlines, trims multiple redundant final newlines into a single one, and trims redundant leading newlines. 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
* | | Don't overload get_properties for ArrayObjectNikita Popov2018-10-101-6/+0
| | | | | | | | | | | | | | | | | | Instead overload get_properties_for for a few specific cases such as array casts. This resolves the issue where ArrayObject get_properties may violate engine invariants in some cases.
* | | Merge branch 'PHP-7.3'Nikita Popov2018-10-021-0/+42
|\ \ \ | |/ /
| * | Merge branch 'PHP-7.2' into PHP-7.3Nikita Popov2018-10-021-0/+42
| |\ \ | | |/
| | * Fixed bug #66430Nikita Popov2018-10-021-0/+42
| | |