weak_explicit_call_strict.phpt   [plain text]


--TEST--
Explicitly strict_types=0 code calling strict_types=1 code
--FILE--
<?php

declare(strict_types=0);

// file with strict_types=1
require 'weak_call_strict_2.inc';

// Will succeed: Function was declared in strict mode, but that does not matter
// This file uses weak mode, so the call is weak, and float accepted for int
function_declared_in_strict_mode(1.0);
?>
--EXPECT--
Success!