summaryrefslogtreecommitdiff
path: root/Zend/tests/return_types/internal_functions001.phpt
blob: 14a60c83b4921544fb8d10b0b3a132e8a4514e35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--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');
?>
--FILE--
<?php
zend_test_array_return();
?>
--EXPECTF--
Fatal error: Return value of zend_test_array_return() must be of type array, null returned in %s on line %d