parent
22160661a9
commit
c10431f697
3 changed files with 40 additions and 1 deletions
@ -0,0 +1,17 @@ |
|||||||
|
--TEST-- |
||||||
|
The compiled program calls its own functions via the Zend VM. |
||||||
|
--FILE-- |
||||||
|
<?php |
||||||
|
declare(strict_types=1); |
||||||
|
function Hello(string $value) {} |
||||||
|
|
||||||
|
function main() { |
||||||
|
try { |
||||||
|
require __DIR__ . '/Hello.php'; |
||||||
|
} catch (ArgumentCountError $e) { |
||||||
|
echo "ArgumentCountError Error"; |
||||||
|
} |
||||||
|
} |
||||||
|
?> |
||||||
|
--EXPECT-- |
||||||
|
ArgumentCountError Error |
||||||
@ -0,0 +1,3 @@ |
|||||||
|
<?php |
||||||
|
declare(strict_types=1); |
||||||
|
Hello(); |
||||||
Loading…
Reference in new issue