Update comment in PHP testcase

The PHP7 workaround we currently use has evolved a bit since this
comment was written.
This commit is contained in:
Olly Betts 2022-07-11 13:20:25 +12:00
commit 29354ed19d

View file

@ -42,9 +42,10 @@ check::equal($f->double_if_void_ptr_is_null(6, Null), 12, "\$f->double_if_void_p
check::equal($f->double_if_void_ptr_is_null(7), 14, "\$f->double_if_void_ptr_is_null(7)");
# For the testcases below PHP < 7.3 emits an error, while newer versions throw
# an exception. We handle the older versions by suppressing the error with `@`,
# then checking for the created object being Null if the PHP version is < 7.3.
# For the testcases below, PHP 7 emits an error, while PHP 8 throws an
# exception. To simplify the testcases we install an error handler function
# for PHP7 which throws an ArgumentCountError exception (which we have to
# define ourselves for PHP 7.0).
if (PHP_MAJOR_VERSION == 7) {
if (PHP_MINOR_VERSION == 0) {