xref: /PHP-8.2/ext/opcache/tests/bug76094.phpt (revision e9f783fc)
1--TEST--
2Bug #76094 (Access violation when using opcache)
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.optimization_level=-1
7--EXTENSIONS--
8opcache
9--FILE--
10<?php
11function MetaType($t)
12{
13
14    switch (strtoupper($t)) {
15    case PHP_INT_MAX :
16        return 1;
17    case 0:
18    default:
19        return 0;
20    }
21}
22
23var_dump(MetaType("aa"));
24?>
25--EXPECT--
26int(0)
27