Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

Commit 724719a

Browse files
committed
Fix PHP 7 BC break in Zend_XmlRpc_Server
The func_get_arg() and func_get_args() functions will no longer return the original value that was passed to a parameter and will instead provide the current value (which might have been modified). (from https://github.com/php/php-src/blob/master/UPGRADING)
1 parent 7cbb1d5 commit 724719a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

library/Zend/XmlRpc/Server.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -278,13 +278,13 @@ public function setClass($class, $namespace = '', $argv = null)
278278
throw new Zend_XmlRpc_Server_Exception('Invalid method class', 610);
279279
}
280280

281-
$argv = null;
281+
$args = null;
282282
if (2 < func_num_args()) {
283-
$argv = func_get_args();
284-
$argv = array_slice($argv, 2);
283+
$args = func_get_args();
284+
$args = array_slice($args, 2);
285285
}
286286

287-
$dispatchable = Zend_Server_Reflection::reflectClass($class, $argv, $namespace);
287+
$dispatchable = Zend_Server_Reflection::reflectClass($class, $args, $namespace);
288288
foreach ($dispatchable->getMethods() as $reflection) {
289289
$this->_buildSignature($reflection, $class);
290290
}

0 commit comments

Comments
 (0)