xref: /PHP-7.1/ext/opcache/tests/bug71843.phpt (revision c5348850)
1--TEST--
2Bug #71843 (null ptr deref ZEND_RETURN_SPEC_CONST_HANDLER (zend_vm_execute.h:3479))
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.optimization_level=0xFFFFBFFF
7--SKIPIF--
8<?php if (!extension_loaded('Zend OPcache')) die("skip"); ?>
9--FILE--
10<?php
110 & ~E & ~R;
126 && ~See
13?>
14okey
15--EXPECTF--
16Notice: Use of undefined constant E - assumed 'E' in %sbug71843.php on line %d
17
18Warning: A non-numeric value encountered in %s on line %d
19
20Notice: Use of undefined constant R - assumed 'R' in %sbug71843.php on line %d
21
22Warning: A non-numeric value encountered in %s on line %d
23
24Notice: Use of undefined constant See - assumed 'See' in %sbug71843.php on line %d
25okey
26