1
0
mirror of https://github.com/php/php-src.git synced 2026-04-10 01:23:53 +02:00

Merge branch 'PHP-5.6'

* PHP-5.6:
  Fix bug #66509: copy() arginfo incorrect since 5.4
This commit is contained in:
Will Fitch
2014-01-18 11:57:34 -05:00
2 changed files with 16 additions and 1 deletions

View File

@@ -1216,7 +1216,7 @@ ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_INFO(arginfo_fstat, 0)
ZEND_ARG_INFO(0, fp)
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_INFO(arginfo_copy, 0)
ZEND_BEGIN_ARG_INFO_EX(arginfo_copy, 0, 0, 2)
ZEND_ARG_INFO(0, source_file)
ZEND_ARG_INFO(0, destination_file)
ZEND_ARG_INFO(0, context)

View File

@@ -0,0 +1,15 @@
--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)