xref: /php-src/ext/opcache/tests/jit/isset_002.phpt (revision c16ad918)
1--TEST--
2ISSET_ISEMPTY_DIM with undefined variable
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.file_update_protection=0
7--FILE--
8<?php
9function foo() {
10    foreach ($how as $key => $value) {
11        if (is_int($key)) {
12            if (is_int($key)) {
13                $keyy++;
14            }
15            if (isset($row[$key])) {
16                return false;
17            }
18        }
19        if (isset($row[$key])) {
20            return false;
21        }
22    }
23    return true;
24}
25foo();
26?>
27DONE
28--EXPECTF--
29Warning: Undefined variable $how in %sisset_002.php on line 3
30
31Warning: foreach() argument must be of type array|object, null given in %sisset_002.php on line 3
32DONE