xref: /PHP-7.4/ext/opcache/tests/bug76094.phpt (revision 4758164a)
1--TEST--
2Bug #76094 (Access violation when using opcache)
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.optimization_level=-1
7--SKIPIF--
8<?php require_once('skipif.inc'); ?>
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