Christoph M. Becker
de69a9d3eb
Improve reflection arginfo stubs
2019-10-26 12:32:12 +02:00
Thomas Gerbet
c9fc076a75
Add stubs for ext-reflection
2019-10-26 12:32:12 +02:00
Nikita Popov
530a8a3854
Fix and undeprecate ReflectionType::__toString()
...
Add deprecated _ZendTestClass::__toString() method to preserve
an existing test.
ReflectionType::__toString() will now return a complete
representation of the type, as it should have originally. Users
that relied on nullability being absent should have been pushed
to ReflectionNamedType::getName() by the deprecation of
ReflectionType::__toString() in PHP 7.1 / PHP 7.4.
2019-10-22 11:26:02 +02:00
Fabien Villepinte
084d401beb
Merge branch 'PHP-7.4'
2019-10-21 21:33:30 +02:00
Fabien Villepinte
7ce85c34ff
Revert "Add tests for ReflectionZendExtension"
...
This reverts commit 4194e0415b .
There were already tests for this class.
2019-10-21 21:31:36 +02:00
Fabien Villepinte
95390972f1
Merge branch 'PHP-7.4'
2019-10-21 21:17:50 +02:00
Fabien Villepinte
4194e0415b
Add tests for ReflectionZendExtension
2019-10-21 21:17:16 +02:00
Joe Watkins
174ab25fd4
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fix bug #78697 : inaccurate error message
2019-10-21 09:25:24 +02:00
Joe Watkins
1ac961bea8
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix bug #78697 : inaccurate error message
2019-10-21 09:24:41 +02:00
Joe Watkins
1c9b62fbd4
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix bug #78697 : inaccurate error message
2019-10-21 09:23:26 +02:00
Fabien Villepinte
bea2ff88c9
Fix bug #78697 : inaccurate error message
2019-10-21 09:22:09 +02:00
Nikita Popov
2f92957fd3
Convert some notices to warnings
...
Part of https://wiki.php.net/rfc/engine_warnings .
2019-10-02 10:34:08 +02:00
Nikita Popov
e441378b54
Update error messages in some more tests
2019-09-23 16:39:52 +02:00
Nikita Popov
8d7911ef56
Standardize type printing in reflection
...
Use ?T instead of "T or NULL".
2019-09-23 15:40:03 +02:00
Nikita Popov
d0f4ec4c31
Merge branch 'PHP-7.4'
2019-08-13 20:24:39 +02:00
Nikita Popov
d891b5f458
Fixed bug #78410
2019-08-13 20:23:56 +02:00
Nikita Popov
7a1540fa28
Merge branch 'PHP-7.4'
2019-07-22 17:00:17 +02:00
Nikita Popov
c817b8020c
Special-case rc=1 self-referential arrays in ReflectionReference
...
New fix for bug #78263 . This is special-cased elsewhere in the engine,
so we need to mirror it here.
2019-07-22 16:59:23 +02:00
Nikita Popov
19588a8f3b
Revert "Add ReflectionReference::getRefcount()"
...
This reverts commit 428cfdd181 .
2019-07-22 16:49:08 +02:00
Nikita Popov
36db71df47
Merge branch 'PHP-7.4'
2019-07-22 12:28:40 +02:00
Nikita Popov
3121b7174f
Deprecate Reflection export() methods
...
And remove the Reflector::export() interface method.
2019-07-22 11:39:52 +02:00
Nikita Popov
1fe478d30c
Merge branch 'PHP-7.4'
2019-07-08 16:54:22 +02:00
Nikita Popov
428cfdd181
Add ReflectionReference::getRefcount()
...
And don't return null for rc=1 references. Leave it to the user
to decide whether or not they want to consider these as references
or not.
Fixes bug #78263 .
2019-07-08 16:54:03 +02:00
Nikita Popov
4d90848d68
Don't verify arginfo types for internal functions
...
To avoid duplicate type checks. In debug builds arginfo is still
checked and will generate an assertions if the function doesn't
subsequently throw an exception.
Some test results change due to differences in zpp and arginfo
error messages.
2019-06-17 11:46:28 +02:00
Nikita Popov
cc286e5bd5
Merge branch 'PHP-7.4'
2019-06-05 15:34:56 +02:00
Nikita Popov
b964298c19
Deprecate ReflectionType::__toString()
...
We weren't able to do this in 7.1 because the deprecation notice
may be converted to an exception and __toString() can't throw,
which means that it ultimately become a fatal error. This issue
is resolved now, so we can mark the method as deprecated.
2019-06-05 15:33:52 +02:00
Nikita Popov
7686b0b889
Merge branch 'PHP-7.4'
2019-06-05 14:53:50 +02:00
Nikita Popov
a31f46421d
Allow exceptions in __toString()
...
RFC: https://wiki.php.net/rfc/tostring_exceptions
And convert some object to string conversion related recoverable
fatal errors into Error exceptions.
Improve exception safety of internal code performing string
conversions.
2019-06-05 14:25:07 +02:00
Nikita Popov
9f87831470
Merge branch 'PHP-7.4'
2019-05-09 12:36:33 +02:00
Nikita Popov
4b40a46bf1
Merge branch 'PHP-7.3' into PHP-7.4
2019-05-09 12:36:20 +02:00
Nikita Popov
90318fbcbe
Merge branch 'PHP-7.2' into PHP-7.3
2019-05-09 12:35:11 +02:00
Nikita Popov
35c80583f0
Fixed bug #75186
2019-05-09 12:33:53 +02:00
Nikita Popov
969f238808
Merge branch 'PHP-7.4'
2019-05-09 12:03:29 +02:00
Nikita Popov
54be40113d
Fixed bug #77951
...
Treat singleton references as non-references in ReflectionReference
and return null for them.
2019-05-09 12:02:16 +02:00
Nikita Popov
2e186aa9dc
Merge branch 'PHP-7.4'
2019-04-15 10:25:27 +02:00
Nikita Popov
b2ec07e64c
Merge branch 'PHP-7.3' into PHP-7.4
2019-04-15 10:25:20 +02:00
Nikita Popov
14047b50b4
Merge branch 'PHP-7.2' into PHP-7.3
2019-04-15 10:25:11 +02:00
Nikita Popov
e9c0367fdc
Fixed bug #77882
2019-04-15 10:22:40 +02:00
Nikita Popov
787ecb6d56
Merge branch 'PHP-7.4'
2019-03-22 12:41:39 +01:00
Nikita Popov
9457cfca37
Merge branch 'PHP-7.3' into PHP-7.4
2019-03-22 12:41:34 +01:00
Nikita Popov
620a753185
Merge branch 'PHP-7.2' into PHP-7.3
2019-03-22 12:41:02 +01:00
Nikita Popov
da35fa2cb8
Fixed bug #77772
2019-03-22 12:39:27 +01:00
Nikita Popov
852485d8ec
Adjust tests for zpp TypeError change
2019-03-11 11:32:20 +01:00
Gabriel Caruso
726919e4b5
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Use EXPECT when possible
Fix tests filenames
2019-03-11 00:07:32 -03:00
Gabriel Caruso
6c4e2079c0
Use EXPECT when possible
...
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
2019-03-11 00:05:44 -03:00
Nikita Popov
17fb7241e4
Merge branch 'PHP-7.4'
2019-03-06 13:45:13 +01:00
Nikita Popov
8c62c69265
More zpp error/variation test removals
...
Some of these tests also check non-zpp conditions -- however, there is
always some other test that also checks those error conditions.
2019-03-06 13:40:22 +01:00
Nikita Popov
824efb726c
Merge branch 'PHP-7.4'
2019-03-05 17:10:26 +01:00
Nikita Popov
10b4113638
Remove more zpp error tests
2019-03-05 17:09:09 +01:00
Nikita Popov
c8e2b333cb
Merge branch 'PHP-7.4'
2019-02-20 11:22:31 +01:00