mirror of
https://github.com/php/php-src.git
synced 2025-01-10 04:54:47 +08:00
75bc3446f8
All these tests are meant to run with OPcache available, and some will even fail inevitably without it, so we add OPcache as SKIPIF requirement.
22 lines
398 B
PHP
22 lines
398 B
PHP
--TEST--
|
|
Bug #75570 ("Narrowing occurred during type inference" error)
|
|
--SKIPIF--
|
|
<?php require_once('skipif.inc'); ?>
|
|
--FILE--
|
|
<?php
|
|
function renderRawGraph(array $parents) {
|
|
$graph = array();
|
|
foreach ($parents as $p) {
|
|
foreach ($graph as $v) {
|
|
$graph[$v]['line'] = 1;
|
|
}
|
|
$graph[] = array(
|
|
'line' => 1,
|
|
);
|
|
}
|
|
}
|
|
?>
|
|
OK
|
|
--EXPECT--
|
|
OK
|