php-src/ext/standard/tests/file/bug66509.phpt
Will Fitch 5b906ce6eb Fix bug #66509: copy() arginfo incorrect since 5.4
Since 5.4, the ZEND_BEGIN_ARG_INFO_EX was replaced
by non _EX, causing Reflection to assume the
$context parameter is required.
2014-01-18 11:25:53 -05:00

16 lines
245 B
PHP

--TEST--
Bug #66509 (copy() showing $context parameter as required)
--FILE--
<?php
$r = new \ReflectionFunction('copy');
foreach($r->getParameters() as $p) {
var_dump($p->isOptional());
}
?>
--EXPECT--
bool(false)
bool(false)
bool(true)