File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ PHP NEWS
1919 . Enabled the TAILCALL VM on Windows when compiling with Clang >= 19 x86_64.
2020 (henderkes)
2121 . Deprecate specifying a nullable return type for __debugInfo(). (timwolla)
22+ . Fixed bug GH-22142 (Assertion failure in zendi_try_get_long() on IS_UNDEF).
23+ (David Carlier)
2224
2325- BCMath:
2426 . Added NUL-byte validation to BCMath functions. (jorgsowa)
Original file line number Diff line number Diff line change @@ -448,6 +448,7 @@ static zend_never_inline zend_long ZEND_FASTCALL zendi_try_get_long(const zval *
448448 ZEND_ASSERT (Z_TYPE (dst ) == IS_LONG );
449449 return Z_LVAL (dst );
450450 }
451+ case IS_UNDEF :
451452 case IS_RESOURCE :
452453 case IS_ARRAY :
453454 * failed = true;
Original file line number Diff line number Diff line change 1+ --TEST--
2+ GH-22142 (Assertion failure in zendi_try_get_long() on IS_UNDEF)
3+ --EXTENSIONS--
4+ zlib
5+ --FILE--
6+ <?php
7+
8+ class Options {
9+ public int $ level ;
10+ }
11+
12+ try {
13+ deflate_init (ZLIB_ENCODING_DEFLATE , new Options ());
14+ } catch (TypeError $ e ) {
15+ echo $ e ->getMessage (), PHP_EOL ;
16+ }
17+
18+ ?>
19+ --EXPECT--
20+ deflate_init(): Argument #2 ($options) the value for option "level" must be of type int, null given
You can’t perform that action at this time.
0 commit comments