xref: /php-src/ext/opcache/tests/jit/gh12585.phpt (revision d7fc3ab0)
1--TEST--
2GH-12585: Assertion t->stack_map[t->exit_info[exit_point].stack_offset + var].type == 4
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.jit_hot_func=1
7opcache.jit_hot_loop=1
8opcache.jit_hot_return=1
9opcache.jit_hot_side_exit=1
10opcache.jit=1152
11--FILE--
12<?php
13class MyDatePeriod extends DatePeriod
14{
15    public function __construct(
16        DateTimeInterface $start,
17        DateInterval $interval,
18        int $recurrences,
19        int $options = 0,
20        public ?bool $myProperty = null,
21    ) {
22        parent::__construct($start, $interval, $recurrences, $options);
23    }
24}
25
26$d = new MyDatePeriod(new DateTimeImmutable(), new DateInterval("PT5S"), 5, myProperty: true);
27?>
28DONE
29--EXPECT--
30DONE
31