Commit Graph

4 Commits

Author SHA1 Message Date
Nikita Popov
513b76794b Make zpp failures always throw, independent of strict_types
Previously zend_parse_parameters (and FastZPP) would handle invalid
arguments depending on strict_types: With strict_types=1, a TypeError
is thrown, with strict_types=0 a warning is thrown and (usually) NULL
is returned. Additionally, some functions (constructors always and
other methods sometimes) opt-it to throwing regardless of strict_types.

This commit changes zpp to always generate a TypeError exception in
PHP 8.
2019-03-11 11:32:20 +01:00
Gabriel Caruso
9c144e0d82
Trim trailing whitespace in tests 2018-10-14 12:07:20 -03:00
Stanislav Malyshev
58a673a909 Use new parameter parsing API for builtin functions 2008-06-18 23:38:37 +00:00
Antony Dovgal
41ada4ba9b add new tests 2006-06-27 21:10:04 +00:00