summaryrefslogtreecommitdiff
path: root/Zend/tests/return_types/internal_functions001.phpt
blob: 153e32ca6e6f267e352f5d6ae6fe0561b952154c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--TEST--
Return type for internal functions
--SKIPIF--
<?php
if (!extension_loaded('zend-test')) die('skip zend-test extension not loaded');
// Internal function return types are only checked in debug builds
if (!PHP_DEBUG) die('skip requires debug build');
?>
--INI--
opcache.jit=0
--FILE--
<?php
zend_test_array_return();
?>
--EXPECT--
Fatal error: zend_test_array_return(): Return value must be of type array, null returned in Unknown on line 0