File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / Zend / tests / callable_type_hint_003.phpt
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue May 29 12:34:36 2012 UTC (12 years, 1 month ago) by misho
Branches: php, MAIN
CVS tags: v5_4_3elwix, v5_4_29p0, v5_4_29, v5_4_20p0, v5_4_20, v5_4_17p0, v5_4_17, HEAD
php 5.4.3+patches

--TEST--
callable type hint#003
--FILE--
<?php

function foo(callable $a, $b, callable $c) {
	var_dump($a, $b, $c);
}
function bar(callable $a = null) {
	var_dump($a);
}

foo("strpos", 123, "strpos");
bar("substr");
?>
--EXPECT--
string(6) "strpos"
int(123)
string(6) "strpos"
string(6) "substr"


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>